changeset e61d30ac4e54 in modules/sale:default
details: https://hg.tryton.org/modules/sale?cmd=changeset;node=e61d30ac4e54
description:
        Allow overriding digits in Lang.currency and Report.format_currency

        issue9588
        review292221002
diffstat:

 sale.fodt |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (19 lines):

diff -r 8a8955d27eb4 -r e61d30ac4e54 sale.fodt
--- a/sale.fodt Thu Sep 24 18:28:45 2020 +0200
+++ b/sale.fodt Thu Sep 24 22:49:09 2020 +0200
@@ -596,7 +596,7 @@
       <text:p text:style-name="P12"><text:placeholder 
text:placeholder-type="text">&lt;(format_number(line.quantity, sale.party.lang, 
digits=line.unit_digits) + (line.unit and (&apos; &apos; + line.unit.symbol) or 
&apos;&apos;)) or &apos;&apos;&gt;</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">&lt;format_number(line.unit_price, 
sale.party.lang, digits=line.__class__.unit_price.digits[1], 
monetary=sale.currency)&gt;</text:placeholder></text:p>
+      <text:p text:style-name="P13"><text:placeholder 
text:placeholder-type="text">&lt;format_currency(line.unit_price, 
sale.party.lang, sale.currency, 
digits=line.__class__.unit_price.digits[1])&gt;</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">&lt;for each=&quot;tax in 
line.taxes&quot;&gt;</text:placeholder></text:p>
@@ -771,4 +771,4 @@
    <text:p text:style-name="Text_20_body"><text:placeholder 
text:placeholder-type="text">&lt;/for&gt;</text:placeholder></text:p>
   </office:text>
  </office:body>
-</office:document>
\ No newline at end of file
+</office:document>

Reply via email to