Openbravo Issue Tracking System - Retail Modules
View Issue Details
0039771Retail ModulesCopy Retail Storepublic2018-12-10 10:072018-12-24 10:13
joniturralde93 
rqueralta 
urgentmajoralways
closedfixed 
5
pi 
RR19Q1 
marvintm
No
0039771: Copy Terminal fails when Payment Method has Leave as Credit checked
If a POS Terminal has a Payment Type whose payment method has 'Leave as Credit' checked, copy terminal process fails (and so does Copy Retail Store process for the same organization).
1. Go to livebuilds: https://livebuilds.openbravo.com/retail_modules_pgsql_pi/ [^]
2. Open VBS POS Terminal (VBS-1) in POS Terminal window.
3. Execute Copy Terminal process (success).
4. Open Payment type 'Cash' and navigate to its Payment Method (cash) in a new tab.
5. Check flag 'Leave as Credit' and save.
6. Execute Copy Terminal process again (fails).

It also fails when Copying the Organization Vall Blanca Store which owns this POS Terminal.
No tags attached.
Issue History
2018-12-10 10:07joniturralde93New Issue
2018-12-10 10:07joniturralde93Assigned To => Retail
2018-12-10 10:07joniturralde93Resolution time => 1546210800
2018-12-10 10:07joniturralde93Triggers an Emergency Pack => No
2018-12-10 10:10jfrancesIssue Monitored: jfrances
2018-12-10 14:54rqueraltaAssigned ToRetail => rqueralta
2018-12-10 15:02rqueraltaStatusnew => scheduled
2018-12-11 22:32hgbotCheckin
2018-12-11 22:32hgbotNote Added: 0108522
2018-12-11 22:32hgbotStatusscheduled => resolved
2018-12-11 22:32hgbotResolutionopen => fixed
2018-12-11 22:32hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.copystore/rev/e2ab2160e879f41100b4ecaacb32c97a3c0f52e8 [^]
2018-12-24 10:13marvintmReview Assigned To => marvintm
2018-12-24 10:13marvintmStatusresolved => closed
2018-12-24 10:13marvintmFixed in Version => RR19Q1

Notes
(0108522)
hgbot   
2018-12-11 22:32   
Repository: erp/pmods/org.openbravo.retail.copystore
Changeset: e2ab2160e879f41100b4ecaacb32c97a3c0f52e8
Author: Rafael Queralta <rafaelcuba81 <at> gmail.com>
Date: Tue Dec 11 12:07:45 2018 -0500
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.copystore/rev/e2ab2160e879f41100b4ecaacb32c97a3c0f52e8 [^]

Fixed issue 39771: Copy Terminal fails when Payment Method has Leave as Credit
checked

- If Leave as Credit is checked, the financial account of payment method is
removed by an event handler, therefore was necessary check if the financial
account is null after save it

---
M src/org/openbravo/retail/copystore/process/CopyStoreProcess.java
---