mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-18 22:00:31 +00:00
feat: wip line-level discount
This commit is contained in:
@@ -154,6 +154,6 @@ export class CommandSaleInvoiceDTOTransformer {
|
||||
* @returns {number}
|
||||
*/
|
||||
private getDueBalanceItemEntries = (entries: ItemEntry[]) => {
|
||||
return sumBy(entries, (e) => e.amount);
|
||||
return sumBy(entries, (e) => e.total);
|
||||
};
|
||||
}
|
||||
|
||||
@@ -199,7 +199,7 @@ export class SaleInvoiceGLEntries {
|
||||
index: number
|
||||
): ILedgerEntry => {
|
||||
const commonEntry = this.getInvoiceGLCommonEntry(saleInvoice);
|
||||
const localAmount = entry.amountExludingTax * saleInvoice.exchangeRate;
|
||||
const localAmount = entry.total * saleInvoice.exchangeRate;
|
||||
|
||||
return {
|
||||
...commonEntry,
|
||||
|
||||
Reference in New Issue
Block a user