Openbravo Issue Tracking System - Modules |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0034364 | Modules | Service Contract Management | public | 2016-11-02 10:50 | 2016-11-24 14:31 |
|
Reporter | malsasua | |
Assigned To | collazoandy4 | |
Priority | normal | Severity | minor | Reproducibility | always |
Status | closed | Resolution | fixed | |
Platform | | OS | 5 | OS Version | |
Product Version | | |
Target Version | | Fixed in Version | | |
Merge Request Status | |
Regression date | |
Regression introduced by commit | |
Regression level | |
Review Assigned To | aferraz |
Support ticket | |
OBNetwork customer | |
Regression introduced in release | |
|
Summary | 0034364: when payment term is not selected in contract, null pointer error is returned during "contract billing" process |
Description | when a contract has not set a payment term, and "contract billing" process is run, null pointer exception is returned |
Steps To Reproduce | . 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) |
Proposed Solution | attached diff |
Additional Information | |
Tags | No tags attached. |
Relationships | related to | defect | 0034607 | | closed | collazoandy4 | Error using “Update Invoice Plan” in contract window. |
|
Attached Files | issueNoPaymentTerm.diff (862) 2016-11-02 10:50 https://issues.openbravo.com/file_download.php?file_id=10001&type=bug |
|
Issue History |
Date Modified | Username | Field | Change |
2016-11-02 10:50 | malsasua | New Issue | |
2016-11-02 10:50 | malsasua | Assigned To | => Triage Finance |
2016-11-02 10:50 | malsasua | File Added: issueNoPaymentTerm.diff | |
2016-11-02 10:53 | malsasua | Resolution time | => 1479855600 |
2016-11-03 21:00 | aferraz | Assigned To | Triage Finance => nonofrancisco |
2016-11-10 16:55 | markmm82 | Status | new => scheduled |
2016-11-10 16:55 | markmm82 | Assigned To | nonofrancisco => markmm82 |
2016-11-10 16:57 | markmm82 | Note Added: 0091341 | |
2016-11-22 20:11 | aferraz | Resolution time | 1479855600 => |
2016-11-22 20:11 | aferraz | Severity | major => minor |
2016-11-23 12:21 | hgbot | Checkin | |
2016-11-23 12:21 | hgbot | Note Added: 0091759 | |
2016-11-23 12:21 | hgbot | Status | scheduled => resolved |
2016-11-23 12:21 | hgbot | Resolution | open => fixed |
2016-11-23 12:21 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/pmods/org.openbravo.contract.services/rev/71eb61053d4702c4c4ed9d6ef8a1c7225d5c8c8e [^] |
2016-11-23 12:21 | hgbot | Checkin | |
2016-11-23 12:21 | hgbot | Note Added: 0091760 | |
2016-11-23 12:29 | hgbot | Checkin | |
2016-11-23 12:29 | hgbot | Note Added: 0091761 | |
2016-11-23 12:29 | hgbot | Fixed in SCM revision | http://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:30 | aferraz | Review Assigned To | => aferraz |
2016-11-23 12:30 | aferraz | Note Added: 0091762 | |
2016-11-23 12:30 | aferraz | Status | resolved => closed |
2016-11-24 14:30 | aferraz | Relationship added | related to 0034607 |
2016-11-24 14:31 | aferraz | Assigned To | markmm82 => collazoandy4 |
Notes |
|
|
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
|
|
|
|
(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
---
|
|
|
|
|