po excel
This commit is contained in:
parent
0025d50677
commit
17d5422c43
@ -291,6 +291,7 @@ fun exportPos(pos: List<PurchaseOrder>) {
|
||||
"Open Till",
|
||||
"Reference Quotation Number",
|
||||
"Vendor Name",
|
||||
"Vendor Address",
|
||||
"Product Id",
|
||||
"Product Name",
|
||||
"Unit Price",
|
||||
@ -363,7 +364,6 @@ fun exportIncomingInventory(tickets: List<IncomingInventory>) {
|
||||
"Vehicle No",
|
||||
"Loading Site",
|
||||
"Unloading Site",
|
||||
"PO Num",
|
||||
"Product Name",
|
||||
"Unit Price",
|
||||
"Quantity",
|
||||
@ -387,16 +387,9 @@ fun exportIncomingInventory(tickets: List<IncomingInventory>) {
|
||||
row.createCell(i++).setCellValue(ticket.unloading)
|
||||
|
||||
//6 would be repeated
|
||||
val prod = ticket.products!![j]
|
||||
val po = if(prod.poId != null && prod.poId > 0){
|
||||
database.find(PurchaseOrder::class.java, prod.poId)?.poNum
|
||||
} else {
|
||||
""
|
||||
}
|
||||
row.createCell(i++).setCellValue(po)
|
||||
row.createCell(i++).setCellValue(prod.productName)
|
||||
row.createCell(i++).setCellValue(prod.unitPrice)
|
||||
row.createCell(i).setCellValue(prod.quantity)
|
||||
row.createCell(i++).setCellValue(ticket.products!![j].productName)
|
||||
row.createCell(i++).setCellValue(ticket.products!![j].unitPrice)
|
||||
row.createCell(i++).setCellValue(ticket.products!![j].quantity)
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user