c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #23088
[Bug 772308] Re: [6.0.2] wrong number of decimal for discount in sale order
Please ignore my previous comment (#3), it's posted to the wrong bug.
The digits=... should be removed, or it should use different Digit
Precision
Line 282, sale/report/sale_order.rml
<td>
<para style="terp_default_Centre_9">[[ formatLang(line.discount, digits=get_digits(dp='Sale Price')) ]]</para>
</td>
and line 295, sale_layout/report/report_sale_layout.rml
<para style="terp_default_Centre_9"><font face="Helvetica" size="8.0">[[ a['layout_type']=='subtotal' and ( setTag('para','para',{'fontName':'Helvetica-Bold'})) or removeParentNode('font') ]]</font> [[ formatLang(a['discount'], digits=get_digits(dp='Sale Price')) ]]</para>
--
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/772308
Title:
[6.0.2] wrong number of decimal for discount in sale order
Status in OpenERP Modules (addons):
New
Bug description:
If I configure decimal for sale to 0 (i.e. values end up in xxx.00)
then the discount in report doesn't show the correct %: it's rounded
to zero as well, while it's shown correctly on form
Maybe we need to have separate decimal control for discount (%)?
References