Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0011146
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Openbravo ERP] 07. Sales managementmajoralways2009-10-27 10:182009-11-14 00:00
ReporternetworkbView Statuspublic 
Assigned Toharikrishnan 
PriorityhighResolutionfixedFixed in Version2.50MP9
StatusclosedFix in branchpiFixed in SCM revision7b6d1c51cb38
ProjectionnoneETAnoneTarget Version2.35MP16
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product Version2.35MP15SCM revision 
Review Assigned To
Web browser
ModulesCore
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0011146: Process "Create Lines From" invoices doesn't have into account the Invoice terms set

DescriptionFor 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.
Steps To Reproduce1. 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.
TagsNo tags attached.
Attached Filespng file icon Order.png [^] (89,846 bytes) 2009-10-27 14:45


png file icon CreateLinesFromInvoice.png [^] (23,620 bytes) 2009-10-27 14:45

- Relationships Relation Graph ] Dependency Graph ]
related to defect 0010063 closedharikrishnan Do not invoice invoice term are not resepected 
depends on backport 00111532.35MP16 closedharikrishnan Process "Create Lines From" invoices doesn't have into account the Invoice terms set 
depends on backport 00111542.35MP16 closedharikrishnan Process "Create Lines From" invoices doesn't have into account the Invoice terms set 

-  Notes
(0021428)
rafaroda (developer)
2009-10-27 14:39

Not able to reproduce this issue, please see attached screenshots.

Can you please provide further information?

Thanks.
(0021429)
networkb (developer)
2009-10-27 17:31

Hi,

That is the problem: that you can choose the order (set as invoiced after delivery) when you have not shipment created.

If "Create Lines from" would have invoice terms into consideration you should not be able to create an Invoice from this order without having a shipment.

Regards
(0021433)
rafaroda (developer)
2009-10-28 06:17

Please notice that the document number of the order of Order.png is not the same that document number in the combobox of CreateLinesFrom.png.

Order created and completed with invoice terms = after delivery does not appear in that combobox if shipment has not been created.
(0021434)
psarobe (manager)
2009-10-28 08:57

Hi,

I got the point. It seems that if it is "After delivery" Rafa is right and is working perfectly.

The problem is when the invoice terms is "Customer schedule after delivery" that is not taking into account this condition.
My concern is that maybe is not taking into account the rest of the invoice terms:
1. "After order delivery": Only when the whole sales order is completely delivered it will be in the drop down list
2. "not invoice": In this case the sales order shouldn't be present in the combo box
3. "Customer schedule after delivery": The same logic as After delivery
(0021747)
harikrishnan (reporter)
2009-11-12 06:27

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 [^]
(0021751)
hgbot (developer)
2009-11-12 06:40

Repository: erp/devel/pi
Changeset: 7b6d1c51cb38ad723f4e4cd68f8eb2ca58c5e14a
Author: Harikrishnan Raja <harikrishnan.raja <at> openbravo.com>
Date: Thu Nov 12 11:09:44 2009 +0530
URL: http://code.openbravo.com/erp/devel/pi/rev/7b6d1c51cb38ad723f4e4cd68f8eb2ca58c5e14a [^]

Fixes Issue 11146: 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
---
(0021809)
arunkumar (reporter)
2009-11-13 11:54

Tested & Working fine

- Issue History
Date Modified Username Field Change
2009-10-27 10:18 networkb New Issue
2009-10-27 10:18 networkb Assigned To => rafaroda
2009-10-27 14:39 rafaroda Note Added: 0021428
2009-10-27 14:39 rafaroda Status new => feedback
2009-10-27 14:45 rafaroda File Added: Order.png
2009-10-27 14:45 rafaroda File Added: CreateLinesFromInvoice.png
2009-10-27 17:31 networkb Note Added: 0021429
2009-10-27 17:32 networkb Status feedback => new
2009-10-28 06:17 rafaroda Note Added: 0021433
2009-10-28 06:17 rafaroda Status new => feedback
2009-10-28 08:57 psarobe Note Added: 0021434
2009-10-28 08:58 psarobe Priority immediate => high
2009-10-28 08:58 psarobe Status feedback => scheduled
2009-10-28 08:58 psarobe fix_in_branch => pi
2009-11-10 08:05 harikrishnan Assigned To rafaroda => harikrishnan
2009-11-12 06:25 harikrishnan Relationship added related to 0010063
2009-11-12 06:27 harikrishnan Note Added: 0021747
2009-11-12 06:40 hgbot Checkin
2009-11-12 06:40 hgbot Note Added: 0021751
2009-11-12 06:40 hgbot Status scheduled => resolved
2009-11-12 06:40 hgbot Resolution open => fixed
2009-11-12 06:40 hgbot Fixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/7b6d1c51cb38ad723f4e4cd68f8eb2ca58c5e14a [^]
2009-11-13 11:54 arunkumar Note Added: 0021809
2009-11-13 11:54 arunkumar Status resolved => closed
2009-11-13 11:54 arunkumar Fixed in Version => 2.50MP9
2009-11-14 00:00 anonymous sf_bug_id 0 => 2897491


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker