Openbravo Issue Tracking System - POS2
View Issue Details
0049385POS2Restaurantspublic2022-05-24 14:352022-06-16 10:18
Felixaka 
AugustoMauch 
normalminoralways
closedfixed 
5
 
 
No
0049385: JIRA - 3022 Regression : "Missinfg configuration" On the virtual ticket is shown
When we chose all configutation for a product, there is the message “Missing configuratuon” that it is shown

Issue is reproducible in https://agapes-fs-u18-test.cloud.openbravo.com/openbravo/web/pos/ [^] when adding to the ticket the Entrecote VBF product, in the Restaurant -> Grillade category

There seems to be two issues here, probably related:
1- When a first modifier is set, the modifier is added to the product. If the second modifier has a default value and "Next" is clicked without selecting other option, the second modifier is not set (apparently the state action is invoked but with the info of the first modifier). See attached videos SecondModifierDefault and SecondModifierNonDefault
2- Even if the second modifier is properly set, still a #Missing configuration message is displayed (see MissingConfiguration video)
-Go on the POS

- Chose an article with some modifier in the POS (Ex : Entrecote vbf)

- select the modifier of the article

- Go on paid

- See that there is the messsage "Missing configuration" in the virtual ticket (See picture)

No tags attached.
related to defect 0049585 new Retail Delivery configuration should be added to the product.configuration instead of on the ticketline 
gif ProductWithModifiers.gif (918,638) 2022-05-26 18:10
https://issues.openbravo.com/file_download.php?file_id=17068&type=bug
png 2022-05-27_09h09_22.png (47,144) 2022-05-27 09:10
https://issues.openbravo.com/file_download.php?file_id=17069&type=bug
png

gif SecondModifierDefault.gif (330,685) 2022-05-28 11:13
https://issues.openbravo.com/file_download.php?file_id=17077&type=bug
gif SecondModifierNonDefault.gif (359,463) 2022-05-28 11:13
https://issues.openbravo.com/file_download.php?file_id=17078&type=bug
gif MissingConfiguration.gif (449,720) 2022-05-28 11:13
https://issues.openbravo.com/file_download.php?file_id=17079&type=bug
png 2022-06-10_17h33_11.png (110,723) 2022-06-10 17:38
https://issues.openbravo.com/file_download.php?file_id=17148&type=bug
png
Issue History
2022-05-24 14:35FelixakaNew Issue
2022-05-24 14:35FelixakaAssigned To => Retail
2022-05-24 14:35FelixakaTriggers an Emergency Pack => No
2022-05-26 18:09AugustoMauchNote Added: 0137786
2022-05-26 18:09AugustoMauchStatusnew => feedback
2022-05-26 18:10AugustoMauchAssigned ToRetail => Felixaka
2022-05-26 18:10AugustoMauchFile Added: ProductWithModifiers.gif
2022-05-27 09:08FelixakaSummaryJIRA - 3022 Regression : "Missinf configuration" On the virtual ticket is shown => JIRA - 3022 Regression : "Missinfg configuration" On the virtual ticket is shown
2022-05-27 09:10FelixakaFile Added: 2022-05-27_09h09_22.png
2022-05-27 09:10FelixakaSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=24169#r24169
2022-05-27 09:12FelixakaNote Added: 0137806
2022-05-27 09:12FelixakaAssigned ToFelixaka => AugustoMauch
2022-05-28 10:32AugustoMauchSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=24184#r24184
2022-05-28 10:32AugustoMauchStatusfeedback => scheduled
2022-05-28 11:11AugustoMauchDescription Updatedbug_revision_view_page.php?rev_id=24186#r24186
2022-05-28 11:11AugustoMauchSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=24187#r24187
2022-05-28 11:13AugustoMauchFile Added: SecondModifierDefault.gif
2022-05-28 11:13AugustoMauchFile Added: SecondModifierNonDefault.gif
2022-05-28 11:13AugustoMauchFile Added: MissingConfiguration.gif
2022-05-30 09:12FelixakaSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=24188#r24188
2022-06-02 16:56AugustoMauchAssigned ToAugustoMauch => ablasco
2022-06-04 10:41hgbotNote Added: 0138035
2022-06-09 12:59hgbotResolutionopen => fixed
2022-06-09 12:59hgbotStatusscheduled => closed
2022-06-09 12:59hgbotNote Added: 0138210
2022-06-09 12:59hgbotNote Added: 0138211
2022-06-10 17:38FelixakaNote Added: 0138289
2022-06-10 17:38FelixakaFile Added: 2022-06-10_17h33_11.png
2022-06-10 17:39FelixakaNote Added: 0138290
2022-06-10 17:39FelixakaStatusclosed => new
2022-06-10 17:39FelixakaResolutionfixed => open
2022-06-13 13:15guilleaerNote Deleted: 0138290
2022-06-15 13:55hgbotNote Added: 0138374
2022-06-15 13:59AugustoMauchAssigned Toablasco => AugustoMauch
2022-06-15 19:43AugustoMauchStatusnew => scheduled
2022-06-16 10:18hgbotResolutionopen => fixed
2022-06-16 10:18hgbotStatusscheduled => closed
2022-06-16 10:18hgbotNote Added: 0138395
2022-06-16 10:18hgbotNote Added: 0138396
2022-06-16 14:04cbernerRelationship addedrelated to 0049585

