Add methods to format number and symbol on Lang

and add format number with symbol on Report

issue10730
review371831002
This commit is contained in:
Maxime Richez
2021-10-04 18:52:01 +02:00
parent 272588b67e
commit 41f458cc28
+1 -1
View File
@@ -689,7 +689,7 @@
<text:p text:style-name="P26"><text:placeholder text:placeholder-type="text">&lt;/for&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="P17"><text:placeholder text:placeholder-type="text">&lt;(format_number(quotation_line.quantity, quotation.supplier.lang, digits=quotation_line.unit.digits if quotation_line.unit else None) + (quotation_line.unit and (&apos; &apos; + quotation_line.unit.symbol) or &apos;&apos;)) or &apos;&apos;&gt;</text:placeholder></text:p>
<text:p text:style-name="P17"><text:placeholder text:placeholder-type="text">&lt;format_number_symbol(quotation_line.quantity, quotation.supplier.lang, quotation_line.unit, digits=quotation_line.unit.digits) if quotation_line.unit else format_number(quotation_line.quantity, quotation.supplier.lang)&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="P17"><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>