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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0052036
TypeCategorySeverityReproducibilityDate SubmittedLast Update
backport[POS2] POSmajorhave not tried2022-04-13 14:292023-04-11 16:53
ReporteraferrazView Statuspublic 
Assigned TojavierRodriguez 
PrioritynormalResolutionfixedFixed in Version23Q1.2
StatusclosedFix in branchFixed in SCM revision
ProjectionnoneETAnoneTarget Version23Q1.2
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

0052036: JIRA 2740 - Not possible to cancel and replace a prepaid order

DescriptionNot possible to cancel and replace a prepaid order
Steps To ReproduceIn 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 SolutionIt 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.
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
blocks defect 0049054 closedjavierRodriguez JIRA 2740 - Not possible to cancel and replace a prepaid order 

-  Notes
(0148291)
hgbot (developer)
2023-04-05 13:11

Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/1673 [^]
(0148301)
hgbot (developer)
2023-04-05 15:31

Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/1126 [^]
(0148373)
hgbot (developer)
2023-04-11 16:53

Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/1126 [^]
(0148374)
hgbot (developer)
2023-04-11 16:53

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal [^]
Changeset: c25e0400e266d80e74ff45a37c37fa4785af98ca
Author: Javier Rodriguez Regueiro <javier.rodriguez@openbravo.com>
Date: 05-04-2023 15:31:59
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/commit/c25e0400e266d80e74ff45a37c37fa4785af98ca [^]

Related to ISSUE-52036: [cancel-replace-prepayments] Set id atribute in payments

---
M src/org/openbravo/retail/posterminal/PaidReceipts.java
---
(0148375)
hgbot (developer)
2023-04-11 16:53

Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/1673 [^]
(0148376)
hgbot (developer)
2023-04-11 16:53

Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2 [^]
Changeset: 0660809cac56f8d27ed6358bb296d5025f02cc7e
Author: Javier Rodríguez Regueiro <javier.rodriguez@openbravo.com>
Date: 11-04-2023 14:53:49
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/commit/0660809cac56f8d27ed6358bb296d5025f02cc7e [^]

Fixed ISSUE-52036: [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
---

- Issue History
Date Modified Username Field Change
2023-04-03 10:07 guilleaer Type defect => backport
2023-04-03 10:07 guilleaer Target Version => 23Q1.2
2023-04-05 13:11 hgbot Note Added: 0148291
2023-04-05 15:31 hgbot Note Added: 0148301
2023-04-11 16:53 hgbot Note Added: 0148373
2023-04-11 16:53 hgbot Note Added: 0148374
2023-04-11 16:53 hgbot Note Added: 0148375
2023-04-11 16:53 hgbot Resolution open => fixed
2023-04-11 16:53 hgbot Status scheduled => closed
2023-04-11 16:53 hgbot Fixed in Version => 23Q1.2
2023-04-11 16:53 hgbot Note Added: 0148376


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker