← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 693084] Re: purchase_discount wrong value invoice field price_unit

 

Hi DBR:

I will attach the three instances, the purchase order line, the packing and the invoice. You will find that the system receive the goods at price with with discount and then generate the invoice with this price with discount as a price-base and apply the discount again. 
If you need more information please tell me. 

Thanks

DG

** Attachment added: "purchase order line"
   https://bugs.launchpad.net/openobject-addons/+bug/693084/+attachment/1773646/+files/purch-order-line2.png

-- 
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/693084

Title:
  purchase_discount wrong value invoice field price_unit

Status in OpenObject Addons Modules:
  Incomplete

Bug description:
  Hi:

I'm in version 5.0.15. 
In the purchase order line there are three fields: price_unit_base, discount and price_unit_real. It works fine. 
Now, when the invoice is generated the field price_unit has the value of purchase-order-line.price_unit_real, it is wrong. In consecuence the field Price with discount is wrong too because it has the value of price_unit * discount. (value with discount applied again). 

The right value of invoice-line.price-unit is purchase-order-line.price-unit-base. 

Can Fix it? 

Best regards

DG





References