Openbravo Issue Tracking System - Retail Modules
View Issue Details
0037415Retail ModulesWeb POSpublic2017-11-16 11:412017-11-30 16:20
ngarcia 
guilleaer 
urgentmajoralways
closedfixed 
5
 
RR17Q3.2RR17Q3.2 
marvintm
No
0037415: [Support For Attributes]: Attribute set instance without stock selected when there is stock with other instance and same value
[Support For Attributes]: Attribute set instance without stock selected when there is stock with other instance and same value

When an attribute set is configured as Lot, Ser No. or Expiration Date or it includes an attribute configured as instance attribute, there could be more than one attribute set instance for the same value (lot number, serial number...)
In the backend:
   Create an Attribute Set
   Set it as Serial No. and Require At Least One Value

   Create a new product, set that attribute set and a price in Vall Blanca Store's price list
   Add it to the Vall Blanca Store's assortment

   Remove 'White Valley Spain Distribution Center' as on hand warehouse for Vall Blanca Store

   Create a physical inventory
   Add the previously created product
   Set a value in Attribute Set Value field
   Add 1 as Quantity count
   Process it

   Create a physical inventory
   Add the previously created product by selecting the line without attribute set value in the product selector
   Set the same value in Attribute Set Value field
   Add 1 as Quantity count
   Process it

   At this moment we have two attribute set instances with same value

   Create a Physical Inventory and leave the stock of the product to 0

   Create a physical inventory
   Add the previously created product
   Set the same value in Attribute Set Value field
   Add 1 as Quantity count
   Process it

   At this moment we have three attribute set instances with same value but stock with only one of them

   Set the Web POS Enable support for product attributes to Y

In the POS:
   Create a new ticket and add the previously created product
   Enter the value in the pop-up
   Pay the ticket

In the backend:
   Launch the Stock Report and check the stocked unit is still there and a negative line has been created
No tags attached.
blocks defect 0037308 closed guilleaer [Support For Attributes]: Attribute set instance without stock selected when there is stock with other instance and same value 
diff diffIssue37308_q32.diff (7,811) 2017-11-29 12:49
https://issues.openbravo.com/file_download.php?file_id=11342&type=bug
Issue History
2017-11-29 08:26guilleaerTypedefect => backport
2017-11-29 08:26guilleaerTarget Version => RR17Q3.2
2017-11-29 12:40hgbotCheckin
2017-11-29 12:40hgbotNote Added: 0100812
2017-11-29 12:40hgbotStatusscheduled => resolved
2017-11-29 12:40hgbotResolutionopen => fixed
2017-11-29 12:40hgbotFixed in SCM revision => http://code.openbravo.com/retail/backports/3.0RR17Q3.2/org.openbravo.retail.posterminal/rev/aac92384d7b6f95959647a758ef2fc1219d7ef9a [^]
2017-11-29 12:49guilleaerFile Added: diffIssue37308_q32.diff
2017-11-30 16:20marvintmReview Assigned To => marvintm
2017-11-30 16:20marvintmStatusresolved => closed
2017-11-30 16:20marvintmFixed in Version => RR17Q3.2

Notes
(0100812)
hgbot   
2017-11-29 12:40   
Repository: retail/backports/3.0RR17Q3.2/org.openbravo.retail.posterminal
Changeset: aac92384d7b6f95959647a758ef2fc1219d7ef9a
Author: Guillermo Alvarez de Eulate <guillermo.alvarez <at> openbravo.com>
Date: Wed Nov 29 11:22:54 2017 +0100
URL: http://code.openbravo.com/retail/backports/3.0RR17Q3.2/org.openbravo.retail.posterminal/rev/aac92384d7b6f95959647a758ef2fc1219d7ef9a [^]

Fixed issue 37415 backport of 37308: Using attributes, if several att set instances are found pick one with stock.

- If several attSetIntances are found, search in m_storage_detail for those which have stock inside the store

---
M src/org/openbravo/retail/posterminal/OrderLoader.java
M src/org/openbravo/retail/posterminal/utility/AttributesUtils.java
---