Notes
(0137786)
AugustoMauch   
2022-05-26 18:09   
Felix, I just tested this issue in livebuilds and it works properly, check attached gif.

Did you miss any steps to reproduce?
(0137806)
Felixaka   
2022-05-27 09:12   
Hello Augusto,

Here we need to chose a product with a modifier (exemple : Entrecote) finish his configuration and see that there is the message (Missing configuration) as in the picture
(0138035)
hgbot   
2022-06-04 10:41   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/985 [^]
(0138210)
hgbot   
2022-06-09 12:59   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2 [^]
Changeset: 26e387eeb24add634162d6b5f9fcd2bbc1466ff7
Author: Augusto Mauch <augusto.mauch@openbravo.com>
Date: 09-06-2022 10:59:29
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/commit/26e387eeb24add634162d6b5f9fcd2bbc1466ff7 [^]

Fixes ISSUE-49385: Unneeded extra configuration message shown when using pager configuration

The problem is that the pager configuration is not modeled using Product Modifiers but it is reusing part of the
infrastructure. As a result, a "# Missing configuration" message is displayed. Because reimplementing the pager
configuration is out of the scope of this issue, we solve it by not rendering the missing configuration message
if the product does not include configuration information

---
M web-jspack/org.openbravo.pos2/src/components/Ticket/TicketLines/ProductConfiguration.jsx
---
(0138211)
hgbot   
2022-06-09 12:59   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/985 [^]
(0138289)
Felixaka   
2022-06-10 17:38   
Hello,

The probleme is still present for in FS test

For exemple if i choose a product with a timer / pager we still have the message "Missing configuration"

See picture
(0138374)
hgbot   
2022-06-15 13:55   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/1009 [^]
(0138395)
hgbot   
2022-06-16 10:18   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2 [^]
Changeset: 89cb1ba70fc997013daa63e5433317f854ca5028
Author: Augusto Mauch <augusto.mauch@openbravo.com>
Date: 16-06-2022 08:18:22
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/commit/89cb1ba70fc997013daa63e5433317f854ca5028 [^]

Fixes ISSUE-49385: Unneeded extra configuration message shown when using pager configuration

The problem was that there were some flows (i.e. pager) that use the ProductConfiguration component but that
do not include the configuration values on the product.configuration object. As a consequence, the component
was not being rerendered when those values were set, and the "# Missing Configuration" message was still displayed
in the line even after setting al mandatory values.

To fix it, the component now keeps track of a list of extra properties outside de configuration object that it must
listen to, so that when any of those change the component will be rendered again and the missing configuration object
will be removed

---
M web-jspack/org.openbravo.pos2/src/components/Ticket/TicketLines/ProductConfiguration.jsx
---
(0138396)
hgbot   
2022-06-16 10:18   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/1009 [^]