changeset fe2e17fef3cc in modules/purchase:default
details: https://hg.tryton.org/modules/purchase?cmd=changeset;node=fe2e17fef3cc
description:
Allow overriding digits in Lang.currency and Report.format_currency
issue9588
review292221002
diffstat:
purchase.fodt | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (19 lines):
diff -r 5311b987d0fd -r fe2e17fef3cc purchase.fodt
--- a/purchase.fodt Thu Sep 24 18:28:44 2020 +0200
+++ b/purchase.fodt Thu Sep 24 22:49:09 2020 +0200
@@ -658,7 +658,7 @@
<text:p text:style-name="P12"><text:placeholder
text:placeholder-type="text"><(format_number(line.quantity,
purchase.party.lang, digits=line.unit_digits) + (line.unit and (' ' +
line.unit.symbol) or '')) or
''></text:placeholder></text:p>
</table:table-cell>
<table:table-cell table:style-name="Table1.D5" office:value-type="string">
- <text:p text:style-name="P13"><text:placeholder
text:placeholder-type="text"><format_number(line.unit_price,
purchase.party.lang, digits=line.__class__.unit_price.digits[1],
monetary=purchase.currency)></text:placeholder></text:p>
+ <text:p text:style-name="P13"><text:placeholder
text:placeholder-type="text"><format_currency(line.unit_price,
purchase.party.lang, purchase.currency,
digits=line.__class__.unit_price.digits[1])></text:placeholder></text:p>
</table:table-cell>
<table:table-cell table:style-name="Table1.D5" office:value-type="string">
<text:p text:style-name="P14"><text:placeholder
text:placeholder-type="text"><for each="tax in
line.taxes"></text:placeholder></text:p>
@@ -834,4 +834,4 @@
<text:p text:style-name="Text_20_body"><text:placeholder
text:placeholder-type="text"></for></text:placeholder></text:p>
</office:text>
</office:body>
-</office:document>
\ No newline at end of file
+</office:document>