Openbravo Issue Tracking System - Retail Modules
View Issue Details
0037407Retail ModulesWeb POSpublic2017-11-28 13:002018-01-03 12:39
asiermartirena 
asiermartirena 
highmajoralways
closedfixed 
5
 
RR18Q1 
migueldejuana
No
0037407: Error in server when doing a CL of a layaway with a related canceled service
When doing a Cancel Layaway of a layaway with a related deferred service that has been canceled an error is thrown on the server side.

This is because when trying to remove a service relation of a closed ticket, there are some quantity rules in backend that are trying to modify the closed ticket, so an exception is thrown.

That relation must be updated in this case, not removed.
Log in Web POS.

Create a layaway and add a 'GPS Mini' product. Synchronize the layaway without payments.

Load the layaway and add a deferred 'Warranty'. Synchronize as a layaway without payments.

Load the deferred service. Do a cancel layaway of it.

Load the original layaway. Do a cancel layaway. This cancel layaway fails.
No tags attached.
Issue History
2017-11-28 13:00asiermartirenaNew Issue
2017-11-28 13:00asiermartirenaAssigned To => asiermartirena
2017-11-28 13:00asiermartirenaTriggers an Emergency Pack => No
2017-12-01 09:24hgbotCheckin
2017-12-01 09:24hgbotNote Added: 0100851
2017-12-01 09:24hgbotStatusnew => resolved
2017-12-01 09:24hgbotResolutionopen => fixed
2017-12-01 09:24hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/0eaef0a7dd5b5630275e74b184b54826f78df4db [^]
2017-12-04 16:21migueldejuanaReview Assigned To => migueldejuana
2017-12-04 16:21migueldejuanaNote Added: 0100921
2017-12-04 16:21migueldejuanaStatusresolved => closed
2017-12-04 16:21migueldejuanaFixed in Version => RR18Q1
2018-01-03 12:39hudsonbotCheckin
2018-01-03 12:39hudsonbotNote Added: 0101506

Notes
(0100851)
hgbot   
2017-12-01 09:24   
Repository: erp/devel/pi
Changeset: 0eaef0a7dd5b5630275e74b184b54826f78df4db
Author: Asier Martirena <asier.martirena <at> openbravo.com>
Date: Tue Nov 28 15:42:01 2017 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/0eaef0a7dd5b5630275e74b184b54826f78df4db [^]

Fixed issue 37407: Error in server when doing a CL of a layaway with a related canceled service

---
M src/org/openbravo/erpCommon/businessUtility/CancelAndReplaceUtils.java
---
(0100921)
migueldejuana   
2017-12-04 16:21   
Tested and reviewed
(0101506)
hudsonbot   
2018-01-03 12:39   
A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/c81e0d3cbab5 [^]
Maturity status: Test