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

        issue9588
        review292221002
diffstat:

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

diffs (19 lines):

diff -r 6ba8bdbae29a -r feee3d2c1891 invoice.fodt
--- a/invoice.fodt      Thu Sep 24 10:29:09 2020 +0200
+++ b/invoice.fodt      Thu Sep 24 22:49:09 2020 +0200
@@ -709,7 +709,7 @@
       <text:p text:style-name="P10"><text:placeholder 
text:placeholder-type="text">&lt;(format_number(line.quantity, 
invoice.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="P11"><text:placeholder 
text:placeholder-type="text">&lt;format_number(line.unit_price, 
invoice.party.lang, digits=line.__class__.unit_price.digits[1], 
monetary=invoice.currency)&gt;</text:placeholder></text:p>
+      <text:p text:style-name="P11"><text:placeholder 
text:placeholder-type="text">&lt;format_currency(line.unit_price, 
invoice.party.lang, invoice.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="P8"><text:placeholder 
text:placeholder-type="text">&lt;&apos;,&apos;.join(&apos;[&apos; + 
&apos;%s&apos; % x.sequence_number + &apos;]&apos; for x in 
line.invoice_taxes)&gt;</text:placeholder></text:p>
@@ -995,4 +995,4 @@
    <text:p 
text:style-name="Text_20_body"><text:soft-page-break/><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