add excel templates fix apis

This commit is contained in:
2024-01-24 10:01:25 +05:30
parent 2fecc4b3fd
commit 3cd5c4c471
9 changed files with 555 additions and 115 deletions

View File

@@ -243,7 +243,7 @@ class SafeStringDeserializer : JsonDeserializer<String>() {
}
}
data class ContactPerson(val name: String, val email: String, val mobile: String)
data class ContactPerson(val name: String = "", val email: String = "", val mobile: String = "")
@Entity
open class Vendor :BaseTenantModel() {
var name :String = ""
@@ -260,15 +260,15 @@ open class PurchaseOrder :BaseTenantModel() {
var products :MutableList<POProducts> = mutableListOf()
@ManyToOne
var vendor :Vendor? = null
var referenceQuotation :String = ""
var referenceQuotation :String? = ""
var totalAmount :Double = 0.0
var poNum: String = ""
var poDate: LocalDate? = null
var validTill: LocalDate? = null
@DbArray
var tnc: List<String> = arrayListOf()
var tnc: List<String>? = arrayListOf()
@DbArray
var documents: MutableList<Long> = arrayListOf()
var documents: MutableList<Long>? = arrayListOf()
}
enum class UOM {
@@ -292,7 +292,7 @@ open class Quotation :BaseTenantModel() {
var vendor :Vendor? = null
var totalAmount :Double = 0.0
var reqForQuoteNum: String = ""
var reqForQuoteNum: String? = ""
var quoteNum: String = ""
var quoteDate: LocalDate? = null
var validTill: LocalDate? = null