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 217308c..ee1eb92 100644 Binary files a/public/write.xls and b/public/write.xls differ