add filters
This commit is contained in:
parent
cfdb792aa5
commit
aa97275b9c
@ -36,6 +36,8 @@ dependencies {
|
|||||||
implementation("org.yaml:snakeyaml:2.2")
|
implementation("org.yaml:snakeyaml:2.2")
|
||||||
implementation("io.minio:minio:8.5.7")
|
implementation("io.minio:minio:8.5.7")
|
||||||
implementation("org.apache.httpcomponents:httpclient:4.5.14")
|
implementation("org.apache.httpcomponents:httpclient:4.5.14")
|
||||||
|
implementation("org.apache.poi:poi:5.0.0")
|
||||||
|
implementation("org.apache.poi:poi-ooxml:5.0.0")
|
||||||
api ("net.cactusthorn.config:config-core:0.81")
|
api ("net.cactusthorn.config:config-core:0.81")
|
||||||
api ("net.cactusthorn.config:config-yaml:0.81")
|
api ("net.cactusthorn.config:config-yaml:0.81")
|
||||||
kapt("net.cactusthorn.config:config-compiler:0.81")
|
kapt("net.cactusthorn.config:config-compiler:0.81")
|
||||||
|
|||||||
@ -574,5 +574,4 @@ object ReqForQuote {
|
|||||||
//shuld we compare the new body fields with preexisting ones and prepare a sql query to update those fields??
|
//shuld we compare the new body fields with preexisting ones and prepare a sql query to update those fields??
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
9
src/main/kotlin/com/restapi/controllers/Excel.kt
Normal file
9
src/main/kotlin/com/restapi/controllers/Excel.kt
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
package com.restapi.controllers
|
||||||
|
import org.apache.poi
|
||||||
|
import java.io.FileOutputStream
|
||||||
|
enum class DataType {
|
||||||
|
QUOTE, PO, VENDOR
|
||||||
|
}
|
||||||
|
fun CreateExcel(cols :List<String>, excelFor :DataType) {
|
||||||
|
val wb = HSSFWorkbook()
|
||||||
|
}
|
||||||
@ -239,7 +239,6 @@ class SafeStringDeserializer : JsonDeserializer<String>() {
|
|||||||
if (!regex.matches(text)) throw IllegalArgumentException()
|
if (!regex.matches(text)) throw IllegalArgumentException()
|
||||||
return text
|
return text
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
data class ContactPerson(val name: String, val email: String, val mobile: String)
|
data class ContactPerson(val name: String, val email: String, val mobile: String)
|
||||||
@ -271,7 +270,7 @@ open class PurchaseOrder :BaseTenantModel() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
enum class UOM {
|
enum class UOM {
|
||||||
NOS, LTR, MTR
|
NOS, LTR, MTR, ALL
|
||||||
}
|
}
|
||||||
@Entity
|
@Entity
|
||||||
open class Product :BaseTenantModel() {
|
open class Product :BaseTenantModel() {
|
||||||
@ -288,7 +287,7 @@ open class Quotation :BaseTenantModel() {
|
|||||||
var products :MutableList<POProducts> = mutableListOf()
|
var products :MutableList<POProducts> = mutableListOf()
|
||||||
@ManyToOne
|
@ManyToOne
|
||||||
var vendor :Vendor? = null
|
var vendor :Vendor? = null
|
||||||
var totalAmount :Int = 0
|
var totalAmount :Long = 0
|
||||||
|
|
||||||
var reqForQuoteNum: String = ""
|
var reqForQuoteNum: String = ""
|
||||||
var quoteNum: String = ""
|
var quoteNum: String = ""
|
||||||
@ -301,14 +300,14 @@ open class Quotation :BaseTenantModel() {
|
|||||||
var documents: MutableList<Long> = arrayListOf()
|
var documents: MutableList<Long> = arrayListOf()
|
||||||
}
|
}
|
||||||
|
|
||||||
enum class DOCTYPE{
|
enum class DocType{
|
||||||
PO, QUOTE, INVOICE
|
PO, QUOTE, INVOICE, ALL
|
||||||
}
|
}
|
||||||
@Entity
|
@Entity
|
||||||
open class Document :BaseTenantModel() {
|
open class Document :BaseTenantModel() {
|
||||||
var name :String = ""
|
var name :String = ""
|
||||||
@Enumerated(EnumType.STRING)
|
@Enumerated(EnumType.STRING)
|
||||||
var typeOfDoc :DOCTYPE? = null
|
var typeOfDoc :DocType? = null
|
||||||
var refId: Long? = null
|
var refId: Long? = null
|
||||||
var description :String = ""
|
var description :String = ""
|
||||||
var url :String = ""
|
var url :String = ""
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user