Openbravo Issue Tracking System - POS2
View Issue Details
0050233POS2POSpublic2022-09-13 11:532022-09-14 19:37
meriem_azaf 
meriem_azaf 
normalmajorhave not tried
closedfixed 
5
 
22Q4 
No
0050233: UX/UI - Display available delivery method only
In backoffice:
In “Organization / schema”, you can define which delivery method are available for a schema

In POS2:
All the delivery method are displayed, but an error message is displayed if the delivery method is not available for the schema
In backoffice:
1- go to organization screen and choose the organization that you are working with it for example "FLUNCH LENS".
2- go to the subtab schema and choose for example "Restaurant".
3- change the value of Available Delivery Modes to Only those defined.
4- before doing the 3 go to the subtab "Delivery Mode" and define a delivery mode.

In POS2:
1- log in.
2- go to the 3 point next to icon client and click you will have a popup.
3- in the checkbox "Delivery Modes" you will have all the delivery these that you have already define and another ones.
4- try to change the delivery mode an error message is displayed that the delivery method is not available for the schema.
When “Only those defined”, display only the delivery method listed in tab “Delivery method”

When “All excluding defined”, display all except the delivery method listed in tab “Delivery method”
No tags attached.
png 76a2dd0a-bf2f-44de-9283-16b6a4b3d31c.png (26,099) 2022-09-13 11:55
https://issues.openbravo.com/file_download.php?file_id=17509&type=bug
png

png 637baa15-b669-48e8-a149-6d7ecb280be2.png (35,414) 2022-09-13 11:55
https://issues.openbravo.com/file_download.php?file_id=17510&type=bug
png
Issue History
2022-09-13 11:53meriem_azafNew Issue
2022-09-13 11:53meriem_azafAssigned To => meriem_azaf
2022-09-13 11:53meriem_azafFile Added: 637baa15-b669-48e8-a149-6d7ecb280be2.png
2022-09-13 11:53meriem_azafTriggers an Emergency Pack => No
2022-09-13 11:54meriem_azafFile Deleted: 637baa15-b669-48e8-a149-6d7ecb280be2.png
2022-09-13 11:55meriem_azafFile Added: 76a2dd0a-bf2f-44de-9283-16b6a4b3d31c.png
2022-09-13 11:55meriem_azafFile Added: 637baa15-b669-48e8-a149-6d7ecb280be2.png
2022-09-13 12:04meriem_azafSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=24761#r24761
2022-09-13 12:04meriem_azafStatusnew => scheduled
2022-09-13 13:41hgbotNote Added: 0141052
2022-09-14 19:37hgbotResolutionopen => fixed
2022-09-14 19:37hgbotStatusscheduled => closed
2022-09-14 19:37hgbotFixed in Version => 22Q4
2022-09-14 19:37hgbotNote Added: 0141126
2022-09-14 19:37hgbotNote Added: 0141127

Notes
(0141052)
hgbot   
2022-09-13 13:41   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/1200 [^]
(0141126)
hgbot   
2022-09-14 19:37   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2 [^]
Changeset: 1b8c696f7a11fde2507dc46336daf43102836eb1
Author: Meriem Azaf <meriem.azaf@openbravo.com>
Date: 14-09-2022 18:32:15
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/commit/1b8c696f7a11fde2507dc46336daf43102836eb1 [^]

Fixes ISSUE-50233: UX/UI - Display available delivery method only

In backoffice:
In “Organization / schema”, you can define which delivery method are available for a schema

In POS2:
All the delivery method are displayed, but an error message is displayed if the delivery method is not available for the schema.

The problem that in the delivery modes checkbox we have all the delivey modes even those that they are not defined for the current organization.

So we add a condition related to the property available delivery modes:

- When we have available delivery modes equal to “Only those defined”, we display only the delivery method listed in tab “Delivery method”.

- When wa have available delivery modes equal to “All excluding defined”, we display all except the delivery method listed in tab “Delivery method”.

---
M web-jspack/org.openbravo.pos2/src/components/Ticket/TicketPropertiesPopover/TicketPropertiesPopoverDeliveryButton.jsx
---
(0141127)
hgbot   
2022-09-14 19:37   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/1200 [^]