Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0045545 | ||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
defect | [Retail Modules] Web POS | major | always | 2020-12-09 12:06 | 2020-12-16 07:35 | |||
Reporter | aaroncalero | View Status | public | |||||
Assigned To | markmm82 | |||||||
Priority | high | Resolution | fixed | Fixed in Version | RR21Q1 | |||
Status | closed | Fix in branch | Fixed in SCM revision | |||||
Projection | none | ETA | none | Target Version | ||||
OS | Any | Database | Any | Java version | ||||
OS Version | Database version | Ant version | ||||||
Product Version | SCM revision | |||||||
Merge Request Status | approved | |||||||
Review Assigned To | ||||||||
OBNetwork customer | Gold | |||||||
Support ticket | ||||||||
Regression level | ||||||||
Regression date | ||||||||
Regression introduced in release | ||||||||
Regression introduced by commit | ||||||||
Triggers an Emergency Pack | No | |||||||
Summary | 0045545: Cancel and Replace process fails when the new ticket has a total amount of zero | |||||||
Description | When executing the cancel and replace process, if the final ticket has a total gross amount of zero, the process fails and a record is generated in the Errors While Importing POS Data window. | |||||||
Steps To Reproduce | First, log in backend and configure the following: * Go to the Preference Window and make sure that the preference 'Web POS Enable Delivery Modes' is defined with value Y. * Go to the Channel - Touchpoint window, find the VBS-1 record and navigate to its Touchpoint Type. Enable the 'Allow prepayments and partialpayments' check, and save the record. Log in WebPOS terminal VBS-1 Create a new ticket Add a product (i.e. Avalanche Transceiver) Click on the Total Amount button and click on Done to complete the ticket. Approve the action if required. Open the created ticket. Click on the Menu, then on Cancel and Replace. Change the price of the Avalanche Transceiver to 0. Click on the Total Amount button and click on Done to complete the ticket again. Verify in backend that a new record appears in the Errors While Importing POS Data window with the following error: org.openbravo.base.exception.OBException: CancelAndReplaceUtils.cancelAndReplaceOrder: at org.openbravo.retail.posterminal.OrderLoader.saveRecord(OrderLoader.java:545) at org.openbravo.mobile.core.process.DataSynchronizationProcess.saveRecord(DataSynchronizationProcess.java:201) [...] Caused by: org.openbravo.base.exception.OBException: org.openbravo.base.exception.OBException: java.lang.NullPointerException at org.openbravo.erpCommon.businessUtility.ReplaceOrderExecutor.cancelAndReplaceOrder(ReplaceOrderExecutor.java:167) at org.openbravo.erpCommon.businessUtility.ReplaceOrderExecutor.run(ReplaceOrderExecutor.java:107) | |||||||
Proposed Solution | It seems that the problem happens when the final ticket doesn't have a Payment Schedule (since its total amount is 0 there is nothing to be paid) | |||||||
Tags | No tags attached. | |||||||
Attached Files | ||||||||
![]() |
||||||||
|
![]() |
|
(0124796) hgbot (developer) 2020-12-11 13:17 |
Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal [^] Changeset: 297bce04c1d6219f5dfb2b4ca05cb013817abb89 Author: Mark <markmm82@gmail.com> Date: 2020-12-11T09:17:41-03:00 URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/commit/297bce04c1d6219f5dfb2b4ca05cb013817abb89 [^] Fixed BUG-45545: Cancel and Replace process fails when the new ticket has a total amount of zero --- M src/org/openbravo/retail/posterminal/OrderLoader.java --- |
(0124797) hgbot (developer) 2020-12-11 13:37 |
Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal [^] Changeset: 82575b564b48503ae27fd4c6adc025671fd48452 Author: Mark Orlando Molina <markmm82@gmail.com> Date: 2020-12-11T12:35:44+00:00 URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/commit/82575b564b48503ae27fd4c6adc025671fd48452 [^] Revert "Fixed BUG-45545: Cancel and Replace process fails when the new ticket has a total amount of zero" This reverts commit 297bce04c1d6219f5dfb2b4ca05cb013817abb89 --- M src/org/openbravo/retail/posterminal/OrderLoader.java --- |
(0124806) hgbot (developer) 2020-12-14 13:35 |
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/208 [^] |
(0124829) hgbot (developer) 2020-12-15 13:03 |
Merge request closed: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/208 [^] |
(0124831) hgbot (developer) 2020-12-15 15:07 |
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/214 [^] |
(0124859) hgbot (developer) 2020-12-16 07:35 |
Directly closing issue as related merge request is already approved. Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal [^] Changeset: fd2905d4eca8fe4215b6afa1ed7c30f9584da811 Author: Mark <markmm82@gmail.com> Date: 2020-12-16T06:35:43+00:00 URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/commit/fd2905d4eca8fe4215b6afa1ed7c30f9584da811 [^] Fixed BUG-45545: Cancel and Replace process fails when the new ticket has a total amount of zero --- M src/org/openbravo/retail/posterminal/OrderLoader.java --- |
(0124860) hgbot (developer) 2020-12-16 07:35 |
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/214 [^] |
![]() |
|||
Date Modified | Username | Field | Change |
2020-12-09 12:06 | aaroncalero | New Issue | |
2020-12-09 12:06 | aaroncalero | Assigned To | => Retail |
2020-12-09 12:06 | aaroncalero | OBNetwork customer | => Gold |
2020-12-09 12:06 | aaroncalero | Resolution time | => 1609282800 |
2020-12-09 12:06 | aaroncalero | Triggers an Emergency Pack | => No |
2020-12-09 13:25 | marvintm | Assigned To | Retail => markmm82 |
2020-12-09 13:25 | marvintm | Status | new => scheduled |
2020-12-11 13:17 | hgbot | Resolution | open => fixed |
2020-12-11 13:17 | hgbot | Status | scheduled => resolved |
2020-12-11 13:17 | hgbot | Fixed in Version | => RR21Q1 |
2020-12-11 13:17 | hgbot | Note Added: 0124796 | |
2020-12-11 13:37 | hgbot | Note Added: 0124797 | |
2020-12-14 06:30 | marvintm | Status | resolved => new |
2020-12-14 06:30 | marvintm | Resolution | fixed => open |
2020-12-14 06:30 | marvintm | Fixed in Version | RR21Q1 => |
2020-12-14 06:30 | marvintm | Status | new => scheduled |
2020-12-14 13:35 | hgbot | Merge Request Status | => open |
2020-12-14 13:35 | hgbot | Note Added: 0124806 | |
2020-12-15 13:03 | hgbot | Note Added: 0124829 | |
2020-12-15 15:07 | hgbot | Note Added: 0124831 | |
2020-12-16 07:35 | hgbot | Merge Request Status | open => approved |
2020-12-16 07:35 | hgbot | Resolution | open => fixed |
2020-12-16 07:35 | hgbot | Status | scheduled => closed |
2020-12-16 07:35 | hgbot | Fixed in Version | => RR21Q1 |
2020-12-16 07:35 | hgbot | Note Added: 0124859 | |
2020-12-16 07:35 | hgbot | Note Added: 0124860 | |
2022-02-22 11:53 | marvintm | Relationship added | has duplicate 0048650 |
Copyright © 2000 - 2009 MantisBT Group |