Openbravo Issue Tracking System - Modules
View Issue Details
0034364ModulesService Contract Managementpublic2016-11-02 10:502016-11-24 14:31
malsasua 
collazoandy4 
normalminoralways
closedfixed 
5
 
 
aferraz
0034364: when payment term is not selected in contract, null pointer error is returned during "contract billing" process
when a contract has not set a payment term, and "contract billing" process is run, null pointer exception is returned
. configure a new contract, with payment term field empty
. run "contract billing" process
Error is returned:

org.openbravo.contract.services.process.billing.BaseInvoiceProcess - BaseInvoiceProcess error: null
java.lang.NullPointerException
    at org.openbravo.contract.services.process.billing.StandardContractInvoiceProcess.createInvoiceTempHeaderFromInvoicePlan(StandardContractInvoiceProcess.java:505)
    at org.openbravo.contract.services.process.billing.StandardContractInvoiceProcess.createInvoiceTemp(StandardContractInvoiceProcess.java:432)
    at org.openbravo.contract.services.process.billing.StandardContractInvoiceProcess.createTemporalInvoices(StandardContractInvoiceProcess.java:274)
attached diff
No tags attached.
related to defect 0034607 closed collazoandy4 Error using “Update Invoice Plan” in contract window. 
diff issueNoPaymentTerm.diff (862) 2016-11-02 10:50
https://issues.openbravo.com/file_download.php?file_id=10001&type=bug
Issue History
2016-11-02 10:50malsasuaNew Issue
2016-11-02 10:50malsasuaAssigned To => Triage Finance
2016-11-02 10:50malsasuaFile Added: issueNoPaymentTerm.diff
2016-11-02 10:53malsasuaResolution time => 1479855600
2016-11-03 21:00aferrazAssigned ToTriage Finance => nonofrancisco
2016-11-10 16:55markmm82Statusnew => scheduled
2016-11-10 16:55markmm82Assigned Tononofrancisco => markmm82
2016-11-10 16:57markmm82Note Added: 0091341
2016-11-22 20:11aferrazResolution time1479855600 =>
2016-11-22 20:11aferrazSeveritymajor => minor
2016-11-23 12:21hgbotCheckin
2016-11-23 12:21hgbotNote Added: 0091759
2016-11-23 12:21hgbotStatusscheduled => resolved
2016-11-23 12:21hgbotResolutionopen => fixed
2016-11-23 12:21hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.contract.services/rev/71eb61053d4702c4c4ed9d6ef8a1c7225d5c8c8e [^]
2016-11-23 12:21hgbotCheckin
2016-11-23 12:21hgbotNote Added: 0091760
2016-11-23 12:29hgbotCheckin
2016-11-23 12:29hgbotNote Added: 0091761
2016-11-23 12:29hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/pmods/org.openbravo.contract.services/rev/71eb61053d4702c4c4ed9d6ef8a1c7225d5c8c8e [^] => http://code.openbravo.com/erp/pmods/org.openbravo.contract.services/rev/f4b2a917de2bd7b02a75eedbb9aa29ff2664ea99 [^]
2016-11-23 12:30aferrazReview Assigned To => aferraz
2016-11-23 12:30aferrazNote Added: 0091762
2016-11-23 12:30aferrazStatusresolved => closed
2016-11-24 14:30aferrazRelationship addedrelated to 0034607
2016-11-24 14:31aferrazAssigned Tomarkmm82 => collazoandy4

Notes
(0091341)
markmm82   
2016-11-10 16:57   
Test Plan
1. In the Contract view create a new record in a form view
2. Fill out the Organization, Contract Type, Search Key, Name, Business Partner, Starting Date (initial month) and Ending Date (ending month) fields
3. In the Service Contract group set the Payment Terms field empty and select any Contract Invoice Schedule
4. Save the changes.
5. Create a new record in the Invoice Plan Master
6. Set the Starting Date to today
7. Set the Ending Date to today + 2
8. Select a product and set a quantity
9. Save the Record
10. Clic on the button Update Invoice Plan and OK from the popup
11. Verify a new record was added in the Invoice Plan tab
12. Open the view Contract Billing Process
13. Set the Starting and Ending dates to today
14. In Contract filter select the previously created contract
15. Clic on the Done button and OK from the popup
16. An error is shown indicating that this contract doesn't have a selected Payment Term
(0091759)
hgbot   
2016-11-23 12:21   
Repository: erp/pmods/org.openbravo.contract.services
Changeset: 71eb61053d4702c4c4ed9d6ef8a1c7225d5c8c8e
Author: Armaignac <collazoandy4 <at> gmail.com>
Date: Wed Nov 23 12:08:32 2016 +0100
URL: http://code.openbravo.com/erp/pmods/org.openbravo.contract.services/rev/71eb61053d4702c4c4ed9d6ef8a1c7225d5c8c8e [^]

Fixes issue 34364: Contract billing process with empty Payment Term in Contract

While executing a billing process with a Payment Term not selected in Contract, a java lang exception was raised because the contract header is null. Now this is validated, avoiding the uncaptured exception and showing an error message if the contract header is null.

---
M src-db/database/sourcedata/AD_MESSAGE.xml
M src/org/openbravo/contract/services/process/billing/StandardContractInvoiceProcess.java
---
(0091760)
hgbot   
2016-11-23 12:21   
Repository: erp/pmods/org.openbravo.contract.services
Changeset: 5fccfbc6883802693ff43de81121309207a45c85
Author: Alvaro Ferraz <alvaro.ferraz <at> openbravo.com>
Date: Wed Nov 23 12:08:55 2016 +0100
URL: http://code.openbravo.com/erp/pmods/org.openbravo.contract.services/rev/5fccfbc6883802693ff43de81121309207a45c85 [^]

Related to issue 34364: Update module version

---
M src-db/database/sourcedata/AD_MODULE.xml
---
(0091761)
hgbot   
2016-11-23 12:29   
Repository: erp/pmods/org.openbravo.contract.services
Changeset: f4b2a917de2bd7b02a75eedbb9aa29ff2664ea99
Author: Armaignac <collazoandy4 <at> gmail.com>
Date: Wed Nov 23 12:08:32 2016 +0100
URL: http://code.openbravo.com/erp/pmods/org.openbravo.contract.services/rev/f4b2a917de2bd7b02a75eedbb9aa29ff2664ea99 [^]

Fixes issue 34364: Contract billing process with empty Payment Term in Contract

While executing a billing process with a Payment Term not selected in Contract, a java lang exception was raised because the contract header is null. Now this is validated, avoiding the uncaptured exception and showing an error message if the contract header is null.

---
M src-db/database/sourcedata/AD_MESSAGE.xml
M src/org/openbravo/contract/services/process/billing/StandardContractInvoiceProcess.java
---
(0091762)
aferraz   
2016-11-23 12:30   
Code review + Testing OK