Openbravo Issue Tracking System - Retail Modules
View Issue Details
0049260Retail ModulesLayaway orderpublic2022-05-09 10:512022-07-19 15:02
jose_duque 
ranjith_qualiantech_com 
normalmajoralways
closedfixed 
30Openbravo Appliance 14.04
 
RR22Q3 
No
0049260: The delivered quantity is incorrect for a cancelled layaway
When we cancel the layaway the delivered quantity is set to "-1".

When we complete a layaway the ordered qty and delivered qty are set to "1"
After cancelling the ordered and delivered are set to "-1" it should be "0"
1. Make a layaway,
check the sales order window in the BO: Ordered Qty = 1, Delivered Qty = 0, Invoiced Qty = 0
check the EDL request, in the JSON we have: Ordered Qty = 1, Delivered Qty = 0, Invoiced Qty = 0

2. Cancel the layaway,
sales order in the BO: Ordered = 1, Delivered = 1, Invoiced = 0
EDL request, in the JSON we have: Ordered= 1, Delivered = 0, Invoiced = 0
The data for the returned order after cancelled is good.
No tags attached.
related to defect 0049383 closed ranjith_qualiantech_com Push API doesn't work for "Cancel Layaway/Order" flow 
related to defect 0049844 closed radhakrishnan The delivered quantity is incorrect for a cancelled layaway in a cancel and replace 
Issue History
2022-05-09 10:51jose_duqueNew Issue
2022-05-09 10:51jose_duqueAssigned To => Retail
2022-05-09 10:51jose_duqueTriggers an Emergency Pack => No
2022-05-09 10:51jose_duqueIssue generated from0048104
2022-05-11 07:43ranjith_qualiantech_comAssigned ToRetail => ranjith_qualiantech_com
2022-05-12 12:16ranjith_qualiantech_comStatusnew => scheduled
2022-05-17 12:47hgbotNote Added: 0137370
2022-05-17 12:47hgbotNote Added: 0137371
2022-05-24 07:50hgbotResolutionopen => fixed
2022-05-24 07:50hgbotStatusscheduled => closed
2022-05-24 07:50hgbotFixed in Version => RR22Q3
2022-05-24 07:50hgbotNote Added: 0137651
2022-05-24 07:50hgbotNote Added: 0137652
2022-05-24 07:50hgbotNote Added: 0137653
2022-05-24 07:50hgbotNote Added: 0137654
2022-05-24 07:57marvintmRelationship addedrelated to 0049383
2022-07-19 15:02jose_duqueIssue cloned0049844
2022-08-04 07:38ranjith_qualiantech_comRelationship addedrelated to 0049844

Notes
(0137370)
hgbot   
2022-05-17 12:47   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/800 [^]
(0137371)
hgbot   
2022-05-17 12:47   
Merge Request created: https://gitlab.com/openbravo/ci/mobile-test/-/merge_requests/194 [^]
(0137651)
hgbot   
2022-05-24 07:50   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal [^]
Changeset: 8082b55b30a5a8e8fde7755a1a83b183afdbc7ab
Author: Ranjith S R <ranjith@qualiantech.com>
Date: 24-05-2022 05:50:16
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/commit/8082b55b30a5a8e8fde7755a1a83b183afdbc7ab [^]

Fixed ISSUE-49260: Delivered Quantity should be zero when cancelling the layaway

---
M src/org/openbravo/retail/posterminal/OrderLoader.java
M web/org.openbravo.retail.posterminal/app/model/business-object/ticket/actions/CreateCancelTicket.js
M web/org.openbravo.retail.posterminal/js/model/order.js
---
(0137652)
hgbot   
2022-05-24 07:50   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/800 [^]
(0137653)
hgbot   
2022-05-24 07:50   
Repository: https://gitlab.com/openbravo/ci/mobile-test [^]
Changeset: 8e6e06636741285188f5f7061059cf28efeb7da8
Author: Ranjith S R <ranjith@qualiantech.com>
Date: 24-05-2022 05:50:28
URL: https://gitlab.com/openbravo/ci/mobile-test/-/commit/8e6e06636741285188f5f7061059cf28efeb7da8 [^]

Verifies ISSUE-49260: Updated CancelLayaway tests

---
M src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/cancelandreplace/CancelLayawayPartiallyPaid.java
M src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/cancelandreplace/CancelLayawayWithOverpayment.java
M src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/prepaymentsAndInvoiceTerms/ImmediateCancelLayawayServiceAsPerProductUndeliverablePrepayment330.java
M src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/prepaymentsAndInvoiceTerms/ImmediateCancelLayawayUndeliverableProductPrepayment320.java
M src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/prepaymentsAndInvoiceTerms/OMNI070_CancelLayawayUndeliverableProductPrepaymentWithApprovalAfterOrderDelivery.java
M src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/prepaymentsAndInvoiceTerms/OMNI080_CancelLayawayServiceAsPerProductUndeliverableProductPrepaymentWithApprovalAfterOrderDelivery.java
M src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/prepaymentsAndInvoiceTerms/OMNI200_CancelLayawayUndelivereableProductPrepaymentWithApprovalAfterDelivery.java
M src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/prepaymentsAndInvoiceTerms/OMNI210_CancelLayawayServiceAsPerProductUndelivereableProductPrepaymentWithApprovalAfterDelivery.java
---
(0137654)
hgbot   
2022-05-24 07:50   
Merge request merged: https://gitlab.com/openbravo/ci/mobile-test/-/merge_requests/194 [^]