Openbravo Issue Tracking System - Retail Modules
View Issue Details
0038542Retail ModulesWeb POSpublic2018-05-14 11:592018-05-31 19:01
ngarcia 
rqueralta 
urgentmajoralways
closedfixed 
5
 
RR18Q3 
marvintm
No
0038542: Order goes to Errors While Importing POS Data if it is paid by a Payment Type that has been removed
Order goes to Errors While Importing POS Data if it is paid by a Payment Type that has been removed
In the POS:
   Create a new ticket
   Add a product
   Click on the total (do not pay it)

In the backend:
   Go to the POS Terminal
   Remove the record related with the payment method related with Cash from the Payment Type

In the POS:
   Pay the ticket with Cash

In the backend:
   Go to Errors While Importing POS Data and check there is a new record related with the order on it
   The error is:
      java.lang.NullPointerException
    at org.openbravo.retail.posterminal.UpdateCashup.createPaymentMethodCashUp(UpdateCashup.java:302)
    at org.openbravo.retail.posterminal.UpdateCashup.updateOrCreateCashupInfo(UpdateCashup.java:254)
    at org.openbravo.retail.posterminal.UpdateCashup.getAndUpdateCashUp(UpdateCashup.java:138)
    at org.openbravo.retail.posterminal.OrderLoader.saveRecord(OrderLoader.java:240)
...
No tags attached.
related to defect 0038502 closed rqueralta "Error in previous cashup" received in terminal when Payment Type is NOT ACTIVE 
Issue History
2018-05-14 11:59ngarciaNew Issue
2018-05-14 11:59ngarciaAssigned To => Retail
2018-05-14 11:59ngarciaResolution time => 1528063200
2018-05-14 11:59ngarciaTriggers an Emergency Pack => No
2018-05-14 11:59ngarciaRelationship addedrelated to 0038502
2018-05-16 15:17rqueraltaAssigned ToRetail => rqueralta
2018-05-16 15:19rqueraltaStatusnew => scheduled
2018-05-16 16:41ngarciaIssue Monitored: networkb
2018-05-24 14:59hgbotCheckin
2018-05-24 14:59hgbotNote Added: 0104674
2018-05-24 14:59hgbotStatusscheduled => resolved
2018-05-24 14:59hgbotResolutionopen => fixed
2018-05-24 14:59hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/3f8f039a148d94278dd8dd041c28f77cdaa7dd30 [^]
2018-05-31 19:01marvintmReview Assigned To => marvintm
2018-05-31 19:01marvintmStatusresolved => closed
2018-05-31 19:01marvintmFixed in Version => RR18Q3

Notes
(0104674)
hgbot   
2018-05-24 14:59   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: 3f8f039a148d94278dd8dd041c28f77cdaa7dd30
Author: Rafael Queralta Pozo <rqueralta <at> nauta.cu>
Date: Tue May 22 17:02:08 2018 -0400
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/3f8f039a148d94278dd8dd041c28f77cdaa7dd30 [^]

Fixed issue 38542: Order goes to Errors While Importing POS Data if it is paid
by a Payment Type that has been removed

---
M src-db/database/sourcedata/AD_MESSAGE.xml
M src/org/openbravo/retail/posterminal/event/PaymentMethodEventHandler.java
---