Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0016740Openbravo ERP03. Procurement managementpublic2011-04-11 12:252011-04-12 00:00
psanjuan 
adrianromero 
immediatemajorhave not tried
closedfixed 
20Ubuntu 8.04.1
 
3.0RC6 
Core
No
0016740: 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.
related to defect 00131322.40MP13 closed harikrishnan m_get_offer error when using "create lines from" process 
blocks backport 00167492.50MP29 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 12:25psanjuanNew Issue
2011-04-11 12:25psanjuanAssigned To => adrianromero
2011-04-11 12:25psanjuanModules => Core
2011-04-11 12:31psanjuanSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=1808#r1808
2011-04-11 12:31psanjuanProposed Solution updated
2011-04-11 12:31psanjuanSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=1809#r1809
2011-04-11 12:41psanjuanSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=1810#r1810
2011-04-11 12:45psanjuanTarget Version => 3.0RC6
2011-04-11 17:01adrianromeroRelationship addedrelated to 0013132
2011-04-11 17:03adrianromeroStatusnew => scheduled
2011-04-11 17:04adrianromeroIssue cloned0016749
2011-04-11 17:04adrianromeroRelationship addedblocks 0016749
2011-04-11 17:29hgbotCheckin
2011-04-11 17:29hgbotNote Added: 0035827
2011-04-11 17:29hgbotStatusscheduled => resolved
2011-04-11 17:29hgbotResolutionopen => fixed
2011-04-11 17:29hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/d588e908d518c94bd62a22acba54f4bb2d146564 [^]
2011-04-11 17:33adrianromeroNote Added: 0035829
2011-04-11 17:33adrianromeroNote Added: 0035832
2011-04-11 17:33adrianromeroStatusresolved => closed
2011-04-12 00:00anonymoussf_bug_id0 => 3284842

Notes
(0035827)
hgbot   
2011-04-11 17:29   
Repository: erp/devel/pi
Changeset: d588e908d518c94bd62a22acba54f4bb2d146564
Author: Adrián Romero <adrianromero <at> openbravo.com>
Date: Mon Apr 11 17:00:32 2011 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/d588e908d518c94bd62a22acba54f4bb2d146564 [^]

Fixes issue 0016740: 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
---
(0035829)
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.
(0035832)
adrianromero   
2011-04-11 17:33   
verified