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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0050471
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[POS2] POSmajorhave not tried2022-10-10 14:512022-10-24 11:55
ReportercbernerView Statuspublic 
Assigned Tocberner 
PrioritynormalResolutionfixedFixed in Version23Q1
StatusclosedFix in branchFixed in SCM revision
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned To
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0050471: Service products marked as grouped are incorrectly separated into new lines when added to the ticket

DescriptionService products should keep their grouping rules when added to the ticket, except if they have modifiers or beeper configuration, that's the only case when we need to force them to be non-grouped, when not in this case it should follow normal ruling and be grouped if configured as so.

To allow this, ProductConfiguration should be extended to accept some info regarding if the checked rule is or not a valid one to force non-grouped lines on applicable products.
Steps To Reproduce1. Open WebPOS and login
2. Search product Basecamp Lamp, try to add several of them to the ticket

Check that each one is on one line. They should be together, as they are marked as a grouped product.
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
(0141917)
hgbot (developer)
2022-10-10 15:00

Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/1266 [^]
(0142451)
hgbot (developer)
2022-10-24 11:55

Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/1266 [^]
(0142452)
hgbot (developer)
2022-10-24 11:55

Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2 [^]
Changeset: f292ded45dae4fb0be78093784f7d99ea3e52065
Author: Cristian Berner <cristian.berner@openbravo.com>
Date: 24-10-2022 09:54:59
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/commit/f292ded45dae4fb0be78093784f7d99ea3e52065 [^]

Fixes ISSUE-50471: Service products marked as grouped are incorrectly separated into new lines

ProductConfiguration rules have been extended by adding a new options key. Under this key, it is possible to add an object with different properties. forceNewLine is one of this properties, when set to false(by default true) it will not separate each new order-line into its own line if not configured as so.

As part of this fix, all hooks from AddProduct have been extracted from the AddProduct.js file and moved to AddProductHooks.js file, with the goal to test them in AddProductHooks.test.js.

---
A web-jspack/org.openbravo.pos2/src/model/ticket/user-actions/AddProductHooks.js
A web-jspack/org.openbravo.pos2/src/model/ticket/user-actions/__test__/AddProductHooks.test.js
M web-jspack/org.openbravo.pos2/src/configurations/product-configuration/ProductConfiguration.js
M web-jspack/org.openbravo.pos2/src/configurations/product-configuration/ServiceConfiguration.js
M web-jspack/org.openbravo.pos2/src/model/ticket/user-actions/AddProduct.js
---

- Issue History
Date Modified Username Field Change
2022-10-10 14:51 cberner New Issue
2022-10-10 14:51 cberner Assigned To => cberner
2022-10-10 14:51 cberner Triggers an Emergency Pack => No
2022-10-10 15:00 hgbot Note Added: 0141917
2022-10-24 11:55 hgbot Resolution open => fixed
2022-10-24 11:55 hgbot Status new => closed
2022-10-24 11:55 hgbot Note Added: 0142451
2022-10-24 11:55 hgbot Fixed in Version => 23Q1
2022-10-24 11:55 hgbot Note Added: 0142452


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker