add filters

This commit is contained in:
2024-01-19 15:03:45 +05:30
parent cfdb792aa5
commit aa97275b9c
4 changed files with 16 additions and 7 deletions

View File

@@ -239,7 +239,6 @@ class SafeStringDeserializer : JsonDeserializer<String>() {
if (!regex.matches(text)) throw IllegalArgumentException()
return text
}
}
data class ContactPerson(val name: String, val email: String, val mobile: String)
@@ -271,7 +270,7 @@ open class PurchaseOrder :BaseTenantModel() {
}
enum class UOM {
NOS, LTR, MTR
NOS, LTR, MTR, ALL
}
@Entity
open class Product :BaseTenantModel() {
@@ -288,7 +287,7 @@ open class Quotation :BaseTenantModel() {
var products :MutableList<POProducts> = mutableListOf()
@ManyToOne
var vendor :Vendor? = null
var totalAmount :Int = 0
var totalAmount :Long = 0
var reqForQuoteNum: String = ""
var quoteNum: String = ""
@@ -301,14 +300,14 @@ open class Quotation :BaseTenantModel() {
var documents: MutableList<Long> = arrayListOf()
}
enum class DOCTYPE{
PO, QUOTE, INVOICE
enum class DocType{
PO, QUOTE, INVOICE, ALL
}
@Entity
open class Document :BaseTenantModel() {
var name :String = ""
@Enumerated(EnumType.STRING)
var typeOfDoc :DOCTYPE? = null
var typeOfDoc :DocType? = null
var refId: Long? = null
var description :String = ""
var url :String = ""