add payment, invoce
This commit is contained in:
@@ -268,8 +268,8 @@ open class Vendor : BaseTenantModel() {
|
||||
var gstNumber: String = ""
|
||||
var address: String = ""
|
||||
var rating: Double = 0.0
|
||||
var outstanding: Double?=0.0
|
||||
var asOnWhichDate: LocalDate?=null
|
||||
var outstanding: Double? = 0.0
|
||||
var asOnWhichDate: LocalDate? = null
|
||||
|
||||
@DbJsonB
|
||||
var contacts: List<ContactPerson> = mutableListOf()
|
||||
@@ -370,7 +370,7 @@ open class Quotation : BaseTenantModel() {
|
||||
@DbArray
|
||||
var documents: List<String>? = arrayListOf()
|
||||
|
||||
var taxesIncluded: Boolean ?= null
|
||||
var taxesIncluded: Boolean? = null
|
||||
}
|
||||
|
||||
enum class DocType {
|
||||
@@ -464,12 +464,13 @@ open class OutgoingInventory : BaseTenantModel() {
|
||||
var vehicle: String? = null
|
||||
}
|
||||
|
||||
enum class InvoiceStatus{
|
||||
enum class InvoiceStatus {
|
||||
PAID_FULL, PAID_SOME, PAID_NONE, ALL
|
||||
}
|
||||
|
||||
@Entity
|
||||
open class Invoice : BaseTenantModel() {
|
||||
fun patchValues(updated : Invoice) {
|
||||
open class Invoice : BaseTenantModel() {
|
||||
fun patchValues(updated: Invoice) {
|
||||
this.date = updated.date
|
||||
this.number = updated.number
|
||||
this.totalAmount = updated.totalAmount
|
||||
@@ -478,32 +479,40 @@ open class Invoice : BaseTenantModel() {
|
||||
this.vendor = updated.vendor
|
||||
this.status = updated.status
|
||||
}
|
||||
|
||||
var number: String = ""
|
||||
var date: LocalDate?=null
|
||||
var totalAmount : Double=0.0
|
||||
var poNum:String?=null
|
||||
var date: LocalDate? = null
|
||||
var totalAmount: Double = 0.0
|
||||
var poNum: String? = null
|
||||
|
||||
@DbJsonB
|
||||
var products: List<POProducts> ?= null
|
||||
var products: List<POProducts>? = null
|
||||
|
||||
@ManyToOne
|
||||
var vendor: Vendor? = null
|
||||
|
||||
@Enumerated(EnumType.STRING)
|
||||
var status:InvoiceStatus?=null
|
||||
var status: InvoiceStatus? = null
|
||||
}
|
||||
|
||||
@Entity
|
||||
open class Payment : BaseTenantModel() {
|
||||
fun patchValues(updated : Payment){
|
||||
fun patchValues(updated: Payment) {
|
||||
this.refNumber = updated.refNumber
|
||||
this.amount = updated.amount
|
||||
this.date = updated.date
|
||||
this.remark = updated.remark
|
||||
this.vendor = updated.vendor
|
||||
}
|
||||
var refNumber:String=""
|
||||
var amount:Double=0.0
|
||||
var date:LocalDate?=null
|
||||
var remark:String?= null
|
||||
|
||||
var refNumber: String = ""
|
||||
var amount: Double = 0.0
|
||||
var date: LocalDate? = null
|
||||
var remark: String? = null
|
||||
var excessAmount : Double ?= null
|
||||
|
||||
@DbJsonB
|
||||
var invoicesAffected: Map<Long, Double>? = null
|
||||
@ManyToOne
|
||||
var vendor:Vendor?=null
|
||||
var vendor: Vendor? = null
|
||||
}
|
||||
Reference in New Issue
Block a user