Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0020304Openbravo ERPZ. Otherspublic2012-04-18 16:492012-04-21 14:24
maite 
dmiguelez 
urgentmajoralways
closedfixed 
5
 
3.0MP11 
Advanced Payables and Receivables Mngmt
No
0020304: FIN_PaymentMonitor process fails with invoice of zero amount and finallsettlement null
FIN_PaymentMonitor process fails with invoice of zero amount and finallsettlement null
1, create invoice for any BP and any product. Invoice total=zero. Process
2. schedule FIN_PaymentMonitor background process to be executed immediately
3. Go to Payment Monitor window and verify that execution finish with error
Problem is in method "getDaysBetween" (line 151) , in FIN_PaymentMonitorProcess.java, as "finalSettlementDate" is null
No tags attached.
Issue History
2012-04-18 16:49maiteNew Issue
2012-04-18 16:49maiteAssigned To => vmromanos
2012-04-18 16:49maiteModules => Advanced Payables and Receivables Mngmt
2012-04-18 16:49maiteIssue Monitored: networkb
2012-04-18 16:52dmiguelezAssigned Tovmromanos => dmiguelez
2012-04-18 16:52dmiguelezStatusnew => scheduled
2012-04-18 16:52dmiguelezfix_in_branch => pi
2012-04-19 09:32dmiguelezNote Added: 0047727
2012-04-19 09:35dmiguelezNote Edited: 0047727bug_revision_view_page.php?bugnote_id=0047727#r3380
2012-04-19 12:36hgbotCheckin
2012-04-19 12:36hgbotNote Added: 0047744
2012-04-19 12:36hgbotStatusscheduled => resolved
2012-04-19 12:36hgbotResolutionopen => fixed
2012-04-19 12:36hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/e54f824b9750726b64118e5af0140a24a47a0cbb [^]
2012-04-19 18:49maiteNote Added: 0047763
2012-04-19 18:49maiteStatusresolved => closed
2012-04-21 14:24hudsonbotCheckin
2012-04-21 14:24hudsonbotNote Added: 0047842

Notes
(0047727)
dmiguelez   
2012-04-19 09:32   
(edited on: 2012-04-19 09:35)
Test plan:

Login as Openbravo/openbravo

1, create invoice for any BP and any product. Invoice total=zero. Process
2. schedule FIN_PaymentMonitor background process to be executed immediately
3. Go to Process Monitor window and verify that execution finish succesfully

(0047744)
hgbot   
2012-04-19 12:36   
Repository: erp/devel/pi
Changeset: e54f824b9750726b64118e5af0140a24a47a0cbb
Author: David Miguelez <david.miguelez <at> openbravo.com>
Date: Thu Apr 19 12:34:32 2012 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/e54f824b9750726b64118e5af0140a24a47a0cbb [^]

Fixes issue 0020304: Prevents Null Pointer Exception and also
prevents division by zero.

---
M modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/process/FIN_PaymentMonitorProcess.java
---
(0047763)
maite   
2012-04-19 18:49   
verified
(0047842)
hudsonbot   
2012-04-21 14:24   
A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/2eb57286c1fc [^]

Maturity status: Test