Openbravo Issue Tracking System - Openbravo ERP | ||||||||||||
View Issue Details | ||||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | |||||||
0028177 | Openbravo ERP | 03. Procurement management | public | 2014-11-14 11:06 | 2014-12-30 23:27 | |||||||
Reporter | maite | |||||||||||
Assigned To | AtulOpenbravo | |||||||||||
Priority | urgent | Severity | major | Reproducibility | always | |||||||
Status | closed | Resolution | fixed | |||||||||
Platform | OS | 5 | OS Version | |||||||||
Product Version | ||||||||||||
Target Version | 3.0PR15Q2 | Fixed in Version | ||||||||||
Merge Request Status | ||||||||||||
Review Assigned To | pramakrishnan | |||||||||||
OBNetwork customer | OBPS | |||||||||||
Web browser | ||||||||||||
Modules | Core | |||||||||||
Support ticket | 32413 | |||||||||||
Regression level | ||||||||||||
Regression date | ||||||||||||
Regression introduced in release | ||||||||||||
Regression introduced by commit | ||||||||||||
Triggers an Emergency Pack | No | |||||||||||
Summary | 0028177: "Copy Lines" process is recalculating "lastpriceso" using "pricestd" instead of "lastpriceso" | |||||||||||
Description | "Copy Lines" process is recalculating "lastpriceso" using "pricestd" instead of "lastpriceso" | |||||||||||
Steps To Reproduce | 1. Define Price list as "tax included taxes" and set price=0 for an specific product 2. Register Purchase Order for any org and bp. Add line using previous product, edit price to set 200 and process order 3. Register new Purchase Order header for same org and bp 4. Run "Copy Lines" process and realize that "Last Price" is not showing 200 but 0.00, which is wrong | |||||||||||
Proposed Solution | lastpriceso is being properly calculated to 200 in the query but is being later overwritten in following line of code using "pricestd" instead of previous "lastpriceso" (CopyFromOrder.java) for (int i = 0; i < data.length; i++) { Product product = OBDal.getInstance().get(Product.class, data[i].mProductId); data[i].lastpriceso = (PriceAdjustment.calculatePriceActual(order, product, new BigDecimal( data[i].qty), new BigDecimal(data[i].pricestd))).toString(); } patch attached | |||||||||||
Additional Information | ||||||||||||
Tags | No tags attached. | |||||||||||
Relationships |
| |||||||||||
Attached Files | ![]() https://issues.openbravo.com/file_download.php?file_id=7512&type=bug | |||||||||||
Issue History | ||||||||||||
Date Modified | Username | Field | Change | |||||||||
2014-11-14 11:06 | maite | New Issue | ||||||||||
2014-11-14 11:06 | maite | Assigned To | => dmiguelez | |||||||||
2014-11-14 11:06 | maite | OBNetwork customer | => Yes | |||||||||
2014-11-14 11:06 | maite | Modules | => Core | |||||||||
2014-11-14 11:06 | maite | Support ticket | => 32413 | |||||||||
2014-11-14 11:06 | maite | Triggers an Emergency Pack | => No | |||||||||
2014-11-14 11:07 | maite | Relationship added | related to 0025671 | |||||||||
2014-11-14 11:07 | maite | Assigned To | dmiguelez => AtulOpenbravo | |||||||||
2014-11-14 11:19 | maite | Proposed Solution updated | ||||||||||
2014-11-14 11:19 | maite | File Added: 28177.diff | ||||||||||
2014-11-17 14:06 | maite | Resolution time | => 1419030000 | |||||||||
2014-12-01 13:42 | egoitz | Target Version | 3.0PR15Q1 => 3.0PR15Q2 | |||||||||
2014-12-09 03:56 | AtulOpenbravo | Note Added: 0072338 | ||||||||||
2014-12-09 03:56 | AtulOpenbravo | Status | new => scheduled | |||||||||
2014-12-09 03:56 | AtulOpenbravo | fix_in_branch | => pi | |||||||||
2014-12-09 04:03 | AtulOpenbravo | Review Assigned To | => pramakrishnan | |||||||||
2014-12-09 04:03 | AtulOpenbravo | fix_in_branch | pi => | |||||||||
2014-12-09 04:05 | hgbot | Checkin | ||||||||||
2014-12-09 04:05 | hgbot | Note Added: 0072339 | ||||||||||
2014-12-09 04:05 | hgbot | Status | scheduled => resolved | |||||||||
2014-12-09 04:05 | hgbot | Resolution | open => fixed | |||||||||
2014-12-09 04:05 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/78f50adbb376670cfb1fa98953c50d62b5706161 [^] | |||||||||
2014-12-15 09:41 | pramakrishnan | Note Added: 0072489 | ||||||||||
2014-12-15 09:41 | pramakrishnan | Status | resolved => closed | |||||||||
2014-12-30 23:27 | hudsonbot | Checkin | ||||||||||
2014-12-30 23:27 | hudsonbot | Note Added: 0073184 |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|