Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0011153Openbravo ERP07. Sales managementpublic2009-10-27 10:182009-11-16 08:10
networkb 
harikrishnan 
highmajoralways
closedfixed 
5
2.35MP15 
2.35MP162.40MP11 
Core
No
0011153: 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.40
2009-11-10 08:05harikrishnanAssigned Torafaroda => harikrishnan
2009-11-12 06:28harikrishnanNote Added: 0021748
2009-11-13 05:03hgbotCheckin
2009-11-13 05:03hgbotNote Added: 0021795
2009-11-13 05:03hgbotStatusscheduled => resolved
2009-11-13 05:03hgbotResolutionopen => fixed
2009-11-13 05:03hgbotFixed in SCM revision => http://code.openbravo.com/erp/stable/2.40/rev/fe93ebe83efbd870cf34d2e6c77c48e1255ec59e [^]
2009-11-16 08:10arunkumarNote Added: 0021829
2009-11-16 08:10arunkumarStatusresolved => closed
2009-11-16 08:10arunkumarFixed in Version => 2.40MP11

Notes
(0021748)
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 [^] [^]
(0021795)
hgbot   
2009-11-13 05:03   
Repository: erp/stable/2.40
Changeset: fe93ebe83efbd870cf34d2e6c77c48e1255ec59e
Author: Harikrishnan Raja <harikrishnan.raja <at> openbravo.com>
Date: Fri Nov 13 09:32:21 2009 +0530
URL: http://code.openbravo.com/erp/stable/2.40/rev/fe93ebe83efbd870cf34d2e6c77c48e1255ec59e [^]

Fixes Issue 11153: 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
---
(0021829)
arunkumar   
2009-11-16 08:10   
Tested & Working fine