Openbravo Issue Tracking System - Retail Modules |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0044904 | Retail Modules | Web POS | public | 2020-08-27 07:42 | 2020-09-22 17:31 |
|
Reporter | marvintm | |
Assigned To | prakashmurugesan88 | |
Priority | normal | Severity | major | Reproducibility | always |
Status | closed | Resolution | fixed | |
Platform | | OS | 5 | OS Version | |
Product Version | | |
Target Version | | Fixed in Version | RR20Q4 | |
Merge Request Status | approved |
Review Assigned To | |
OBNetwork customer | No |
Support ticket | |
Regression level | |
Regression date | |
Regression introduced in release | |
Regression introduced by commit | |
Triggers an Emergency Pack | No |
|
Summary | 0044904: Cancel Order/Layaway is currently not available in the Retail API |
Description | Currently, using the ExternalOrderLoader endpoint, it is possible to do all major Order flows like order creation, layaway creation, addition of payments, or cancel and replace. However, the simple Cancel flow is not available.
The reason is that the Cancel Order/Layaway flow in the WebPOS currently uses a different class in the backend: CancelLayawayLoader.java. Therefore, as ExternalOrderLoader is in a different class hierarchy, the functionality there is not available. |
Steps To Reproduce | Just try to use ExternalOrderLoader and realise that it is not possible to specify to cancel an order. |
Proposed Solution | There are two main changes that need to be done:
- First is to integrate the logic currently in CancelLayawayLoader into the main OrderLoader class. It should be done in such a way that it is properly integrated, with the common parts (like the call to UpdateCashup.getAndUpdateCashUp to update the cashup data, or the call to handlePayments) being preserved like they are in the OrderLoader, and the specific code in CancelLayaway moved to its own place in OrderLoader.
Special attention should be put when refactoring this to ensure that the same parts that are currently being executed with either triggers enabled or disabled, are executed in the same way after the refactor.
Once this part is done, it will be possible to cancel orders using ExternalOrderLoader.
- Second part then consists on doing the necessary changes in the WebPOS to call OrderLoader also in the Cancel Layaway/Order flows. Once this is done, we will be free to remove the CancelLayawayLoader.java and CancelLayawayImportEntryProcessor.java classes, as we will no longer need them, and import entries of type "Order" will be generated from the WebPOS. |
Additional Information | |
Tags | No tags attached. |
Relationships | related to | defect | 0049912 | | closed | ranjith_qualiantech_com | The Layaway is not deliverable even if a payment was done through the API |
|
Attached Files | I44904_20Q3.patch (11,301) 2020-09-07 14:22 https://issues.openbravo.com/file_download.php?file_id=14944&type=bug |
|
Issue History |
Date Modified | Username | Field | Change |
2020-08-27 07:42 | marvintm | New Issue | |
2020-08-27 07:42 | marvintm | Assigned To | => Retail |
2020-08-27 07:42 | marvintm | OBNetwork customer | => No |
2020-08-27 07:42 | marvintm | Triggers an Emergency Pack | => No |
2020-08-27 07:43 | marvintm | Proposed Solution updated | |
2020-09-02 16:03 | prakashmurugesan88 | Assigned To | Retail => prakashmurugesan88 |
2020-09-07 05:22 | prakashmurugesan88 | Status | new => scheduled |
2020-09-07 14:22 | prakashmurugesan88 | File Added: I44904_20Q3.patch | |
2020-09-11 05:40 | hgbot | Merge Request Status | => open |
2020-09-11 05:40 | hgbot | Note Added: 0122934 | |
2020-09-11 08:11 | hgbot | Merge Request Status | open => approved |
2020-09-14 07:40 | hgbot | Note Added: 0122988 | |
2020-09-14 07:40 | hgbot | Resolution | open => fixed |
2020-09-14 07:40 | hgbot | Status | scheduled => closed |
2020-09-14 07:40 | hgbot | Fixed in Version | => RR20Q4 |
2020-09-14 07:40 | hgbot | Note Added: 0122989 | |
2020-09-14 07:40 | hgbot | Note Added: 0122990 | |
2020-09-22 17:31 | hgbot | Note Added: 0123295 | |
2020-09-22 17:31 | hgbot | Note Added: 0123296 | |
2022-08-05 11:56 | ranjith_qualiantech_com | Relationship added | related to 0049912 |
Notes |
|
(0122934)
|
hgbot
|
2020-09-11 05:40
|
|
|
|
(0122988)
|
hgbot
|
2020-09-14 07:40
|
|
|
|
(0122989)
|
hgbot
|
2020-09-14 07:40
|
|
|
|
(0122990)
|
hgbot
|
2020-09-14 07:40
|
|
|
|
(0123295)
|
hgbot
|
2020-09-22 17:31
|
|
|
|
(0123296)
|
hgbot
|
2020-09-22 17:31
|
|
|