Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0043369
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Retail Modules] Web POSmajoralways2020-02-28 11:322020-04-17 15:09
ReportergorkaionView Statuspublic 
Assigned Toprakashmurugesan88 
PriorityhighResolutionfixedFixed in VersionRR20Q3
StatusclosedFix in branchFixed in SCM revision626c02c9577d
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned Toguilleaer
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0043369: When using instance attributes shipment might use an instance from a different product

DescriptionOn 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 Reproduce1. 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 SolutionIssue 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.
TagsNo tags attached.
Attached Filesdiff file icon 43369.diff [^] (5,628 bytes) 2020-03-31 18:08 [Show Content]
diff file icon 43369_test.diff [^] (6,664 bytes) 2020-03-31 18:09 [Show Content]

- Relationships Relation Graph ] Dependency Graph ]
related to defect 0043367 closedrqueralta Performance issues when using attributes and having many instances with the same description 

-  Notes
(0118199)
gorkaion (developer)
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
---

- 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 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
Powered by Mantis Bugtracker