Openbravo Issue Tracking System - Retail Modules | ||||||||||||
View Issue Details | ||||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | |||||||
0043369 | Retail Modules | Web POS | public | 2020-02-28 11:32 | 2020-04-17 15:09 | |||||||
Reporter | gorkaion | |||||||||||
Assigned To | prakashmurugesan88 | |||||||||||
Priority | high | Severity | major | Reproducibility | always | |||||||
Status | closed | Resolution | fixed | |||||||||
Platform | OS | 5 | OS Version | |||||||||
Product Version | ||||||||||||
Target Version | Fixed in Version | RR20Q3 | ||||||||||
Merge Request Status | ||||||||||||
Review Assigned To | guilleaer | |||||||||||
OBNetwork customer | Gold | |||||||||||
Support ticket | 14694 | |||||||||||
Regression level | ||||||||||||
Regression date | ||||||||||||
Regression introduced in release | ||||||||||||
Regression introduced by commit | ||||||||||||
Triggers an Emergency Pack | No | |||||||||||
Summary | 0043369: When using instance attributes shipment might use an instance from a different product | |||||||||||
Description | On environment where the same attribute description can be generated for several products. Because they share the same attribute set or similar set with same attributes. When the shipment is generated and the attribute set instance is searched based on the received description it is not checking if the find attribute set instance id is for the order line product. | |||||||||||
Steps To Reproduce | 1. Create an instance attribute set with lot and expiration date. 2. Assign it to several products. 3. Create some receipts for those products using the same lot and expiration date. 4. Check in database that different m_attributesetintance records are created with the same description. 5. Create some sales orders in the POS for those products and selecting the same lot-expiration date. 6. Check in database that the sales orderlines are assgined to the same attribute set instance. | |||||||||||
Proposed Solution | Issue is in org.openbravo.retail.posterminal.utility.AttributesUtils.fetchAttributeSetValue() method. It executes 2 queries none of it filtering by product. It should filter by product and return the ids with available stock. To cover the case of just 1 instance available with that description but used in a different product. If there is no stock with that description the logic is different based on instance or NOT instance attributes. For instance attributes (1) it should create a new instance. For not instance attributes it should check if there exists already a instance without stock. In case of verified returns it should use always the same attribute set instance id of the original order/shipment. [1] Instance attribute sets are those with any of the Lot, Serial Number and Expiration Date flags enabled or with an attribute with the instance flag enabled. | |||||||||||
Additional Information | ||||||||||||
Tags | No tags attached. | |||||||||||
Relationships |
| |||||||||||
Attached Files | ![]() https://issues.openbravo.com/file_download.php?file_id=14245&type=bug ![]() https://issues.openbravo.com/file_download.php?file_id=14246&type=bug | |||||||||||
Issue History | ||||||||||||
Date Modified | Username | Field | Change | |||||||||
2020-02-28 11:32 | gorkaion | New Issue | ||||||||||
2020-02-28 11:32 | gorkaion | Assigned To | => Retail | |||||||||
2020-02-28 11:32 | gorkaion | OBNetwork customer | => Gold | |||||||||
2020-02-28 11:32 | gorkaion | Support ticket | => 14694 | |||||||||
2020-02-28 11:32 | gorkaion | Resolution time | => 1584658800 | |||||||||
2020-02-28 11:32 | gorkaion | Triggers an Emergency Pack | => No | |||||||||
2020-02-28 11:32 | gorkaion | Relationship added | related to 0043367 | |||||||||
2020-02-28 11:33 | gorkaion | Note Added: 0118199 | ||||||||||
2020-03-12 13:45 | rqueralta | Assigned To | Retail => rqueralta | |||||||||
2020-03-12 13:45 | rqueralta | Status | new => scheduled | |||||||||
2020-03-31 18:08 | rqueralta | File Added: 43369.diff | ||||||||||
2020-03-31 18:09 | rqueralta | File Added: 43369_test.diff | ||||||||||
2020-04-01 14:56 | prakashmurugesan88 | Assigned To | rqueralta => prakashmurugesan88 | |||||||||
2020-04-02 10:11 | guilleaer | Assigned To | prakashmurugesan88 => Retail | |||||||||
2020-04-02 10:41 | guilleaer | Assigned To | Retail => prakashmurugesan88 | |||||||||
2020-04-08 07:24 | hgbot | Checkin | ||||||||||
2020-04-08 07:24 | hgbot | Note Added: 0119076 | ||||||||||
2020-04-08 07:24 | hgbot | Status | scheduled => resolved | |||||||||
2020-04-08 07:24 | hgbot | Resolution | open => fixed | |||||||||
2020-04-08 07:24 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/c13b996165da73529189ba1dea4478a47efe2e51 [^] | |||||||||
2020-04-08 07:24 | hgbot | Checkin | ||||||||||
2020-04-08 07:24 | hgbot | Note Added: 0119077 | ||||||||||
2020-04-08 07:24 | hgbot | Fixed in SCM revision | http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/c13b996165da73529189ba1dea4478a47efe2e51 [^] => http://code.openbravo.com/tools/automation/pi-mobile/rev/626c02c9577d5ee50e8482f3cc6e8c539ec285ce [^] | |||||||||
2020-04-17 15:09 | guilleaer | Review Assigned To | => guilleaer | |||||||||
2020-04-17 15:09 | guilleaer | Status | resolved => closed | |||||||||
2020-04-17 15:09 | guilleaer | Fixed in Version | => RR20Q3 |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|