Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0008780Openbravo ERP07. Sales managementpublic2009-04-27 16:052009-05-29 00:00
AinhoaPagola 
rajagopal 
normaltrivialalways
closedfixed 
20Ubuntu 8.4
pi 
pi 
Core
No
0008780: Create invoices from order: Creates blank line with no description (PostgreSQL)
Generate invoice process, which created invoices from orders, inserts a blank line, apart from the lines of the order.
In Oracle, this line is only for orders that have a receipt, and the document number of that receipt is copied in the description of the line.
That is, for instance, for orders with invoice rule immediate, in Oracle, no extra line is created. For orders with invoice rule "after order delivered", if the shipment is done, the invoice contains a blank line with the delivery number.
In PostgresSQL, a blank line is always created with no description, nor anything on it. Line number = 0.
* Create a new sales order.
* Invoice term = immediate.
* Run Create Invoice from orders (select the created order)
* Go to the invoice a check that there is a line 0 with nothing on it.
-----
* Create a new sales order.
* Invoice term "after order delivered"
* Create a shipment for the order
* Run Create Invoice from orders (select the created order)
* Go to the invoice a check that there is a line 0 with nothing on it.
In c_incoive_create, when the description is created there is probably some where a concatenation with NULL, which converts the whole string to null in PostgreSQL.
No tags attached.
related to defect 0008207 closed rafaroda 250 Alpha r11 Training: Sales Invoice has a line 0 
related to design defect 0008955 scheduled naiaramartinez Several errors in "Create Invoices from Orders" form 
related to feature request 0005604 acknowledged rmorley Avoiding additional lines in Create invoice from Orders for warehouse orders 
Issue History
2009-04-27 16:05AinhoaPagolaNew Issue
2009-04-27 16:05AinhoaPagolaAssigned To => rafaroda
2009-04-27 16:05AinhoaPagolaRegression testing => No
2009-04-27 16:08AinhoaPagolaSummaryCreate invoices from order: invoice process: Creates blank line with no description (PostgreSQL) => Create invoices from order: Creates blank line with no description (PostgreSQL)
2009-04-27 16:08AinhoaPagolaProposed Solution updated
2009-04-27 16:08AinhoaPagolaSteps to Reproduce Updated
2009-04-27 16:14rafarodaAssigned Torafaroda => sathiyan
2009-04-27 16:14rafarodaStatusnew => scheduled
2009-04-27 16:14rafarodaSteps to Reproduce Updated
2009-04-28 08:11sathiyanAssigned Tosathiyan => rajagopal
2009-05-06 10:12hgbotCheckin
2009-05-06 10:12hgbotNote Added: 0016082
2009-05-06 10:12hgbotStatusscheduled => resolved
2009-05-06 10:12hgbotResolutionopen => fixed
2009-05-06 10:12hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/3fdf05db7f2eb8eaa800de5eea12770f7d219275 [^]
2009-05-21 18:08RenateNieuwkoopNote Added: 0016562
2009-05-28 10:11rafarodaRelationship addedrelated to 0008207
2009-05-28 10:12rafarodaRelationship addedrelated to 0008955
2009-05-28 10:12rafarodaRelationship addedrelated to 0005604
2009-05-28 10:31sureshbabuStatusresolved => closed
2009-05-28 10:31sureshbabuNote Added: 0016704
2009-05-28 10:31sureshbabuFixed in Version => pi
2009-05-28 12:47rafarodaNote Added: 0016723
2009-05-29 00:00anonymoussf_bug_id0 => 2798132
2009-06-01 12:58rafarodaNote Deleted: 0016723

Notes
(0016082)
hgbot   
2009-05-06 10:12   
Repository: erp/devel/pi
Changeset: 3fdf05db7f2eb8eaa800de5eea12770f7d219275
Author: Rajagopal Baskaran <rajagopal.baskaran <at> openbravo.com>
Date: Wed May 06 13:38:55 2009 +0530
URL: http://code.openbravo.com/erp/devel/pi/rev/3fdf05db7f2eb8eaa800de5eea12770f7d219275 [^]

Fixes bug 8780: Create invoices from order: Creates blank line with no description (PostgreSQL) has been fixed.

---
M src-db/database/model/functions/C_INVOICE_CREATE.xml
---
(0016562)
RenateNieuwkoop   
2009-05-21 18:08   
Does this resolve point 1 on bug 8955 also? I don't think that bug was just for PostgreSQL though.
(0016704)
sureshbabu   
2009-05-28 10:31   
Tested working fine