add excel import and export

This commit is contained in:
2024-01-22 18:32:24 +05:30
parent 0b75681236
commit 2fecc4b3fd
3 changed files with 360 additions and 14 deletions

View File

@@ -12,7 +12,9 @@ import java.time.LocalDateTime
import javax.persistence.*
data class Comments(val text: String = "", val by: String = "", val at: LocalDateTime = LocalDateTime.now())
data class POProducts(val productId: String = "", val unitPrice :Double = 0.0, val quantity: Double = 0.0, val description :String = "")
data class POProducts(val productId: String = "", val productName: String = "", val unitPrice :Double = 0.0, val quantity: Double = 0.0, val description :String = "")
enum class ApprovalStatus {
PENDING, APPROVED, REJECTED
}
@@ -259,7 +261,7 @@ open class PurchaseOrder :BaseTenantModel() {
@ManyToOne
var vendor :Vendor? = null
var referenceQuotation :String = ""
var totalAmount :Int = 0
var totalAmount :Double = 0.0
var poNum: String = ""
var poDate: LocalDate? = null
var validTill: LocalDate? = null
@@ -274,7 +276,7 @@ enum class UOM {
}
@Entity
open class Product :BaseTenantModel() {
var id: Int? = null
var id: Long? = null
var name :String = ""
var description :String = ""
var hsnCode :String = ""
@@ -288,7 +290,7 @@ open class Quotation :BaseTenantModel() {
var products :MutableList<POProducts> = mutableListOf()
@ManyToOne
var vendor :Vendor? = null
var totalAmount :Long = 0
var totalAmount :Double = 0.0
var reqForQuoteNum: String = ""
var quoteNum: String = ""
@@ -309,7 +311,8 @@ open class Document :BaseTenantModel() {
var name :String = ""
@Enumerated(EnumType.STRING)
var typeOfDoc :DocType? = null
var refId: Long? = null
//could be quoteNum, PoNum, InvoiceNum
var refId: String? = null
var description :String = ""
var url :String = ""
var docDate :LocalDate? = null