Comment 4 for bug 595780

Revision history for this message
Nhomar - Vauxoo (nhomar) wrote : Re: [Bug 595780] Re: [purchase_discount] Wrong implementation in calc or generate packing and invoice

Hello Dukai...

Sorry for the delay in answer.

IMHO the behavior in cost calculation for both cases Anglo and Normandy is
correct right now, i think we need to make consistent modules without
overwrite the original ones that are working very very good....

Solution:

I post on revno 4433 of extra-addons the solution to both situations (your
and mine) in the purchase_order_line with a consistent behaviour between
discount-price_unit - and[[New Field]] price_base if you change whatever you
 want the other two fields will take a consistent value....

If you are agree with this behaviour, i can extend this solution to
purchase_invoices, in this case you can show in all your documents the full
price (without discounts) and the original behaviour in the cost calculation
will stay "immaculate"...... Thanks a lot.....

Proccess:

Select Purchase Order.
Select a product.
----- All Fine auto loaded exactly like the original behaviour....

Change the discount Value.... the price_unit will change.
Change the _new price Unit.... the price_base change
Change the price_base the price_unit will change to a consistent value......

I hope it can help you..................