Bug 798493 - Invoice Report Quantity & Unit Price fields have limited decimal precision on printed invoices

use xaccPrintAmount which formats number nicely.
This commit is contained in:
Christopher Lam 2022-04-05 23:15:09 +08:00
parent 6a668df168
commit c8f1caa95f

View File

@ -447,7 +447,9 @@ for styling the invoice. Please see the exported report for the CSS class names.
(addif (quantity-col used-columns)
(gnc:make-html-table-cell/markup
"number-cell"
(gncEntryGetDocQuantity entry credit-note?)))
(xaccPrintAmount
(gncEntryGetDocQuantity entry credit-note?)
(gnc-default-print-info #f))))
(addif (price-col used-columns)
(gnc:make-html-table-cell/markup