Openbravo Issue Tracking System - Retail Modules
View Issue Details
0034606Retail ModulesWeb POSpublic2016-11-23 13:412016-11-28 12:13
adrianromero 
mario_castello 
urgentmajorhave not tried
closedduplicate 
5
 
 
No
0034606: [SER-QA 2049] Cannot cancel a partially paid layaway created in another terminal
Trying to cancel a partially paid layaway created in a terminal that has no payment methods raises an exception in handlePayments() method of OrderLoader process. This error is not noticed by the cashier, it goes to the Errors while importing POS data table
* Consider two different terminals. For example in live builds have VBS1001 with all the payment methods and VBS1002 without any payment method. All payment methods must be removed in this terminal.
* Log in in VBS1002 and create a layaway
* Log in in VBS1001 and load the previously created layaway
* Pay it partially, not completely and layaway again
* Load again the partially paid layaway and tap on "Cancel this layaway" and complete the process.
* Log in in the backend and observe that the reversed order has not been created and in "Errors while importing POS Data" an error appears: org.openbravo.base.exception.OBException: CancelLayawayLoader.cancelOrder:



Exception is raised in this line: https://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/file/e00544cc1618/src/org/openbravo/retail/posterminal/OrderLoader.java#l1876 [^]
The problem is that no Payment Type has been found because the function is looking for payment methods in the terminal where the original order was created that in our example is 1002, but here there is not any payment method.
SER-QA
duplicate of defect 0034634 closed asiermartirena When doing a Cancel Layaway, the new order must have the terminal ID of the current terminal 
diff Issue34606.diff (955) 2016-11-25 23:19
https://issues.openbravo.com/file_download.php?file_id=10116&type=bug
Issue History
2016-11-23 13:41adrianromeroNew Issue
2016-11-23 13:41adrianromeroAssigned To => Retail
2016-11-23 13:41adrianromeroResolution time => 1481065200
2016-11-23 13:41adrianromeroTriggers an Emergency Pack => No
2016-11-23 13:46adrianromeroSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=13870#r13870
2016-11-23 13:46adrianromeroProposed Solution updated
2016-11-23 13:46adrianromeroProposed Solution updated
2016-11-23 13:46adrianromeroTag Attached: SER-QA
2016-11-23 13:59adrianromeroProposed Solution updated
2016-11-25 16:37mario_castelloAssigned ToRetail => mario_castello
2016-11-25 16:38mario_castelloStatusnew => acknowledged
2016-11-25 16:38mario_castelloStatusacknowledged => scheduled
2016-11-25 23:19mario_castelloFile Added: Issue34606.diff
2016-11-28 12:13marvintmRelationship addedduplicate of 0034634
2016-11-28 12:13marvintmStatusscheduled => closed
2016-11-28 12:13marvintmResolutionopen => duplicate

There are no notes attached to this issue.