openpss / com.hendraanggrian.openpss.db.schemas / Payment

Payment

data class Payment : Document<Payments>

Constructors

<init>

Payment(invoiceId: Id<String, Invoices>, employeeId: Id<String, Employees>, dateTime: DateTime, value: Double, reference: String?)

Properties

dateTime

val dateTime: DateTime

employeeId

var employeeId: Id<String, Employees>

id

lateinit var id: Id<String, Payments>

NoSQL object identifier.

invoiceId

var invoiceId: Id<String, Invoices>

reference

val reference: String?

value

val value: Double

Functions

isCash

fun isCash(): Boolean

Companion Object Functions

gather

fun gather(payments: List<Payment>, isCash: Boolean): Double

new

fun new(invoiceId: Id<String, Invoices>, employeeId: Id<String, Employees>, value: Double, reference: String?): Payment