Invoice w/ bash remaining not marked #1087

This commit is contained in:
Hillel Coren 2017-03-01 15:16:22 +02:00
parent 5fb0ee1393
commit 3457fa3d03

View File

@ -545,7 +545,7 @@ class InvoiceRepository extends BaseRepository
}
if ($publicId) {
$invoice->balance = $total - ($invoice->amount - $invoice->balance);
$invoice->balance = round($total - ($invoice->amount - $invoice->balance), 2);
} else {
$invoice->balance = $total;
}