Openbravo Issue Tracking System - Retail Modules
View Issue Details
0033280Retail ModulesWeb POSpublic2016-06-15 19:552016-07-05 13:22
malsasua 
ranjith_qualiantech_com 
immediatemajoralways
closedfixed 
20Community Appliance
 
 
marvintm
Production - QA Approved
No
0033280: [RR16Q2] Error in OrderLoader when total paid is zero
when you create a new receipt with total amount zero, and the flag "invoice this receipt" is selected, error is returned when the receipt is imported in backoffice
in webpos
. add line: qty: 0.01 - price: 0.17
. open menu, click the option "invoice this receipt"
. click in total button (0) and click in done button

in backoffice:
. receipt is stored in "Errors While Importing" window with the error:
java.lang.NullPointerException
    at org.openbravo.retail.posterminal.OrderLoader.handlePayments(OrderLoader.java:1915)
    at org.openbravo.retail.posterminal.OrderLoader.saveRecord(OrderLoader.java:448)
    at org.openbravo.mobile.core.process.DataSynchronizationProcess.saveRecord(DataSynchronizationProcess.java:198)
    at org.openbravo.mobile.core.process.DataSynchronizationProcess.exec(DataSynchronizationProcess.java:155)

The error is in line:
https://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/file/33cef587add4/src/org/openbravo/retail/posterminal/OrderLoader.java#l1915 [^]
that paymentScheduleInvoice is null
No tags attached.
depends on backport 0033431RR16Q2.1 closed ranjith_qualiantech_com [RR16Q2] Error in OrderLoader when total paid is zero 
Issue History
2016-06-15 19:55malsasuaNew Issue
2016-06-15 19:55malsasuaAssigned To => Retail
2016-06-15 19:55malsasuaResolution time => 1466287200
2016-06-15 19:55malsasuaRegression level => Production - QA Approved
2016-06-15 19:55malsasuaTriggers an Emergency Pack => No
2016-06-15 19:58malsasuaProposed Solution updated
2016-06-16 11:30ranjith_qualiantech_comAssigned ToRetail => ranjith_qualiantech_com
2016-06-16 11:33ranjith_qualiantech_comStatusnew => scheduled
2016-06-20 04:19hgbotCheckin
2016-06-20 04:19hgbotNote Added: 0087644
2016-06-20 04:19hgbotStatusscheduled => resolved
2016-06-20 04:19hgbotResolutionopen => fixed
2016-06-20 04:19hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/019b463b6150bfe5de0757a643cccc619b9ae0af [^]
2016-06-20 13:06marvintmReview Assigned To => marvintm
2016-06-20 13:06marvintmStatusresolved => closed
2016-07-05 13:22marvintmStatusclosed => new
2016-07-05 13:22marvintmResolutionfixed => open
2016-07-05 13:22marvintmStatusnew => scheduled
2016-07-05 13:22marvintmStatusscheduled => resolved
2016-07-05 13:22marvintmResolutionopen => fixed
2016-07-05 13:22marvintmStatusresolved => closed

Notes
(0087644)
hgbot   
2016-06-20 04:19   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: 019b463b6150bfe5de0757a643cccc619b9ae0af
Author: Ranjith S R <ranjith <at> qualiantech.com>
Date: Mon Jun 20 07:49:26 2016 +0530
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/019b463b6150bfe5de0757a643cccc619b9ae0af [^]

Fixes issue 33280 : Validate Invoice Amount in order to create Payment Schedule detail

---
M src/org/openbravo/retail/posterminal/OrderLoader.java
---