Openbravo Issue Tracking System - POS2
View Issue Details
0049315POS2Restaurantspublic2022-05-12 19:472022-05-12 20:36
mtaal 
mtaal 
normalminorhave not tried
resolvedfixed 
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

Notes
(0137239)
hgbot   
2022-05-12 20:24   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2.restaurant/-/merge_requests/142 [^]