5.1.353 - SIM Set Attribute Qty Increment Decrement

5.1.353 - SIM Set Attribute Qty Increment Decrement

Version: 5.1
Patch: 353
Title: SIM Set Attribute Qty Increment Decrement
Application Category: Other, Order Entry
Patch Type: Feature



Description:

Modified Set Attributes action in SIM to make relative adjustments to the quantity of an item. Items can be added/subtracted by appending a + or - character before the number in the action settings. 

[Technical]
Changes to "Set Offer Attributes" action when we have Qty value with +/- sign in quantity field
  1. If contains a number by itself, set it to the number
  2. If contains + , increment. If the item is not currently selected, select it.
  3. If contains - and subtracting the numerical amount results in a value > 0.... decrement the qty
  4. If contains - and subtracting the numerical amount results in a value <= 0, set the qty to zero and deselect the item.
  5. If there is parsing error... the value in the SIM action field does not contain a plain number, or a number that has a + or - indicator... do nothing. We don't have validation in the editor, but we don't want incorrect values to cause JS errors on the page.


Articles: