Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0013681Openbravo ERP03. Procurement managementpublic2010-06-17 10:242010-08-06 00:00
sureshbabu 
sivaraman 
urgentmajoralways
closedfixed 
5
main 
2.50MP20 
Core
No
0013681: Not able to copy line item details using Copy from order option from sales order window
Not able to copy line item details using Copy from order option from sales order window
Create price adjustments:
Steps to create price adjustments

Navigate to Price adjustments window (Master Data Management || Pricing || Price Adjustments || Adjustments)
click new, and enter the below details

Name: Price adjustments testing, Starting date: 01/01/2010, Ending date: 31/12/2010, Discount %: 10, Include Business Partners: All selected, Include Products: All selected

Navigate to Business partner tab,

click new and select BP: Red Bunny
Again click new and select BP: Mcgivers


Then Navigate to Product tab
Click new and select product : Hat
Again click new and select product: Shirt

2) Inactivate the above created price adjustments:
Navigate to Price adjustment window and select the above created Price adjustments, un check the active checkbox field to move the record to inactive state.

3) Try to create a sale order using below details
Business partner: Red Bunny
Product: Hat

4) Try to create one more sales order by navigate to sales order window
select business partner as Red bunny
Then click "Copy From Order" button, and select the sales order which is created in step 3 and click "OK" button

Error: Right now system throws the below error
"ERROR: null value in column "priceactual" violates not-null constraint"
No tags attached.
blocks defect 00143232.50MP21 closed adrianromero Not able to copy lines using Copy From Order from sales order window 
jpg Not able to copy line item details using Copy from Order option in sales order.JPG (176,604) 2010-06-17 10:24
https://issues.openbravo.com/file_download.php?file_id=2697&type=bug
jpg
Issue History
2010-06-17 10:24sureshbabuNew Issue
2010-06-17 10:24sureshbabuAssigned To => adrianromero
2010-06-17 10:24sureshbabuFile Added: Not able to copy line item details using Copy from Order option in sales order.JPG
2010-06-17 11:46psarobePriorityhigh => urgent
2010-06-17 11:46psarobeStatusnew => scheduled
2010-06-17 11:46psarobeTarget Version2.50MP19 => 2.50MP20
2010-06-17 11:50sureshbabuPriorityurgent => high
2010-06-17 11:50sureshbabuStatusscheduled => new
2010-06-18 09:59psarobePriorityhigh => urgent
2010-06-18 09:59psarobeStatusnew => scheduled
2010-08-02 10:38sivaramanAssigned Toadrianromero => sivaraman
2010-08-03 07:06hgbotCheckin
2010-08-03 07:06hgbotNote Added: 0029757
2010-08-03 07:06hgbotStatusscheduled => resolved
2010-08-03 07:06hgbotResolutionopen => fixed
2010-08-03 07:06hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/7a775a53318068a4225e6ebd7edb3f20641a63bc [^]
2010-08-03 07:10sivaramanNote Added: 0029758
2010-08-05 09:16hudsonbotCheckin
2010-08-05 09:16hudsonbotNote Added: 0029795
2010-08-05 11:58sureshbabuNote Added: 0029820
2010-08-05 11:58sureshbabuStatusresolved => closed
2010-08-06 00:00anonymoussf_bug_id0 => 3040291
2010-08-26 14:07sureshbabuRelationship addedblocks 0014323

Notes
(0029757)
hgbot   
2010-08-03 07:06   
Repository: erp/devel/pi
Changeset: 7a775a53318068a4225e6ebd7edb3f20641a63bc
Author: Sivaraman Rajagopal <sivaraman.rajagopal <at> openbravo.com>
Date: Tue Aug 03 10:36:18 2010 +0530
URL: http://code.openbravo.com/erp/devel/pi/rev/7a775a53318068a4225e6ebd7edb3f20641a63bc [^]

Fixes issue 13681: Not able to copy line item details using Copy from order option from sales order window

As M_GET_OFFER_PRICE is deprecated , it's replaced with M_GET_OFFERS_PRICE in order to resolve the issue

---
M src/org/openbravo/erpCommon/ad_actionButton/CopyFromPOOrder_data.xsql
---
(0029758)
sivaraman   
2010-08-03 07:10   
Steps to reproduce:

Kindly follow all the steps as given in the 'Steps To Reproduce' section and verify 'if Copy From Order' button working as expected.
(0029795)
hudsonbot   
2010-08-05 09:16   
A changeset related to this issue has been promoted to main after passing a series of tests and an OBX has been generated:

Changeset: http://code.openbravo.com/erp/devel/main/rev/7a775a533180 [^]
Merge Changeset: http://code.openbravo.com/erp/devel/main/rev/02ad8e3730d2 [^]
Tests: http://builds.openbravo.com/view/int/ [^]
OBX: http://builds.openbravo.com/erp/core/obx/OpenbravoERP-2.50CI.18019.obx [^]
(0029820)
sureshbabu   
2010-08-05 11:58   
Verified, now i can able to copy lines using "Copy from order" option. when i complete the invoice, price adjustments not applied to the order. Any how i will close this issue and raise a new issue.