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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0047126
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[POS2] POSmajoralways2021-06-14 17:312021-06-23 09:47
ReporterjmelinView Statuspublic 
Assigned Toprakashmurugesan88 
PriorityhighResolutioninvalidFixed in Version
StatusclosedFix in branchFixed in SCM revision
ProjectionnoneETAnoneTarget Version
OSLinux 64 bitDatabasePostgreSQLJava version7.x
OS VersionOpenbravo Appliance 14.04Database version9.3.xAnt version1.9.x
Product VersionSCM revision 
Review Assigned Toguilleaer
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0047126: JIRA 2086 - Error when trying to remove a component from a menu

DescriptionWhen creating an order, if we try to remove a component from a menu, then an error is triggerer:
* Cannot destructure property 'productId' of 'o[a.id][0]' as it is undefined.

Steps To ReproduceThe error was not reproductible on tap

1. Connect to POS
2. Create a sales order and add a menu with its component
3. Select the menu and one of the component
4. Click on the component name in the keymap to remove it
=> Error "Cannot destructure property 'productId' of 'o[a.id][0]' as it is undefined" is triggered
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
(0129733)
guilleaer (manager)
2021-06-23 09:36

Caused by custom code
(0129734)
prakashmurugesan88 (developer)
2021-06-23 09:47

Error occurred in following line,
https://gitlab.com/obcustomers/AGAP/com.openbravo.flunch.reports/-/blob/devel/web-jspack/com.openbravo.flunch.reports/src/actions/Product.js#L27 [^]

Because there is no product present under the selectedCategory in selectedProductsByCategory array.

This is because product added to the category are already removed in ‘updateMenu prehook’, before calling this ‘updateMenu action preparation’,
https://gitlab.com/openbravo/devel/pmods/org.openbravo.pos2.restaurant/-/blob/master/web-jspack/org.openbravo.pos2.restaurant/src/model/user-interface/user-actions/AddProductToMenu.js#L31 [^]

https://gitlab.com/openbravo/devel/pmods/org.openbravo.pos2.restaurant/-/blob/master/web-jspack/org.openbravo.pos2.restaurant/src/model/user-interface/user-actions/AddProductToMenu.js#L83 [^]

I think updateMenu action preparation’ should be moved to ‘updateMenu prehook’
https://gitlab.com/obcustomers/AGAP/com.openbravo.flunch.reports/-/blob/devel/web-jspack/com.openbravo.flunch.reports/src/actions/Product.js#L23 [^]

- Issue History
Date Modified Username Field Change
2021-06-14 17:31 jmelin New Issue
2021-06-14 17:31 jmelin Assigned To => Retail
2021-06-14 17:31 jmelin Triggers an Emergency Pack => No
2021-06-15 09:32 dmiguelez Resolution time => 1624917600
2021-06-15 09:33 dmiguelez Status new => scheduled
2021-06-15 09:33 dmiguelez Status scheduled => acknowledged
2021-06-22 15:09 prakashmurugesan88 Assigned To Retail => prakashmurugesan88
2021-06-22 15:09 prakashmurugesan88 Status acknowledged => scheduled
2021-06-23 09:36 guilleaer Review Assigned To => guilleaer
2021-06-23 09:36 guilleaer Note Added: 0129733
2021-06-23 09:36 guilleaer Status scheduled => closed
2021-06-23 09:36 guilleaer Resolution open => invalid
2021-06-23 09:47 prakashmurugesan88 Note Added: 0129734


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker