Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0011154Openbravo ERP07. Sales managementpublic2009-10-27 10:182009-11-13 12:36
networkb 
harikrishnan 
highmajoralways
closedfixed 
5
2.35MP15 
2.35MP162.35MP16 
Core
No
0011154: Process "Create Lines From" invoices doesn't have into account the Invoice terms set
For example, you have a completed Sales Order with InvoiceTerms= after delivery. Then you make a new Sales Invoice by selecting the order with "create lines from" button.

You should not be able to create an invoice because with this kind of InvoiceTerms you should have the Shipment in the system and you haven't.
1. Sales Management || Transactions || Sales Order: create new record with InvoiceTerms=after delivery. Complete.
2. Sales Management || Transactions || Sales Invoice: create new record for same business partner and "Create Lines From" choosing the sales order.

You are able to create an invoice for a Sales Order "after delivery" without shipment created.
No tags attached.
blocks defect 00111462.35MP16 closed harikrishnan Process "Create Lines From" invoices doesn't have into account the Invoice terms set 
Issue History
2009-10-28 08:58psarobeTypedefect => backport
2009-10-28 08:58psarobefix_in_branch => 2.3x
2009-11-10 08:05harikrishnanAssigned Torafaroda => harikrishnan
2009-11-12 06:28harikrishnanNote Added: 0021749
2009-11-12 06:35hgbotCheckin
2009-11-12 06:35hgbotNote Added: 0021750
2009-11-12 06:35hgbotStatusscheduled => resolved
2009-11-12 06:35hgbotResolutionopen => fixed
2009-11-12 06:35hgbotFixed in SCM revision => http://code.openbravo.com/erp/stable/2.3x/rev/d87ad0107c64a56f40204b1c3d6620889a9fa8e0 [^]
2009-11-13 12:36arunkumarNote Added: 0021811
2009-11-13 12:36arunkumarStatusresolved => closed
2009-11-13 12:36arunkumarFixed in Version => 2.35MP16

Notes
(0021749)
harikrishnan   
2009-11-12 06:28   
Test Case.


1.Create a new sales order (Sales Management || Transactions || Sales Order) with following "After Delivery" Invoice Terms.

  Definition for "After Delivery" Invoice Term :
      In this case the customer will be invoiced for the goods that have been delivered
  Header
      *Invoice Terms=After Delivery.
      *Business Partner = mcgiver
  Line
      *Create two lines for product A & B
        #Product A=5
         #Product B=3
  Complete the sales order.
  Now go to Goods Shipment (Sales Management || Transactions || Goods Shipment || Header) and create a shipment order for the above sales order.
    Create a new Shipment order with following details
    Header
        *Business Partner = mcgiver
    Lines
        *Create a line for product A alone.
    Complete the shipment order.

  Hence according to the definition now the sales order should appear in the drop down of sales invoice "Create Line From" pop up page(Sales Management || Transactions || Sales Invoice || Header ) .

2.Create a new sales order (Sales Management || Transactions || Sales Order) with following "After order delivered" Invoice Terms.

  Definition for "After order delivered" Invoice Term :
      In this case the customer wants to be invoiced after all lines on the sales order have been delivered

  Header
      *Invoice Terms=After order delivered.
      *Business Partner = mcgiver
  Line
      *Create two lines for product A & B
        #Product A=5
        #Product B=3
  Complete the sales order.
  Now go to Goods Shipment (Sales Management || Transactions || Goods Shipment || Header) and create a shipment order for the above sales order.

    Create a new Shipment order with following details
    Header
        *Business Partner = mcgiver
    Using "create lines" button,select the sales order(created above) in the drop down.Select both the products A & B.
    Complete the shipment order.

  Hence according to the definition now the sales order should appear in the drop down of sales invoice "Create Line From" pop up page(Sales Management || Transactions || Sales Invoice || Header ) .

3.Create a new sales order (Sales Management || Transactions || Sales Order) with "Customer Schedule After Delivery" Invoice Terms.

  This invoice term behave similar to above "After order delivered" term.Hence follow the same steps.

4.Create a new sales order (Sales Management || Transactions || Sales Order) with "Do not invoice"
    Definition for "Do not invoice" Invoice Term :
      This invoice term is used for very important customers. The implication is that no invoice gets sent out until the customer give you the go ahead.

  Header
      *Invoice Terms=Do not invoice.
    *Business Partner = mcgiver
  Line
      *Create two lines for product A & B
        #Product A=5
        #Product B=3
  Complete the sales order.
 Now go to Goods Shipment (Sales Management || Transactions || Goods Shipment || Header) and create a shipment order for the above sales order.

    Create a new Shipment order with following details
    Header
        *Business Partner = mcgiver
    Using "create lines" button,select the sales order(created above) in the drop down.Select both the products A & B.
    Complete the shipment order.
  The above sales order should not be displayed in the drop down of sales invoice "Create Line From" pop up page(Sales Management || Transactions || Sales Invoice || Header ) even all the orders are delivered.

5.Create a new sales order (Sales Management || Transactions || Sales Order) with "Immediate" Invoice Terms

  Definition for "Immediate" Invoice Term :
      When the invoice term is Immediate, the invoice for the Sales Order gets created instantly, regardless of whether any shipment of ordered products took place or not.


  Header
      *Invoice Terms=Immediate.
  Line
      *Create two lines for product A & B
        #Product A=5
        #Product B=3
  Complete the sales order.
  Hence with out creating the shipment order we can create invoice for this order.Hence this will appear in the drop down of sales invoice "Create Line From" pop up page(Sales Management || Transactions || Sales Invoice || Header ) .



The functional documentation for the invoice term is available in this link.

http://wiki.openbravo.com/wiki/Functional_Documentation/Sales_Management#Invoice_Terms [^] [^]
(0021750)
hgbot   
2009-11-12 06:35   
Repository: erp/stable/2.3x
Changeset: d87ad0107c64a56f40204b1c3d6620889a9fa8e0
Author: Harikrishnan Raja <harikrishnan.raja <at> openbravo.com>
Date: Thu Nov 12 11:04:16 2009 +0530
URL: http://code.openbravo.com/erp/stable/2.3x/rev/d87ad0107c64a56f40204b1c3d6620889a9fa8e0 [^]

Fixes Issue 11154: Process \"Create Lines From\" invoices doesn't have into account the Invoice terms set.

---
M src/org/openbravo/erpCommon/ad_actionButton/CreateFrom_Invoice_data.xsql
---
(0021811)
arunkumar   
2009-11-13 12:36   
Tested & working fine.