modules/org.openbravo.client.htmlwidget/src-db/database/sourcedata/AD_MODULE.xml
author Mark Molina <mark.molina@doceleguas.com>
Thu, 10 Oct 2019 22:20:19 -0300
changeset 36621 fc810b87d8a0
parent 36571 64f8c1726a28
permissions -rw-r--r--
Fixes issue 41955: Calculate discount value homogeneously on different callouts

When creating a purchase order line, the discount value was calculated incorrectly,
so the unit price was charged with a different value than the value wich it was defined
in the purchase price list.

In the Purchase/Sales Order window, when the Product is selected, the prices are loaded
from the header's pricelist. When these prices are loaded the Discount field is calculated
and the field is updated with values returned by the SL_Order_Product callout.

Due to the Discount updation, the SL_Order_Amt callout is also called and it tries to recalculate
the prices again, but in this case it was doing the discount calculation in a different
way than the SL_Order_Product callout and the inverse operation makes an incorrect calculation
of the prices and discounts, and get differences because rounding.

To fix this issue, the discount calculation is made in the same way in all the evolved
callouts. In this case, the SL_Order_Amt callout was updated to get the discounts in the
same way than the SL_Order_Product callout.
<?xml version='1.0' encoding='UTF-8'?>
<data>
<!--D393BE6F22BB44B7B728259B34FC795A--><AD_MODULE>
<!--D393BE6F22BB44B7B728259B34FC795A-->  <AD_MODULE_ID><![CDATA[D393BE6F22BB44B7B728259B34FC795A]]></AD_MODULE_ID>
<!--D393BE6F22BB44B7B728259B34FC795A-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
<!--D393BE6F22BB44B7B728259B34FC795A-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
<!--D393BE6F22BB44B7B728259B34FC795A-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
<!--D393BE6F22BB44B7B728259B34FC795A-->  <NAME><![CDATA[HTML Widget]]></NAME>
<!--D393BE6F22BB44B7B728259B34FC795A-->  <VERSION><![CDATA[1.0.36548]]></VERSION>
<!--D393BE6F22BB44B7B728259B34FC795A-->  <DESCRIPTION><![CDATA[Provides the HTML Widget superclass that allows to create widget classes that embed the html code.]]></DESCRIPTION>
<!--D393BE6F22BB44B7B728259B34FC795A-->  <HELP><![CDATA[With this module you can define your own widget classes just setting up your own html code or the html code provided by third parties.]]></HELP>
<!--D393BE6F22BB44B7B728259B34FC795A-->  <URL><![CDATA[http://forge.openbravo.com/projects/htmlwidget]]></URL>
<!--D393BE6F22BB44B7B728259B34FC795A-->  <TYPE><![CDATA[M]]></TYPE>
<!--D393BE6F22BB44B7B728259B34FC795A-->  <LICENSE><![CDATA[Licensed under the Openbravo Public License version 1.1.
You may obtain a copy of the License at http://www.openbravo.com/legal/license.html or in the legal folder of the Openbravo ERP core distribution. ]]></LICENSE>
<!--D393BE6F22BB44B7B728259B34FC795A-->  <JAVAPACKAGE><![CDATA[org.openbravo.client.htmlwidget]]></JAVAPACKAGE>
<!--D393BE6F22BB44B7B728259B34FC795A-->  <LICENSETYPE><![CDATA[OBPL]]></LICENSETYPE>
<!--D393BE6F22BB44B7B728259B34FC795A-->  <AUTHOR><![CDATA[Openbravo S.L.U.]]></AUTHOR>
<!--D393BE6F22BB44B7B728259B34FC795A-->  <ISTRANSLATIONREQUIRED><![CDATA[Y]]></ISTRANSLATIONREQUIRED>
<!--D393BE6F22BB44B7B728259B34FC795A-->  <AD_LANGUAGE><![CDATA[en_US]]></AD_LANGUAGE>
<!--D393BE6F22BB44B7B728259B34FC795A-->  <HASCHARTOFACCOUNTS><![CDATA[N]]></HASCHARTOFACCOUNTS>
<!--D393BE6F22BB44B7B728259B34FC795A-->  <ISTRANSLATIONMODULE><![CDATA[N]]></ISTRANSLATIONMODULE>
<!--D393BE6F22BB44B7B728259B34FC795A-->  <HASREFERENCEDATA><![CDATA[N]]></HASREFERENCEDATA>
<!--D393BE6F22BB44B7B728259B34FC795A-->  <VERSION_LABEL><![CDATA[CI]]></VERSION_LABEL>
<!--D393BE6F22BB44B7B728259B34FC795A-->  <ISCOMMERCIAL><![CDATA[N]]></ISCOMMERCIAL>
<!--D393BE6F22BB44B7B728259B34FC795A-->  <ISTRIALALLOWED><![CDATA[N]]></ISTRIALALLOWED>
<!--D393BE6F22BB44B7B728259B34FC795A--></AD_MODULE>

</data>