From 123cd1face4a95a8a716d8a4e59a0148a4245dd8 Mon Sep 17 00:00:00 2001 From: Nurmuhammet Allanov Date: Sun, 10 Nov 2024 15:42:19 +0500 Subject: [PATCH] invoice items table base ready --- .../Invoice/Actions/GenerateInvoiceExcell.php | 6 +++++- public/write.xls | Bin 12800 -> 12800 bytes 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/app/Modules/Invoice/Actions/GenerateInvoiceExcell.php b/app/Modules/Invoice/Actions/GenerateInvoiceExcell.php index cb05627..c6ef801 100644 --- a/app/Modules/Invoice/Actions/GenerateInvoiceExcell.php +++ b/app/Modules/Invoice/Actions/GenerateInvoiceExcell.php @@ -138,7 +138,11 @@ class GenerateInvoiceExcell $this->worksheet->getCell('G' . $itemCellNumber)->setValue($item->vat_excluded); $this->worksheet->getCell('H' . $itemCellNumber)->setValue($item->vat_percentage); $this->worksheet->getCell('I' . $itemCellNumber)->setValue($item->vat_tmt); - $this->worksheet->getCell('J' . $itemCellNumber)->setValue($item->total); + + $this->worksheet->setCellValue( + 'J' . $itemCellNumber, + "=D{$itemCellNumber}*E{$itemCellNumber}" + ); // Set font-family, alingment, and borders for all of them... $this->worksheet->getStyle('A' . $itemCellNumber . ':J' . $itemCellNumber)->applyFromArray([ diff --git a/public/write.xls b/public/write.xls index 217308c05a3ad6f7fdbf719285a48ba608f1e351..ee1eb9238170b8df50d56f98e59444bbca78e7d8 100644 GIT binary patch delta 194 zcmZojX-L`7Cdg>Kxm|F(xGEciB7+12Cxb2n7-VrcGJ_f13@H)}%m;u3%K_HO0h(Q4 zm6F(1N`h2Mf>pkOs+7X6QVOI}3aqk23u2};c9qf~mC_)Un^m+YFm2MSU}Su?xl+HK F2>{mIAU*&9 delta 121 zcmZojX-L`7Cdg>9xm|F(xDYcFAA