From 87ff5f1191815d1f44fa66fd8eb282cb9d334778 Mon Sep 17 00:00:00 2001 From: Jeff Date: Sat, 18 Feb 2023 12:34:36 +0800 Subject: [PATCH] [taxinvoice.eguile.scm] subtotal discount column appropriately --- gnucash/report/reports/support/taxinvoice.eguile.scm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gnucash/report/reports/support/taxinvoice.eguile.scm b/gnucash/report/reports/support/taxinvoice.eguile.scm index c8d316adf0..0b8bce5e6f 100644 --- a/gnucash/report/reports/support/taxinvoice.eguile.scm +++ b/gnucash/report/reports/support/taxinvoice.eguile.scm @@ -298,7 +298,7 @@ (let* ((inv-total (gncInvoiceGetTotal opt-invoice)) (tax-total (gncInvoiceGetTotalTax opt-invoice)) (sub-total (gncInvoiceGetTotalSubtotal opt-invoice)) - (dsc-total (- inv-total tax-total sub-total)) + (dsc-total (gnc:make-commodity-collector)) (total-col (gnc:make-commodity-collector))) (total-col 'add currency inv-total) (for-each @@ -314,6 +314,7 @@ (acc (if cust-doc? (gncEntryGetInvAccount entry)(gncEntryGetBillAccount entry))) (taxable (if cust-doc? (gncEntryGetInvTaxable entry)(gncEntryGetBillTaxable entry))) (taxtable (if cust-doc? (gncEntryGetInvTaxTable entry)(gncEntryGetBillTaxTable entry)))) + (dsc-total 'add currency rdiscval) ?> @@ -362,7 +363,7 @@ (if (and discount?) 1 0) ) ?>"> - +