Merge pull request #689 from sausin/patch-1
Fix calculation to show correct amount in modal
This commit is contained in:
commit
592fe710b2
@ -54,8 +54,8 @@ class BillPayments extends Controller
|
|||||||
|
|
||||||
$bill->grand_total = money($total, $currency->code)->getAmount();
|
$bill->grand_total = money($total, $currency->code)->getAmount();
|
||||||
|
|
||||||
if (!empty($paid)) {
|
if ($bill->paid > 0) {
|
||||||
$bill->grand_total = $bill->total - $paid;
|
$bill->grand_total = $bill->total - $bill->paid;
|
||||||
}
|
}
|
||||||
|
|
||||||
$html = view('modals.bills.payment', compact('bill', 'accounts', 'currencies', 'currency', 'payment_methods'))->render();
|
$html = view('modals.bills.payment', compact('bill', 'accounts', 'currencies', 'currency', 'payment_methods'))->render();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user