Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0006869Openbravo ERP07. Sales managementpublic2009-01-13 13:172009-01-25 22:14
networkb 
gorkaion 
immediatemajoralways
closedfixed 
5
2.40 
2.40MP2 
Core
No
0006869: Generate invoices process doesn't work for orders with "Customer Schedule After Delivery" invoice terms
The automatic invoicing process (Sales Management > Transactions > Generate Invoices)
does not invoice the orders that have been shipped in a single goods shipment.
1. Sales Management||Transactions||Sales Order --> create 2 orders with
    transaction document= standard order
    order date y scheduled delivery date= 13/12/2008
    bp: sailor int
    invoice terms: customer schedule after delivery
   and at least one line and COMPLETE. (No. 50041 y 50042 in tecnicia14)
2. Sales Management||Transactions||Goods Shipment--> create 1 shipment with
    bp: sailor int
    create lines from the previous orders and COMPLETE. (No. 500026)
3. Run Generate Invoices Process choosing just organization.

It creates 0 invoices.

The error is in the C_INVOICE_CREATE process in the SELECT of line 602. The JOIN
"sh.C_Order_ID=o.C_Order_ID" should be replaced by "ol.C_Order_ID=o.C_Order_ID" as in
the case stated before, the field C_ORDER_ID in M_INOUT is null as there are lines
from different orders.
comsup_sprint4
blocks defect 0006866 closed gorkaion Generate invoices process doesn't work for orders with "Customer Schedule After Delivery" invoice terms 
Issue History
2009-01-13 16:33psarobeTypedefect => backport
2009-01-13 16:33psarobefix_in_branch => 2.40
2009-01-14 11:24rafarodaAssigned Torafaroda => gorkaion
2009-01-14 19:28gorkaionStatusscheduled => resolved
2009-01-14 19:28gorkaionFixed in Version => 2.40
2009-01-14 19:28gorkaionsvn_revision => 11895
2009-01-14 19:28gorkaionResolutionopen => fixed
2009-01-23 11:33gorkaionTag Attached: comsup_sprint4
2009-01-25 22:14psarobeStatusresolved => closed

There are no notes attached to this issue.