Openbravo Issue Tracking System - Openbravo ERP | ||||||||||||||||||||||||||
View Issue Details | ||||||||||||||||||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | |||||||||||||||||||||
0014884 | Openbravo ERP | 07. Sales management | public | 2010-10-15 16:53 | 2010-12-09 16:07 | |||||||||||||||||||||
Reporter | networkb | |||||||||||||||||||||||||
Assigned To | sivaraman | |||||||||||||||||||||||||
Priority | low | Severity | minor | Reproducibility | always | |||||||||||||||||||||
Status | closed | Resolution | fixed | |||||||||||||||||||||||
Platform | OS | 5 | OS Version | |||||||||||||||||||||||
Product Version | 2.50 | |||||||||||||||||||||||||
Target Version | 2.50MP24 | Fixed in Version | ||||||||||||||||||||||||
Merge Request Status | ||||||||||||||||||||||||||
Review Assigned To | ||||||||||||||||||||||||||
OBNetwork customer | OBPS | |||||||||||||||||||||||||
Web browser | ||||||||||||||||||||||||||
Modules | Core | |||||||||||||||||||||||||
Support ticket | ||||||||||||||||||||||||||
Regression level | ||||||||||||||||||||||||||
Regression date | ||||||||||||||||||||||||||
Regression introduced in release | ||||||||||||||||||||||||||
Regression introduced by commit | ||||||||||||||||||||||||||
Triggers an Emergency Pack | No | |||||||||||||||||||||||||
Summary | 0014884: Empty invoice line when creating invoice (Create Invoices from Orders process) | |||||||||||||||||||||||||
Description | An empty line (no description, quantity and price = 0) is generated when creating invoices in the 'Create Invoices from Orders' process if the Invoice Terms is set to 'Customer Schedule after Delivery'. This is not related to the 8070 bug. | |||||||||||||||||||||||||
Steps To Reproduce | 1. Create an order for a customer that has an invoice term set to 'Customer Schedule after Delivery' 2. Post the document 3. Create the shipment 4. Generate the invoice ('Create Invoices from Orders' process) In the created invoice, there is an empty line in the invoice (the first line). If the invoice regroups more than one order, there is an empty line at the beginning of each invoiced order. It is the reference to the shipment that is not created properly. | |||||||||||||||||||||||||
Proposed Solution | The problem is in the c_invoice_create(IN p_pinstance_id character varying, OUT p_invoice_id character varying, IN p_order_id character varying) function. At the line 964 (v_Reference:=v_Reference || ': ' || Cur_InvoiceSchedule.Description;) If the description of the shipment is empty (NULL), v_Reference is also set to NULL (reminder : something concat to null = null!). There should be a test before the concatenation, checking if the description of the shipment header is not null (IF (Cur_InvoiceSchedule.Description IS NOT NULL) THEN). Like that, it is only concatenated if the description is not null. As a workaround, when the order is created, a description is entered on the header, it is automatically copied on the shipment (if the 'Create Shipments from Orders' process is used), so it is not null. Or one can manually enter the description on the shipment. | |||||||||||||||||||||||||
Additional Information | ||||||||||||||||||||||||||
Tags | No tags attached. | |||||||||||||||||||||||||
Relationships |
| |||||||||||||||||||||||||
Attached Files | ||||||||||||||||||||||||||
Issue History | ||||||||||||||||||||||||||
Date Modified | Username | Field | Change | |||||||||||||||||||||||
2010-10-15 16:53 | networkb | New Issue | ||||||||||||||||||||||||
2010-10-15 16:53 | networkb | Assigned To | => adrianromero | |||||||||||||||||||||||
2010-10-15 16:53 | networkb | OBNetwork customer | => Yes | |||||||||||||||||||||||
2010-10-15 16:53 | networkb | Issue generated from | 0011310 | |||||||||||||||||||||||
2010-10-18 12:41 | adrianromero | Relationship added | has duplicate 0011310 | |||||||||||||||||||||||
2010-10-18 13:05 | psarobe | Priority | normal => low | |||||||||||||||||||||||
2010-10-18 13:05 | psarobe | Severity | major => minor | |||||||||||||||||||||||
2010-10-19 14:10 | neil_smith | Issue Monitored: neil_smith | ||||||||||||||||||||||||
2010-11-18 11:18 | sivaraman | Assigned To | adrianromero => sivaraman | |||||||||||||||||||||||
2010-11-18 11:23 | hgbot | Checkin | ||||||||||||||||||||||||
2010-11-18 11:23 | hgbot | Note Added: 0032697 | ||||||||||||||||||||||||
2010-11-18 11:23 | hgbot | Status | new => resolved | |||||||||||||||||||||||
2010-11-18 11:23 | hgbot | Resolution | open => fixed | |||||||||||||||||||||||
2010-11-18 11:23 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/cd3774744f01b3cf50ef9e4f6b6804e648949be9 [^] | |||||||||||||||||||||||
2010-11-18 11:26 | sivaraman | Note Added: 0032698 | ||||||||||||||||||||||||
2010-11-19 16:50 | hudsonbot | Checkin | ||||||||||||||||||||||||
2010-11-19 16:50 | hudsonbot | Note Added: 0032746 | ||||||||||||||||||||||||
2010-11-21 07:45 | sureshbabu | Note Added: 0032768 | ||||||||||||||||||||||||
2010-11-21 07:45 | sureshbabu | Status | resolved => closed | |||||||||||||||||||||||
2010-12-09 16:07 | anonymous | sf_bug_id | 0 => 3133516 | |||||||||||||||||||||||
2011-01-24 16:01 | adrianromero | Relationship added | related to 0015746 | |||||||||||||||||||||||
2011-01-24 16:01 | adrianromero | Relationship added | related to 0015745 |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|