From 9f40cac2541195dda848226620c7e1165443af55 Mon Sep 17 00:00:00 2001 From: Christopher Lam Date: Wed, 10 Jul 2019 23:07:16 +0800 Subject: [PATCH] [taxinvoice] bugfix: remove option 'Report Currency' this option is useless; it does not enforce currency conversion, it was merely used for "Amount Due, XXX" currency-mnemonic. Remove this option, and modify code to use invoice currency instead. --- gnucash/report/business-reports/taxinvoice.eguile.scm | 4 ++-- gnucash/report/business-reports/taxinvoice.scm | 8 +------- 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/gnucash/report/business-reports/taxinvoice.eguile.scm b/gnucash/report/business-reports/taxinvoice.eguile.scm index 70d7b491cf..ed82b336c7 100644 --- a/gnucash/report/business-reports/taxinvoice.eguile.scm +++ b/gnucash/report/business-reports/taxinvoice.eguile.scm @@ -423,8 +423,8 @@ - , - + , + diff --git a/gnucash/report/business-reports/taxinvoice.scm b/gnucash/report/business-reports/taxinvoice.scm index 58a588ee36..882b916116 100644 --- a/gnucash/report/business-reports/taxinvoice.scm +++ b/gnucash/report/business-reports/taxinvoice.scm @@ -91,7 +91,6 @@ (define optname-row-contact (N_ "row: Contact")) (define optname-row-invoice-number (N_ "row: Invoice Number")) (define optname-row-company-name (N_ "row: Company Name")) -(define optname-report-currency (N_ "Report Currency")) (define optname-invoice-number-text (N_ "Invoice number text")) (define optname-to-text (N_ "To text")) (define optname-ref-text (N_ "Ref text")) @@ -152,11 +151,6 @@ "a" "" (lambda () '()) #f)) ;customers-only)) ;-- see above - (add-option - (gnc:make-currency-option - gnc:pagename-general optname-report-currency - "b" "" (gnc-default-report-currency))) - ;; Elements page options (add-option (gnc:make-simple-boolean-option elementspage optname-col-date "a" (N_ "Display the date?") #t)) (add-option (gnc:make-simple-boolean-option elementspage optname-col-taxrate "b" (N_ "Display the Tax Rate?") #t)) @@ -282,7 +276,7 @@ (opt-jobname-show (opt-value elementspage optname-jobname-show)) (opt-jobnumber-show (opt-value elementspage optname-jobnumber-show)) (opt-netprice (opt-value elementspage optname-netprice)) - (opt-report-currency (opt-value gnc:pagename-general optname-report-currency)) + (opt-invoice-currency (gncInvoiceGetCurrency opt-invoice)) (opt-css-border-collapse (if (opt-value displaypage optname-border-collapse) "border-collapse:collapse;")) (opt-css-border-color-th (opt-value displaypage optname-border-color-th)) (opt-css-border-color-td (opt-value displaypage optname-border-color-td))