Openbravo Issue Tracking System - POS2
View Issue Details
0052141POS2POSpublic2023-04-17 17:182023-05-01 07:44
hcurbelo 
hcurbelo 
normalmajorhave not tried
closedfixed 
5
 
23Q3 
approved
No
No
0052141: Allow different cancelation configurations for each payment methods
The requirement of SMCP is to be able to define that some payment methods: can be canceled, some others cannot, and some others will request approval from the store manager to proceed with the cancellation.
1. If the Option “Allowed” is selected inside the Backoffice for a specific payment method: in Webpos, when the cashier clicks on the X to cancel this specific payment method. The behavior is the same as today. Means the payment method can be canceled.
2. If the option “Request approval” is selected inside the Backoffice for a specific payment method: in Webpos when the cashier clicks on the X to cancel this specific payment method. The system triggers an approval request pop up requesting approval from the store manager. If approval is successful, then the payment method is deleted. If approval is not successful, the cashier must click on “Cancel button” and go back to the initial window and the specific payment method is not canceled.
3. If the option “Not allowed” is selected inside the Backoffice for a specific payment method: in Webpos when the cashier tries to click on the X to cancel this specific payment method the X doesn’t appear anymore preventing the cashier from clicking on it .
No tags attached.
Issue History
2023-04-17 17:18hcurbeloNew Issue
2023-04-17 17:18hcurbeloAssigned To => hcurbelo
2023-04-17 17:18hcurbeloOBNetwork customer => No
2023-04-17 17:18hcurbeloTriggers an Emergency Pack => No
2023-04-21 05:26hgbotMerge Request Status => open
2023-04-21 05:26hgbotNote Added: 0148671
2023-04-27 17:24hgbotNote Added: 0149035
2023-05-01 07:43hgbotMerge Request Statusopen => approved
2023-05-01 07:44hgbotResolutionopen => fixed
2023-05-01 07:44hgbotStatusnew => closed
2023-05-01 07:44hgbotFixed in Version => 23Q3
2023-05-01 07:44hgbotNote Added: 0149092
2023-05-01 07:44hgbotNote Added: 0149093
2023-05-01 07:44hgbotNote Added: 0149094
2023-05-01 07:44hgbotNote Added: 0149095

Notes
(0148671)
hgbot   
2023-04-21 05:26   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/1710 [^]
(0149035)
hgbot   
2023-04-27 17:24   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2.sampledata/-/merge_requests/38 [^]
(0149092)
hgbot   
2023-05-01 07:44   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2 [^]
Changeset: a5f4720dad026f55cec6623d3d24db7c8acf8b9d
Author: Hector Curbelo Barrios <hector.curbelo@smfconsulting.es>
Date: 01-05-2023 05:44:44
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/commit/a5f4720dad026f55cec6623d3d24db7c8acf8b9d [^]

Fixed ISSUE-52141 Allow different cancelation configurations for each payment method

---
A web-jspack/org.openbravo.pos2/src/model/ticket/actions/cancelPayment.js
A web-jspack/org.openbravo.pos2/src/model/ticket/user-actions/CancelPayment.js
M src-db/database/model/modifiedTables/OBPOS_APP_PAYMENT_TYPE.xml
M src-db/database/sourcedata/AD_COLUMN.xml
M src-db/database/sourcedata/AD_ELEMENT.xml
M src-db/database/sourcedata/AD_FIELD.xml
M src-db/database/sourcedata/AD_REFERENCE.xml
M src-db/database/sourcedata/AD_REF_LIST.xml
M src-db/database/sourcedata/OBC2_USER_ACTION.xml
M web-jspack/org.openbravo.pos2/src/components/Payments/PaymentIntegration/__test__/processPaymentVoid.test.js
M web-jspack/org.openbravo.pos2/src/components/Payments/PaymentIntegration/processPaymentVoid.js
M web-jspack/org.openbravo.pos2/src/components/Payments/PaymentList/PaymentAction.jsx
M web-jspack/org.openbravo.pos2/src/components/Payments/PaymentList/PaymentActionEvents.js
M web-jspack/org.openbravo.pos2/src/components/Payments/PaymentPanel/__mock__/paymentsInitialization.js
M web-jspack/org.openbravo.pos2/src/model/ticket/TicketExtension.js
M web-jspack/org.openbravo.pos2/src/ob-init.js
---
(0149093)
hgbot   
2023-05-01 07:44   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/1710 [^]
(0149094)
hgbot   
2023-05-01 07:44   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2.sampledata/-/merge_requests/38 [^]
(0149095)
hgbot   
2023-05-01 07:44   
Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2.sampledata [^]
Changeset: 508b8df30b94fa9042c2a32dffd25234d59769fd
Author: HECTOR CURBELO BARRIOS <HECTOR.CURBELO@SMFCONSULTING.ES>
Date: 27-04-2023 10:23:17
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2.sampledata/-/commit/508b8df30b94fa9042c2a32dffd25234d59769fd [^]

Related to ISSUE-52141: Add permission to manual Vall Blanca role

---
M referencedata/sampledata/The_White_Valley_Group/OBC2_USER_ACTION_ACCESS.xml
---