Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0008955Openbravo ERP07. Sales managementpublic2009-05-07 16:442012-09-10 16:36
jtarbal 
naiaramartinez 
normalminoralways
scheduledopen 
5
2.50 
 
Core
No
0008955: Several errors in "Create Invoices from Orders" form
When using the "Create Invoices from Orders" form, we have detected the following errors:
1.- The Sales Invoice that is generated has a line that do not contain any product nor description. This blank line should not be added to the Invoice
2.- The Sales Invoice lines are only linked to the Sales Order lines, but not to the Goods Shipment line. However, when navigating to a Sales Order line, this is linked to both the Sales Invoice and the Goods Shipment lines.
1) Create a new Sales Order with Transaction Document = Warehouse Order and Invoice Terms = Immediate
2) Create a new line
3) Complete this Sale Order: a shipment is created.
4) Go to Create Invoices from Orders or Generate Invoices processes and select the previous order.
Go to the invoice created and notice that the line is linked only to the sale order line and not to the shipment line.
The fix is more complex than initially expected.

This scenario is an example of the complexity involved.

Create a new Product.

Create a new Physical Inventory for a Warehouse.
Create 3 lines for this Physical Inventory. All of them for the same product, with Quantity on hand 5. And each one of them for a different Storage Bin.
Process the Physical Inventory.

Now the previous Warehouse has a total available stock of the new Product of 15 units, but it has it split in 3 different Storage Bins.

Create the Order with Transaction Document = Warehouse Order and Invoice Terms = Immediate
Create a new line
Complete this Sale Order: a shipment is created.

The Order has one order line, but the Shipment has 3 shipment lines.
When creating the Invoice, it must have 3 Invoice lines, each one related to a different Shipment Line.
VMA-Reviewed
related to feature request 0005604 acknowledged rmorley Avoiding additional lines in Create invoice from Orders for warehouse orders 
related to defect 0008780 closed rajagopal Create invoices from order: Creates blank line with no description (PostgreSQL) 
Issue History
2009-05-07 16:44jtarbalNew Issue
2009-05-07 16:44jtarbalAssigned To => rafaroda
2009-05-07 23:13psarobeStatusnew => scheduled
2009-05-07 23:13psarobefix_in_branch => pi
2009-05-21 18:04RenateNieuwkoopNote Added: 0016561
2009-05-28 10:12rafarodaRelationship addedrelated to 0008780
2009-05-28 10:12rafarodaRelationship addedrelated to 0005604
2009-05-28 12:43rafarodaNote Added: 0016722
2009-06-01 12:05rafarodaStatusscheduled => acknowledged
2009-06-01 12:05rafarodafix_in_branchpi =>
2009-06-01 12:05rafarodaProposed Solution updated
2009-06-01 12:07rafarodaNote Added: 0016803
2009-06-01 12:45rafarodaNote Added: 0016806
2009-06-01 12:57rafarodaNote Added: 0016807
2009-06-01 13:00rafarodaNote Added: 0016809
2010-02-11 18:05rafarodaAssigned Torafaroda => adrianromero
2011-06-03 11:00dalsasuaAssigned Toadrianromero => dalsasua
2011-07-20 18:11dalsasuaAssigned Todalsasua => jonalegriaesarte
2012-02-15 19:05iciordiaAssigned Tojonalegriaesarte => vmromanos
2012-02-16 14:11vmromanosTag Attached: VMA-Reviewed
2012-05-10 12:13gorka_gilAssigned Tovmromanos => mirurita
2012-05-11 13:40naiaramartinezNote Added: 0048576
2012-05-11 13:43naiaramartinezAssigned Tomirurita => naiaramartinez
2012-05-11 13:43naiaramartinezStatusacknowledged => scheduled
2012-05-11 13:43naiaramartinezfix_in_branch => pi
2012-09-10 16:36dmiguelezNote Added: 0051969
2012-09-10 16:36dmiguelezTypedefect => design defect
2012-09-10 16:36dmiguelezfix_in_branchpi =>
2012-09-10 16:36dmiguelezProposed Solution updated

Notes
(0016561)
RenateNieuwkoop   
2009-05-21 18:04   
just fyi there is also RFE 5604 about blank lines in invoices that I logged a while ago, so maybe it can be combined with the efforts for point 1 on this bug
(0016722)
rafaroda   
2009-05-28 12:43   
Point 1 and FR 0005604 have been resolved fixing 0008780

Point 2 remains un-fixed.
(0016803)
rafaroda   
2009-06-01 12:07   
Happens also in Openbravo ERP 2.40 branch.
(0016806)
rafaroda   
2009-06-01 12:45   
If Invoice Terms = After Delivery, shipment lines are correctly linked to invoice lines.
(0016807)
rafaroda   
2009-06-01 12:57   
If in the Sales Order, Print Discount = Y, the line with blank product and 0 amount is created.
(0016809)
rafaroda   
2009-06-01 13:00   
Point 1 is re-open and will be addressed in feature request 0005604
(0048576)
naiaramartinez   
2012-05-11 13:40   
Test Plan:
  1) Create a new Sales Order with Transaction Document = Warehouse Order and Invoice Terms = Immediate
  2) Create a new line
  3) Complete this Sale Order: a shipment is created.
  4) Go to Create Invoices from Orders or Generate Invoices processes and select the previous order.

Go to the created invoice and notice that the line is linked to the sales order line and to the shipment line.

This is only happening when the doctype of the sales order's line is 'Warehouse order'.
(0051969)
dmiguelez   
2012-09-10 16:36   
The fix is more complex that initially expected.