Openbravo Issue Tracking System - Openbravo ERP |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0008945 | Openbravo ERP | 05. Production management | public | 2009-05-07 12:00 | 2010-05-18 21:43 |
|
Reporter | sureshbabu | |
Assigned To | sivaraman | |
Priority | urgent | Severity | minor | Reproducibility | always |
Status | closed | Resolution | fixed | |
Platform | | OS | 30 | OS Version | |
Product Version | 2.50MP1 | |
Target Version | 2.50MP14 | Fixed in Version | | |
Merge Request Status | |
Review Assigned To | |
OBNetwork customer | |
Web browser | |
Modules | Core |
Support ticket | |
Regression level | |
Regression date | |
Regression introduced in release | |
Regression introduced by commit | |
Triggers an Emergency Pack | No |
|
Summary | 0008945: Line item attribute values are not copied in PO, when the user tries to copy the line items using copy from order option |
Description | Line item attribute values are not copied in PO, when the user tries to copy the line items using copy from order option
Note: when we try to copy the lines using copy lines option its working fine.
|
Steps To Reproduce | Step 1: create a PO, by moving to Procurement Management || Transactions || Purchase Order || Header and click New.
BP: select any BP and move to line item tab. Click new and select any product which as attribute value associated to it.
Attribute: enter some valid attribute value
Qty: enter any valid number.
Move to header and click Complete button.
Again click new and select the same Business partner
Click Copy from Order button and click the order icon.
select the above selected Purchase order and click ok.
Process completed successfully message appears
Move to lines tab & edit the line item.
Verify all the field values in the lines page.
Expected: Attribute field should get copied.
Actual result: Attribute field is blank.
|
Proposed Solution | |
Additional Information | |
Tags | 250MP1, 250mp2 |
Relationships | |
Attached Files | |
|
Issue History |
Date Modified | Username | Field | Change |
2009-05-07 12:00 | sureshbabu | New Issue | |
2009-05-07 12:00 | sureshbabu | Assigned To | => rafaroda |
2009-05-07 12:00 | sureshbabu | Regression testing | => No |
2009-05-07 12:02 | sureshbabu | Tag Attached: 250MP1 | |
2009-05-07 16:07 | psarobe | Status | new => scheduled |
2009-05-07 16:07 | psarobe | Note Added: 0016140 | |
2009-05-07 16:07 | psarobe | fix_in_branch | => pi |
2009-05-07 16:10 | psarobe | Tag Attached: 250mp2 | |
2009-05-08 10:44 | rafaroda | Assigned To | rafaroda => AinhoaPagola |
2009-06-01 11:24 | rafaroda | Assigned To | AinhoaPagola => rafaroda |
2009-08-28 14:38 | rafaroda | Note Added: 0019266 | |
2009-08-28 14:38 | rafaroda | Assigned To | rafaroda => psarobe |
2009-08-28 14:38 | rafaroda | Status | scheduled => feedback |
2009-08-28 14:38 | rafaroda | fix_in_branch | pi => |
2009-09-29 23:51 | psarobe | Note Edited: 0016140 | |
2009-09-29 23:52 | psarobe | Note Added: 0020565 | |
2009-09-29 23:52 | psarobe | Status | feedback => scheduled |
2009-09-29 23:52 | psarobe | fix_in_branch | => pi |
2010-01-04 09:39 | psarobe | Assigned To | psarobe => rafaroda |
2010-01-04 09:39 | psarobe | Priority | normal => urgent |
2010-01-04 09:39 | psarobe | Target Version | => 2.50MP13 |
2010-01-04 09:39 | psarobe | fix_in_branch | pi => |
2010-02-11 11:20 | rafaroda | Assigned To | rafaroda => adrianromero |
2010-03-08 16:06 | jpabloae | Target Version | 2.50MP13 => 2.50MP14 |
2010-05-03 12:16 | sivaraman | Assigned To | adrianromero => sivaraman |
2010-05-03 12:21 | hgbot | Checkin | |
2010-05-03 12:21 | hgbot | Note Added: 0026853 | |
2010-05-03 12:21 | hgbot | Status | scheduled => resolved |
2010-05-03 12:21 | hgbot | Resolution | open => fixed |
2010-05-03 12:21 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/47ba45fd8ccd801a1c5eda46b8b37dd4397304f0 [^] |
2010-05-03 13:32 | sivaraman | Note Added: 0026858 | |
2010-05-14 12:45 | sureshbabu | Note Added: 0027243 | |
2010-05-14 12:45 | sureshbabu | Status | resolved => closed |
2010-05-15 00:00 | anonymous | sf_bug_id | 0 => 3001849 |
2010-05-18 21:43 | hudsonbot | Checkin | |
2010-05-18 21:43 | hudsonbot | Note Added: 0027473 | |
Notes |
|
(0016140)
|
psarobe
|
2009-05-07 16:07
(edited on: 2009-09-29 23:51) |
|
Rafa for your team,
Here we only must copy the attributes that are non-instanciable
|
|
|
|
Pablo,
Please explain what you mean by "instanciable" then re-assign me the issue.
Thanks |
|
|
|
Non-instanciable= Color, size, etc. You define this in the attribute window |
|
|
(0026853)
|
hgbot
|
2010-05-03 12:21
|
|
Repository: erp/devel/pi
Changeset: 47ba45fd8ccd801a1c5eda46b8b37dd4397304f0
Author: Sivaraman Rajagopal <sivaraman.rajagopal <at> openbravo.com>
Date: Mon May 03 15:48:43 2010 +0530
URL: http://code.openbravo.com/erp/devel/pi/rev/47ba45fd8ccd801a1c5eda46b8b37dd4397304f0 [^]
Fixes issue 8945: Line item attribute values are not copied in PO, when the user tries to copy the line items using copy from order option
---
M src/org/openbravo/erpCommon/ad_actionButton/CopyFromPOOrder.java
M src/org/openbravo/erpCommon/ad_actionButton/CopyFromPOOrder_data.xsql
---
|
|
|
|
Steps to test:
1. Log on to Openbravo
2. Change user role to Openbravo Admin
3. Go to Procurement Management || Transactions || Purchase Order || Header
4. Create new record with 'McGiver Supplies' as Business Partner
5. Go to Procurement Management || Transactions || Purchase Order || Header >> Lines
6. Create two lines with following details
Product: Hat
Attribute Set Value: Medium
Product: Grand beer
Attribute Set Value: L0_31-08-2010
7. Complete the purchase order by clicking 'Complete' button
8. Again create new purchase order
9. Create new record with 'McGiver Supplies' as Business Partner
10. Click 'Copy from order' button
11. Select the early created one and click 'Ok' button
12. Move to lines and verify if product and its attribute values are copied
Root cause & solution:
While copying the lines from order, Attribute instance ID was not included in the SQL statement that copy lines from one order to another. To fix this, we have included the attribute instance ID in the corresponding SQL statement. But, before assigning the attribute ID, we verify if the attribute set is instance enabled or not. If the attribute is instance enabled, we create a new instance of the attribute with the selected order's attribute values and the new instance attribute ID is used in copy lines process. If the attribute is instance disabled, we directly copy the attribute instance ID from one order to other.
Impact:
It has been verified that there is no other impact except resolving the issue, due to this change. |
|
|
|
|
|
|
|