fix custom field issue and report issues

This commit is contained in:
radhika587
2021-12-06 12:51:31 +00:00
committed by Mohit Panjwani
parent 7b6a88ad4e
commit 603bf637a7
7 changed files with 16 additions and 8 deletions

View File

@ -47,7 +47,7 @@ class CustomerSalesReportController extends Controller
foreach ($customers as $customer) {
$customerTotalAmount = 0;
foreach ($customer->invoices as $invoice) {
$customerTotalAmount += $invoice->total;
$customerTotalAmount += $invoice->base_total;
}
$customer->totalAmount = $customerTotalAmount;
$totalAmount += $customerTotalAmount;