Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0043369 | ||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
defect | [Retail Modules] Web POS | major | always | 2020-02-28 11:32 | 2020-04-17 15:09 | |||
Reporter | gorkaion | View Status | public | |||||
Assigned To | prakashmurugesan88 | |||||||
Priority | high | Resolution | fixed | Fixed in Version | RR20Q3 | |||
Status | closed | Fix in branch | Fixed in SCM revision | 626c02c9577d | ||||
Projection | none | ETA | none | Target Version | ||||
OS | Any | Database | Any | Java version | ||||
OS Version | Database version | Ant version | ||||||
Product Version | SCM revision | |||||||
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. | |||||||
Tags | No tags attached. | |||||||
Attached Files | ![]() ![]() | |||||||
![]() |
||||||||
|
![]() |
|
(0118199) gorkaion (viewer) 2020-02-28 11:33 |
Note that the fix of this issue should take into account the issue reported in 0043367 |
(0119076) hgbot (developer) 2020-04-08 07:24 |
Repository: erp/pmods/org.openbravo.retail.posterminal Changeset: c13b996165da73529189ba1dea4478a47efe2e51 Author: Rafael Queralta <rafaelcuba81 <at> gmail.com> Date: Wed Apr 08 10:51:56 2020 +0530 URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/c13b996165da73529189ba1dea4478a47efe2e51 [^] Fixed BUG-43369: When using instance attributes shipment might use an instance from a different product - Remove query in Attributes Set Instance and iltered by product in Storage Detail query, if we have a result, it is returned, but if it is null a new Attribute Set Instance is creted --- M src/org/openbravo/retail/posterminal/utility/AttributesUtils.java --- |
(0119077) hgbot (developer) 2020-04-08 07:24 |
Repository: tools/automation/pi-mobile Changeset: 626c02c9577d5ee50e8482f3cc6e8c539ec285ce Author: Rafael Queralta <rafaelcuba81 <at> gmail.com> Date: Wed Apr 08 10:52:10 2020 +0530 URL: http://code.openbravo.com/tools/automation/pi-mobile/rev/626c02c9577d5ee50e8482f3cc6e8c539ec285ce [^] Fixed BUG-43369: When using instance attributes shipment might use an instance from a different product - Changed I37298_VerifyAttSetInInvoice, ATT010_AttributesLayaways, ATT090_AttributesInvoice --- M src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/attributes/ATT010_AttributesLayaways.java M src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/attributes/ATT090_AttributesInvoice.java M src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/receipts/I37298_VerifyAttSetInInvoice.java --- |
![]() |
|||
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 |
Copyright © 2000 - 2009 MantisBT Group |