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

        issue9588
        review292221002
diffstat:

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

diffs (19 lines):

diff -r 8199a4a99bf0 -r 54061f7fe4b9 quotation.fodt
--- a/quotation.fodt    Thu Sep 24 18:28:44 2020 +0200
+++ b/quotation.fodt    Thu Sep 24 22:49:09 2020 +0200
@@ -677,7 +677,7 @@
       <text:p text:style-name="P14"><text:placeholder 
text:placeholder-type="text">&lt;(format_number(quotation_line.quantity, 
quotation.supplier.lang, digits=quotation_line.unit_digits) + 
(quotation_line.unit and (&apos; &apos; + quotation_line.unit.symbol) or 
&apos;&apos;)) or &apos;&apos;&gt;</text:placeholder></text:p>
      </table:table-cell>
      <table:table-cell table:style-name="Tableau1.A3" 
office:value-type="string">
-      <text:p text:style-name="P14"><text:placeholder 
text:placeholder-type="text">&lt;format_number(quotation_line.unit_price, 
quotation.supplier.lang, digits=quotation_line.__class__.unit_price.digits[1], 
monetary=quotation_line.currency) if quotation_line.unit_price else 
&quot;&quot;&gt;</text:placeholder></text:p>
+      <text:p text:style-name="P14"><text:placeholder 
text:placeholder-type="text">&lt;format_currency(quotation_line.unit_price, 
quotation.supplier.lang, quotation_line.currency, 
digits=quotation_line.__class__.unit_price.digits[1]) if 
quotation_line.unit_price else &quot;&quot;&gt;</text:placeholder></text:p>
      </table:table-cell>
      <table:table-cell table:style-name="Tableau1.A2" 
office:value-type="string">
       <text:p text:style-name="P16"><text:placeholder 
text:placeholder-type="text">&lt;format_date(quotation_line.supply_date, 
quotation.supplier.lang) if quotation_line.supply_date else 
&apos;&apos;&gt;</text:placeholder></text:p>
@@ -695,4 +695,4 @@
    <text:p text:style-name="P56"><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