Openbravo Issue Tracking System - POS2
View Issue Details
0049315POS2Restaurantspublic2022-05-12 19:472022-05-25 15:13
mtaal 
mtaal 
normalminorhave not tried
closedfixed 
5
 
 
No
0049315: Menu items: coupon on line level of a menu item prints also menuitems of the line
See attached screenshot. The coupon menu item is printed on the buy notification template but the menuitems are repeated on the coupon as well.
Configure two menu products of a menu to be coupon on line level. Add them to the menu, pay, check the printed coupon
When building the set of lines/menuItem to be printed on a coupon the line.menuItems property is copied into the object created for the menuItem. This code [1], prevent this.

[1]
https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2.restaurant/-/blob/master/web-jspack/org.openbravo.pos2.restaurant/src/core/pickupPoint/RestaurantPickupHandler.js#L66 [^]
No tags attached.
png Screenshot from 2022-05-12 19-23-29.png (58,568) 2022-05-12 19:47
https://issues.openbravo.com/file_download.php?file_id=17019&type=bug
png
Issue History
2022-05-12 19:47mtaalNew Issue
2022-05-12 19:47mtaalAssigned To => mtaal
2022-05-12 19:47mtaalFile Added: Screenshot from 2022-05-12 19-23-29.png
2022-05-12 19:47mtaalTriggers an Emergency Pack => No
2022-05-12 20:24hgbotNote Added: 0137239
2022-05-12 20:36mtaalStatusnew => scheduled
2022-05-12 20:36mtaalStatusscheduled => resolved
2022-05-12 20:36mtaalResolutionopen => fixed
2022-05-25 15:13hgbotStatusresolved => closed
2022-05-25 15:13hgbotNote Added: 0137726
2022-05-25 15:13hgbotNote Added: 0137727

Notes
(0137239)
hgbot   
2022-05-12 20:24   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2.restaurant/-/merge_requests/142 [^]
(0137726)
hgbot   
2022-05-25 15:13   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2.restaurant [^]
Changeset: 1587536dde2b14792bb88effba6fccc70d5d4c8b
Author: Martin Taal <martin.taal@openbravo.com>
Date: 25-05-2022 13:12:46
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2.restaurant/-/commit/1587536dde2b14792bb88effba6fccc70d5d4c8b [^]

Fixes ISSUE-49315: make sure that menuItem lines do not contain menuItems

---
M web-jspack/org.openbravo.pos2.restaurant/src/core/pickupPoint/RestaurantPickupHandler.js
---
(0137727)
hgbot   
2022-05-25 15:13   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2.restaurant/-/merge_requests/142 [^]