mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Fix for rounding subtotal value
This commit is contained in:
parent
7b8798812f
commit
98bad586e2
@ -348,7 +348,7 @@ $LANG = array(
|
|||||||
'invoice_fields' => 'Invoice Fields',
|
'invoice_fields' => 'Invoice Fields',
|
||||||
'invoice_options' => 'Invoice Options',
|
'invoice_options' => 'Invoice Options',
|
||||||
'hide_quantity' => 'Hide Quantity',
|
'hide_quantity' => 'Hide Quantity',
|
||||||
'hide_quantity_help' => 'If your line items quantities are always 1, then you can declutter invoices by no longer displaying this field.',
|
'hide_quantity_help' => 'Disable the quantities column, then you can declutter invoices by no longer displaying this field.',
|
||||||
'hide_paid_to_date' => 'Hide Paid to Date',
|
'hide_paid_to_date' => 'Hide Paid to Date',
|
||||||
'hide_paid_to_date_help' => 'Only display the "Paid to Date" area on your invoices once a payment has been received.',
|
'hide_paid_to_date_help' => 'Only display the "Paid to Date" area on your invoices once a payment has been received.',
|
||||||
'charge_taxes' => 'Charge taxes',
|
'charge_taxes' => 'Charge taxes',
|
||||||
|
@ -314,6 +314,7 @@ function InvoiceModel(data) {
|
|||||||
for(var p=0; p < self.invoice_items().length; ++p) {
|
for(var p=0; p < self.invoice_items().length; ++p) {
|
||||||
var item = self.invoice_items()[p];
|
var item = self.invoice_items()[p];
|
||||||
total += item.totals.rawTotal();
|
total += item.totals.rawTotal();
|
||||||
|
total = roundToTwo(total);
|
||||||
}
|
}
|
||||||
return total;
|
return total;
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user