Openbravo Issue Tracking System - POS2 |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0052035 | POS2 | POS | public | 2022-04-13 14:29 | 2023-04-11 16:56 |
|
Reporter | aferraz | |
Assigned To | javierRodriguez | |
Priority | normal | Severity | major | Reproducibility | have not tried |
Status | closed | Resolution | fixed | |
Platform | | OS | 5 | OS Version | |
Product Version | | |
Target Version | 23Q2 | Fixed in Version | 23Q2 | |
Merge Request Status | |
Review Assigned To | |
OBNetwork customer | |
Support ticket | |
Regression level | |
Regression date | |
Regression introduced in release | |
Regression introduced by commit | |
Triggers an Emergency Pack | No |
|
Summary | 0052035: JIRA 2740 - Not possible to cancel and replace a prepaid order |
Description | Not possible to cancel and replace a prepaid order |
Steps To Reproduce | In backoffice:
- Enable "Allow prepayments and partial payments" for "POS2SD VBS POS2 Terminal Type" touchpoint type.
- Change "Prepayment Percentage" to 50 for "Vall Blanca Store" organization.
In POS:
- Create a ticket for John Doo and Pickup in store delivery mode.
- Add one unit of Avalanche transceiver and change the price to 100.
- Click on Pay button and pay only the 50€ asked for prepayment.
- Load previous order and click on Cancel and Replace Order.
- Click on Pay button and check you get following error: "Cannot create subtotals, there are already payments." |
Proposed Solution | It should work in the same way it works in Enyo POS:
- Payments added to the original order should be moved to the replace order.
- A new prepayment amount should be calculated for the replace order.
- If new prepayment amount is equal or lower than paid amount, you should be able to complete the replace order without paying the remaining amount (although you can pay it if you want).
- If new prepayment amount is higher than paid amount, you would need to pay at least the full new prepayment amount.
- If replace order total amount is lower than paid amount, a refund should be done. |
Additional Information | |
Tags | No tags attached. |
Relationships | blocks | defect | 0049054 | | closed | javierRodriguez | JIRA 2740 - Not possible to cancel and replace a prepaid order |
|
Attached Files | |
|
Issue History |
Date Modified | Username | Field | Change |
2023-04-03 10:07 | guilleaer | Type | defect => backport |
2023-04-03 10:07 | guilleaer | Target Version | => 23Q2 |
2023-04-05 15:25 | hgbot | Note Added: 0148300 | |
2023-04-05 15:35 | hgbot | Note Added: 0148302 | |
2023-04-11 16:55 | hgbot | Note Added: 0148377 | |
2023-04-11 16:56 | hgbot | Note Added: 0148378 | |
2023-04-11 16:56 | hgbot | Resolution | open => fixed |
2023-04-11 16:56 | hgbot | Status | scheduled => closed |
2023-04-11 16:56 | hgbot | Fixed in Version | => 23Q2 |
2023-04-11 16:56 | hgbot | Note Added: 0148379 | |
2023-04-11 16:56 | hgbot | Note Added: 0148380 | |
Notes |
|
(0148300)
|
hgbot
|
2023-04-05 15:25
|
|
|
|
(0148302)
|
hgbot
|
2023-04-05 15:35
|
|
|
|
(0148377)
|
hgbot
|
2023-04-11 16:55
|
|
|
|
(0148378)
|
hgbot
|
2023-04-11 16:56
|
|
|
|
(0148379)
|
hgbot
|
2023-04-11 16:56
|
|
Directly closing issue as related merge request is already approved.
Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2 [^]
Changeset: 4fa6e56de99e8c699eb5611b80420571da877b6c
Author: Javier Rodríguez Regueiro <javier.rodriguez@openbravo.com>
Date: 11-04-2023 14:56:19
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/commit/4fa6e56de99e8c699eb5611b80420571da877b6c [^]
Fixed ISSUE-52035: [cancel-replace-prepayments] Create different flow to...
---
A web-jspack/org.openbravo.pos2/src/model/ticket/actions/__test__/splitReplaceTicketPaymentByAmount.test.js
A web-jspack/org.openbravo.pos2/src/model/ticket/actions/splitReplaceTicketPaymentByAmount.js
M src-db/database/sourcedata/AD_MESSAGE.xml
M web-jspack/org.openbravo.pos2/src/components/Payments/PaymentList/SubtotalFunctions.js
M web-jspack/org.openbravo.pos2/src/model/ticket/DivideLinesFillInAmount.js
M web-jspack/org.openbravo.pos2/src/model/ticket/TicketUtils.js
M web-jspack/org.openbravo.pos2/src/model/ticket/__test__/ReplaceTicket.test.js
M web-jspack/org.openbravo.pos2/src/model/ticket/__test__/SplitPaymentByAmount.test.js
M web-jspack/org.openbravo.pos2/src/model/ticket/__test__/TicketUtils.test.js
M web-jspack/org.openbravo.pos2/src/model/ticket/actions/SplitPaymentByAmount.js
M web-jspack/org.openbravo.pos2/src/model/ticket/actions/SplitPrepaymentByAmount.js
M web-jspack/org.openbravo.pos2/src/model/ticket/user-actions/ReplaceTicket.js
---
|
|
|
(0148380)
|
hgbot
|
2023-04-11 16:56
|
|
|