Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0025031Openbravo ERP07. Sales managementpublic2013-10-28 09:462013-12-31 04:57
ngarcia 
AtulOpenbravo 
highminoralways
closedfixed 
5
 
3.0PR14Q2 
pramakrishnan
Core
No
0025031: Wrong price when creating an order from another one if the product doesn't have a price in the price list of the order
Wrong price when creating an order from another one if the product doesn't have a price in the price list of the order
Create a sales price list (do not set it as default) and a sales price version
Create a new product and add a price in that price list version
Create a sales order for a different price list than the created one
Add a line with a product with a price defined in the price list of the order
Add another line with the product created in the 2nd step
Book it
Create a new sales order with the same header info
Click on the Copy From Order button and select the previously booked order
Check that the price of the product in the 1st line is copied in the 2nd line instead of leaving it as 0 as it doesn't have a price defined in the price list of the order
In CopyFromPOOrder.java initialize the value of the following variables

strPriceActual = "0";
strPriceList = "0";
strPriceLimit = "0";

before the following line

for (int j = 0; data3 != null && j < data3.length; j++) {
No tags attached.
Issue History
2013-10-28 09:46ngarciaNew Issue
2013-10-28 09:46ngarciaAssigned To => jonalegriaesarte
2013-10-28 09:46ngarciaModules => Core
2013-10-28 09:46ngarciaResolution time => 1357599600
2013-10-28 09:46ngarciaTriggers an Emergency Pack => No
2013-10-28 09:46ngarciaIssue Monitored: networkb
2013-12-23 13:49jonalegriaesarteTarget Version3.0MP31 => 3.0MP32
2013-12-27 15:21AtulOpenbravoAssigned Tojonalegriaesarte => AtulOpenbravo
2013-12-27 15:21AtulOpenbravoStatusnew => scheduled
2013-12-27 15:21AtulOpenbravofix_in_branch => pi
2013-12-30 10:40AtulOpenbravoNote Added: 0063111
2013-12-30 11:53hgbotCheckin
2013-12-30 11:53hgbotNote Added: 0063113
2013-12-30 11:53hgbotStatusscheduled => resolved
2013-12-30 11:53hgbotResolutionopen => fixed
2013-12-30 11:53hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/f4dd25a223c406f555a39ea4e4f6070fff30f56b [^]
2013-12-30 11:57pramakrishnanReview Assigned To => pramakrishnan
2013-12-30 11:57pramakrishnanNote Added: 0063115
2013-12-30 11:57pramakrishnanStatusresolved => closed
2013-12-31 04:57hudsonbotCheckin
2013-12-31 04:57hudsonbotNote Added: 0063133

Notes
(0063111)
AtulOpenbravo   
2013-12-30 10:40   
Test Plan
- Create a sales price list (do not set it as default) and a sales price version.
- Create a new product and add a price in above created price list version.
- Create a sales order for a different price list than the created above
- Add a line with a product with a price defined in the price list of the order
- Add another line with the product created in the 2nd step.
- Book the order.
- Create a new sales order with the same header info as previous order.
- Click on the Copy From Order button and select the previously booked order.
- Check that the price of the product in the 1st line is copied properly, in the 2nd line as product is not in the sales order header price list, the price of this product is set as zero.
(0063113)
hgbot   
2013-12-30 11:53   
Repository: erp/devel/pi
Changeset: f4dd25a223c406f555a39ea4e4f6070fff30f56b
Author: Atul Gaware <atul.gaware <at> openbravo.com>
Date: Fri Dec 27 19:53:46 2013 +0530
URL: http://code.openbravo.com/erp/devel/pi/rev/f4dd25a223c406f555a39ea4e4f6070fff30f56b [^]

Fixes Issue 0025031:Wrong price when creating an order from another one if the product
doesn't have a price in the price list of the order

---
M src/org/openbravo/erpCommon/ad_actionButton/CopyFromPOOrder.java
---
(0063115)
pramakrishnan   
2013-12-30 11:57   
Code review + testing - Ok
(0063133)
hudsonbot   
2013-12-31 04:57   
A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/987357c24f95 [^]

Maturity status: Test