Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0016749Openbravo ERP03. Procurement managementpublic2011-04-11 17:042011-04-11 17:33
adrianromero 
adrianromero 
immediatemajorhave not tried
closedfixed 
20Ubuntu 8.04.1
2.50MP28 
2.50MP29 
Core
No
0016749: Purchase Invoice - "Create lines From" feature does not take the unit price of the purchase order but the price list one
Purchase Invoice - "Create lines From" feature does not take the unit price of the purchase order but the price list one
Create a purchase order for Bebidas Alegres SL
Choose the product "Cerveza Ale 0.5L".
Realize that the net unit price coming from the Price List is 1.36
Change that price to 1.77 by example.
Complete the purchase order.

Navigate to purchase invoice window and create a new one for Bebidas Alegres SL
Press the button Create Lines From and choose the last purchase order just created.

Realize that the purchase invoice line shows a net unit price = 1.36 instead of 1.77

same behaviour in case of Oracle and Postgre.
same behaviour in case of purchase and sales

Net unit price should show the net unit price of the purchase order while creating a purchase invoice line by using "Create Lines From" button.
No tags attached.
depends on defect 00167403.0RC6 closed adrianromero Purchase Invoice - "Create lines From" feature does not take the unit price of the purchase order but the price list one 
Issue History
2011-04-11 17:04adrianromeroNew Issue
2011-04-11 17:04adrianromeroAssigned To => adrianromero
2011-04-11 17:04adrianromeroModules => Core
2011-04-11 17:04adrianromeroIssue generated from0016740
2011-04-11 17:04adrianromeroRelationship addeddepends on 0016740
2011-04-11 17:30hgbotCheckin
2011-04-11 17:30hgbotNote Added: 0035828
2011-04-11 17:30hgbotStatusnew => resolved
2011-04-11 17:30hgbotResolutionopen => fixed
2011-04-11 17:30hgbotFixed in SCM revision => http://code.openbravo.com/erp/stable/2.50/rev/3f8a7a0ad260f38caa9709d8da3b05d3af3aed89 [^]
2011-04-11 17:33adrianromeroNote Added: 0035830
2011-04-11 17:33adrianromeroNote Added: 0035831
2011-04-11 17:33adrianromeroStatusresolved => closed

Notes
(0035828)
hgbot   
2011-04-11 17:30   
Repository: erp/stable/2.50
Changeset: 3f8a7a0ad260f38caa9709d8da3b05d3af3aed89
Author: Adrián Romero <adrianromero <at> openbravo.com>
Date: Mon Apr 11 17:07:09 2011 +0200
URL: http://code.openbravo.com/erp/stable/2.50/rev/3f8a7a0ad260f38caa9709d8da3b05d3af3aed89 [^]

Fixes issue 0016749: Purchase Invoice - Create lines From feature does not take the unit price of the purchase order but the price list one
It has been removed the recalculation of the price of the line in case of copying from an order or from a shipment with an order associated.

---
M src/org/openbravo/erpCommon/ad_actionButton/CreateFrom.java
---
(0035830)
adrianromero   
2011-04-11 17:33   
* Testing the issue

Follow the steps to test and verify that now the price is not recalculated and is copied from the order line.

Test it for purchase invoices and sales invoices.

Test if copying lines from a shipment without an order associated, prices are recalculated

Test also that issue 13132 continues working as expected.

* Other areas affected.

No other areas affected. It has been only modified the area that copies lines to invoices.
(0035831)
adrianromero   
2011-04-11 17:33   
verified