Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0044904 | ||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
feature request | [Retail Modules] Web POS | major | always | 2020-08-27 07:42 | 2020-09-22 17:31 | |||
Reporter | marvintm | View Status | public | |||||
Assigned To | prakashmurugesan88 | |||||||
Priority | normal | Resolution | fixed | Fixed in Version | RR20Q4 | |||
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 | 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. | |||||||
Tags | No tags attached. | |||||||
Attached Files | ![]() | |||||||
![]() |
||||||||
|
![]() |
|
(0122934) hgbot (developer) 2020-09-11 05:40 |
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/93 [^] |
(0122988) hgbot (developer) 2020-09-14 07:40 |
Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal [^] Changeset: 292cf9b4f5360b699a4fb9985bf5b470ffda4b73 Author: Prakash M <prakash@qualiantech.com> Date: 2020-09-14T10:48:11+05:30 URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/commit/292cf9b4f5360b699a4fb9985bf5b470ffda4b73 [^] Related to BUG-44904 : In ExternalOrderLoader cancel flow is not available * This is because CancelLayawayLoader is implemented separately * Fixed by moving cancel flow from CancelLayawayLoader to OrderLoader --- M src/org/openbravo/retail/posterminal/OrderLoader.java --- |
(0122989) hgbot (developer) 2020-09-14 07:40 |
Directly closing issue as related merge request is already approved. Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal [^] Changeset: 6fa15e2dc394800b9df55dbbbefc1e5d08231107 Author: Prakash M <prakash@qualiantech.com> Date: 2020-09-14T10:48:11+05:30 URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/commit/6fa15e2dc394800b9df55dbbbefc1e5d08231107 [^] Fixed BUG-44904 : In ExternalOrderLoader cancel flow is not available * This is because CancelLayawayLoader is implemented separately * Fixed by moving cancel flow from CancelLayawayLoader to OrderLoader * CancelLaywayLoader now calls super(OrderLoader) to perform the operation --- M src/org/openbravo/retail/posterminal/CancelLayawayLoader.java --- |
(0122990) hgbot (developer) 2020-09-14 07:40 |
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/93 [^] |
(0123295) hgbot (developer) 2020-09-22 17:31 |
Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal [^] Changeset: 50b82e6574d81d5ccd9673a41a856a81f846eef8 Author: Prakash M <prakash@qualiantech.com> Date: 2020-09-22T19:32:26+05:30 URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/commit/50b82e6574d81d5ccd9673a41a856a81f846eef8 [^] Related to BUG-44904: Handled cancel layaway in external order loader --- M src/org/openbravo/retail/posterminal/ExternalOrderLoader.java --- |
(0123296) hgbot (developer) 2020-09-22 17:31 |
Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal [^] Changeset: a788cbce5935c73918354b777b9d29ee46ab467f Author: Prakash M <prakash@qualiantech.com> Date: 2020-09-22T20:35:30+05:30 URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/commit/a788cbce5935c73918354b777b9d29ee46ab467f [^] Related to BUG-44904: Fixes try failure in RetailOrderLoaderTest-testPromotionOrder --- M src/org/openbravo/retail/posterminal/ExternalOrderLoader.java --- |
![]() |
|||
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 |
Copyright © 2000 - 2009 MantisBT Group |