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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0058244
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Retail Modules] Discounts and Promotionsminoralways2025-03-14 09:542025-03-31 09:31
ReportereliezerSotomayorView Statuspublic 
Assigned ToBimla_vm 
PrioritynormalResolutionduplicateFixed in Version
StatusclosedFix in branchFixed in SCM revision
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Merge Request Status
Review Assigned To
OBNetwork customerNo
Support ticket
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0058244: qtyOffer is set to 0 when the limit is reached in a Pack discount with multiple instances

DescriptionWhen reaching the limit of a Pack discount with multiple instances configured, the discount engine does not calculate the qtyOffer of each line correctly.

Before reaching the limit, it calculates correctly. However, once the limit is reached, it sets the qtyOffer to 0.
Steps To ReproducePRECONDITION (BACKOFFICE):
 - Go to the Discount & Promotions window
 - Open the Test Coupon discount
 - Set the Discount/Promotion Type to 'Pack'
 - Set the Currency to 'EUR' and the Discount/Promotion Price to 10
 - Set the Limit Multiple Instances per Order field to true
 - Set the Limit of Instances per Order field to '2'
 - Set the Included Products field to 'Only those defined'
 - Go to the Products subtab below
 - Add the Avalanche Transceiver product with a quantity of 1
 - Add the Headlamp Ultralight product with a quantity of 2


TEST IN POS:
 - Use a Standard Terminal (VBS-2).
 - Add the Avalanche Transceiver product 1 times
 - Add the Headlamp Ultralight product 2 times
 - Check the console
   * Open the console (Press F12)
   * Print the lines (OB.App.State.getState().Ticket.lines)
   * In each line object, open its promotions and check the 'qtyOffer' value
     ( Can use this line: OB.App.State.getState().Ticket.lines.forEach(l=>console.log(l.promotions)) )
   * The first line has a qtyOffer of 1, and the second has a qtyOffer of 2
 - Add again the Avalanche Transceiver product 1 times (Total: 2 x Avalanche Transceiver)
 - Add again the Headlamp Ultralight product 2 times (Total: 4 x Avalanche Transceiver)
 - Note that we reach the limit configured in the backoffice: 'Limit of Instances per Order'
 - Check the console
   * Open the console
   * Print the lines
   * In each line object, open its promotions and check the 'qtyOffer' value
   * The first line has a qtyOffer of 0, and the second has a qtyOffer of 0

TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
(0177710)
hgbot (developer)
2025-03-31 09:31

Issue exported to Jira: https://openbravo.atlassian.net/browse/RM-24461 [^]

- Issue History
Date Modified Username Field Change
2025-03-14 09:54 eliezerSotomayor New Issue
2025-03-14 09:54 eliezerSotomayor Assigned To => Retail
2025-03-14 09:54 eliezerSotomayor OBNetwork customer => No
2025-03-14 09:54 eliezerSotomayor Triggers an Emergency Pack => No
2025-03-17 08:51 guilleaer Assigned To Retail => guilleaer
2025-03-17 08:51 guilleaer Status new => acknowledged
2025-03-25 13:06 Bimla_vm Assigned To guilleaer => Bimla_vm
2025-03-25 13:06 Bimla_vm Status acknowledged => scheduled
2025-03-31 09:31 hgbot Note Added: 0177710
2025-03-31 09:31 hgbot Status scheduled => closed
2025-03-31 09:31 hgbot Resolution open => duplicate


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker