fix excel

This commit is contained in:
gowthaman 2024-06-11 08:30:29 +05:30
parent 68107ca7f0
commit 0d203a880f

View File

@ -333,12 +333,11 @@ fun exportIncomingInventory(tickets: List<IncomingInventory>) {
"MRN", "MRN",
"Date", "Date",
"Vendor Name", "Vendor Name",
"Vendor Bill Number",
"Vendor Bill Amount",
"Vehicle No", "Vehicle No",
"Loading Site", "Loading Site",
"Unloading Site", "Unloading Site",
"Vendor Bill Number",
"Vendor Bill Amount",
"Product Id",
"Product Name", "Product Name",
"Unit Price", "Unit Price",
"Quantity", "Quantity",
@ -356,13 +355,12 @@ fun exportIncomingInventory(tickets: List<IncomingInventory>) {
row.createCell(i++).setCellValue(ticket.date) row.createCell(i++).setCellValue(ticket.date)
row.createCell(i++).setCellValue(ticket.vendor?.name) row.createCell(i++).setCellValue(ticket.vendor?.name)
row.createCell(i++).setCellValue(ticket.vendorBillNum) row.createCell(i++).setCellValue(ticket.vendorBillNum)
row.createCell(i++).setCellValue(ticket.vendorBillAmount)
row.createCell(i++).setCellValue(ticket.vehicle) row.createCell(i++).setCellValue(ticket.vehicle)
row.createCell(i++).setCellValue(ticket.loading) row.createCell(i++).setCellValue(ticket.loading)
row.createCell(i++).setCellValue(ticket.unloading) row.createCell(i++).setCellValue(ticket.unloading)
row.createCell(i++).setCellValue(ticket.vendorBillAmount)
//6 would be repeated //6 would be repeated
row.createCell(i++).setCellValue(ticket.products!![j].productId.toString())
row.createCell(i++).setCellValue(ticket.products!![j].productName) row.createCell(i++).setCellValue(ticket.products!![j].productName)
row.createCell(i++).setCellValue(ticket.products!![j].unitPrice) row.createCell(i++).setCellValue(ticket.products!![j].unitPrice)
row.createCell(i++).setCellValue(ticket.products!![j].quantity) row.createCell(i++).setCellValue(ticket.products!![j].quantity)