Openbravo Issue Tracking System - Retail Modules
View Issue Details
0037595Retail ModulesWeb POSpublic2017-12-15 14:042018-02-20 07:48
malsasua 
ranjith_qualiantech_com 
normalmajoralways
closedfixed 
5
 
RR17Q4.1RR17Q4.1 
marvintm
No
0037595: Error using credit in return receipts with complex payment terms
If one return receipt is paid using credit, and the payment method of business partner is complex (more than one line), the Sales Order is stuck in Error While Importing with the error:
java.lang.NullPointerException
    at sun.util.calendar.ZoneInfo.inDaylightTime(ZoneInfo.java:501)
    at org.openbravo.advpaymentmngt.utility.FIN_Utility.getDaysBetween(FIN_Utility.java:678)
    at org.openbravo.advpaymentmngt.utility.FIN_Utility.getDaysToDue(FIN_Utility.java:669)
    at org.openbravo.retail.posterminal.OrderLoader.handlePayments(OrderLoader.java:2431)
    at org.openbravo.retail.posterminal.OrderLoader.saveRecord(OrderLoader.java:542)
BO:
. configure terminal type to allow use credit
. configure Arturo Montoro with payment term:
   "20% a 15 días, 40% a 30 días y resto a 60 días"

POS:
. create a new return receipt to Arturo Montoro
. pay it using credit

BO:
. go to Errors While Importing window
No tags attached.
blocks defect 0037493 closed ranjith_qualiantech_com Error using credit in return receipts with complex payment terms 
Issue History
2018-01-08 11:54marvintmTypedefect => backport
2018-01-08 11:54marvintmTarget Version => RR17Q4.1
2018-01-23 12:19hgbotCheckin
2018-01-23 12:19hgbotNote Added: 0101909
2018-01-23 12:30ranjith_qualiantech_comNote Added: 0101911
2018-01-23 12:30ranjith_qualiantech_comStatusscheduled => resolved
2018-01-23 12:30ranjith_qualiantech_comResolutionopen => fixed
2018-01-25 11:40marvintmReview Assigned To => marvintm
2018-01-25 11:40marvintmStatusresolved => closed
2018-01-25 11:40marvintmFixed in Version => RR17Q4.1
2018-02-20 07:48hgbotCheckin
2018-02-20 07:48hgbotNote Added: 0102502

Notes
(0101909)
hgbot   
2018-01-23 12:19   
Repository: retail/backports/3.0RR17Q4.1/pi-mobile
Changeset: 0bc1e6cd9faf10300f82dd7a8077955369e17088
Author: Ranjith S R <ranjith <at> qualiantech.com>
Date: Tue Jan 23 16:49:18 2018 +0530
URL: http://code.openbravo.com/retail/backports/3.0RR17Q4.1/pi-mobile/rev/0bc1e6cd9faf10300f82dd7a8077955369e17088 [^]

Verifies issue 37595 : Added automated test 'I37343_VerifyPymtScheDetailWithCredit'

---
M src-test/org/openbravo/test/mobile/retail/pack/database/WebPOSDatabaseConstants.java
M src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/layaway/I31471_PayLayawayAlreadyInvoiced.java
M src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/system/I31600_VerfiyPaidOnCredit.java
M src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/system/I35571_VerifyReceiptWithMutiPaymentTerm.java
A src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/system/I36907_VerifyReceiptWithPaymentTermLine.java
A src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/system/I36907_VerifyReceiptWithPaymentTermLineII.java
A src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/system/I37343_VerifyPymtScheDetailWithCredit.java
---
(0101911)
ranjith_qualiantech_com   
2018-01-23 12:30   
Fixed in https://code.openbravo.com/retail/backports/3.0RR17Q4.1/org.openbravo.retail.posterminal/rev/9c522af47c34 [^]
Fixed issue 37595 : Validate PaymentTerm lines for return receipt in OrderLoader

* Added new method "addPaymentSchedule" for adding invoice payment schedule in OrderLoader
(0102502)
hgbot   
2018-02-20 07:48   
Repository: tools/automation/pi-mobile
Changeset: 0bc1e6cd9faf10300f82dd7a8077955369e17088
Author: Ranjith S R <ranjith <at> qualiantech.com>
Date: Tue Jan 23 16:49:18 2018 +0530
URL: http://code.openbravo.com/tools/automation/pi-mobile/rev/0bc1e6cd9faf10300f82dd7a8077955369e17088 [^]

Verifies issue 37595 : Added automated test 'I37343_VerifyPymtScheDetailWithCredit'

---
M src-test/org/openbravo/test/mobile/retail/pack/database/WebPOSDatabaseConstants.java
M src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/layaway/I31471_PayLayawayAlreadyInvoiced.java
M src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/system/I31600_VerfiyPaidOnCredit.java
M src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/system/I35571_VerifyReceiptWithMutiPaymentTerm.java
A src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/system/I36907_VerifyReceiptWithPaymentTermLine.java
A src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/system/I36907_VerifyReceiptWithPaymentTermLineII.java
A src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/system/I37343_VerifyPymtScheDetailWithCredit.java
---