Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0011383Openbravo ERP07. Sales managementpublic2009-11-17 07:522017-03-23 14:19
arunkumar 
luisrs8608 
urgentmajoralways
scheduledopen 
5
pi 
 
Core
No
0011383: Sales order - Invoice Terms "After Delivery" - Able to create invoice for goods not shipped
Creating a sales order with two lines. Each line has different product. Create goods shipment for only one product. But able to complete the sales invoice for both the products even though for one product there is no shipment available.
Login as Openbravo/openbravo with "Openbravo Admin" role.
Go to Sales Management || Transactions || Sales Order || Header
Create a new sales order with business partner as "Mcgiver Supplies" and select the invoice terms as "After Delivery".
Save the header and go to lines.
Create two lines.First line with product openbravo badges (invoiced quantity : 5) and second line with product hammer (invoiced quantity : 5)
Come back to header and complete the document.

Go to Sales Management || Transactions || Goods Shipment || Header
Create a new record and select the business partner "Mcgiver Supplies".
Click "Create Lines From".A popup window will open.
There select the warehouse and select the sales order which you have created recently.
Two lines will appear.One is openbravo badges and another one is hammer.
Check the checkbox of openbravo badges and click ok.
"Process completed successfully" message will appear.
Go to lines and confirm there is only one line with product openbravo badges.
Come back to header and complete the document.

Go to Sales Management || Transactions || Sales Invoice || Header
Create a new record. Select the Transaction Document as "AR Invoice" and business partner "Mcgiver Supplies".
Click "Create Lines From"
A popup window will be opened.In the order combo box select the order which you have created recently.
Two lines will appear. Check the two lines and click ok."Process completed successfully" message will appear.
Go to lines and verify there are two lines.One with product openbravo badges and another with hammer.
Go back to Sales invoice and complete the document.

You will be able to complete the sales invoice document.

 
As per the functional document given in wiki link for sales invoice we should not be able to complete the sales invoice.

After delivery

In this case the customer will be invoiced for the goods that have been delivered. For example, if the customer has ordered 10 units of product A and 7 units were delivered, an invoice for 7 units of product A will be created and sent to the customer. The invoice for the remaining 3 units will be created and sent, after shipment takes place of those 3 units.

In the above scenario we have done goods shipment only for openbravo badges product not for hammer.So we should be able to complete the invoice only for the product openbravo badges for which the shipment is done.But existing functionality allows to invoice the product hammer for which the shipment is not done.


OB3-Reviewed, VMA-Reviewed
related to defect 0036870 closed AtulOpenbravo 'Customer Schedule After Delivery' invoice terms excludes services while 'After delivery' doesn't. 
Issue History
2009-11-17 07:52arunkumarNew Issue
2009-11-17 07:52arunkumarAssigned To => rafaroda
2010-02-11 18:16rafarodaAssigned Torafaroda => adrianromero
2011-06-03 11:00dalsasuaAssigned Toadrianromero => dalsasua
2011-07-20 18:11dalsasuaAssigned Todalsasua => jonalegriaesarte
2011-09-15 22:15psarobeStatusnew => scheduled
2011-09-15 22:15psarobeTarget Version => 3.0MP5
2011-10-29 20:50psarobePrioritynormal => urgent
2011-10-29 20:50psarobeTag Attached: contrib
2011-10-29 20:50psarobeTag Detached: contrib
2011-10-29 20:50psarobeTag Attached: OB3-Reviewed
2011-10-31 11:54jonalegriaesarteTarget Version3.0MP5 => 3.0MP6
2011-11-25 17:25jonalegriaesarteNote Added: 0043355
2011-11-25 17:25jonalegriaesarteTarget Version3.0MP6 => 3.0MP7
2011-12-30 10:23jonalegriaesarteTarget Version3.0MP7 => 3.0MP8
2012-01-25 09:48jonalegriaesarteNote Added: 0044534
2012-01-25 09:48jonalegriaesarteTarget Version3.0MP8 => 3.0MP9
2012-02-15 13:14jonalegriaesarteTarget Version3.0MP9 =>
2012-02-15 19:03iciordiaAssigned Tojonalegriaesarte => vmromanos
2012-02-17 09:12vmromanosTag Attached: VMA-Reviewed
2012-05-10 12:13gorka_gilAssigned Tovmromanos => mirurita
2012-05-17 16:47naiaramartinezNote Added: 0048740
2012-06-11 15:29naiaramartinezAssigned Tomirurita => naiaramartinez
2013-05-14 11:27dmiguelezTriggers an Emergency Pack => No
2013-05-14 11:27dmiguelezTypedefect => design defect
2017-03-09 11:31ngarciaAssigned Tonaiaramartinez => Triage Finance
2017-03-09 11:34ngarciaIssue Monitored: ngarcia
2017-03-09 11:34ngarciaIssue Monitored: networkb
2017-03-09 11:40ngarciaResolution time => 1490824800
2017-03-09 11:40ngarciaTypedesign defect => defect
2017-03-09 11:44ngarciaNote Added: 0094867
2017-03-09 11:44ngarciaReproducibilityhave not tried => always
2017-03-09 11:47ngarciaNote Edited: 0094867bug_revision_view_page.php?bugnote_id=0094867#r14758
2017-03-09 11:48ngarciaNote Edited: 0094867bug_revision_view_page.php?bugnote_id=0094867#r14759
2017-03-12 17:22markmm82Assigned ToTriage Finance => luisrs8608
2017-03-21 15:40luisrs8608Note Added: 0095479
2017-03-23 14:17ngarciaResolution time1490824800 =>
2017-03-23 14:17ngarciaTypedefect => design defect
2017-03-23 14:19ngarciaNote Added: 0095530
2017-03-23 14:22aferrazNote Edited: 0095530bug_revision_view_page.php?bugnote_id=0095530#r14877
2017-09-19 13:39aferrazRelationship addedrelated to 0036870

Notes
(0043355)
jonalegriaesarte   
2011-11-25 17:25   
Targer version changed to MP7 due to other priorities
(0044534)
jonalegriaesarte   
2012-01-25 09:48   
Targert version changed to MP7 due to other priorities
(0048740)
naiaramartinez   
2012-05-17 16:47   
Test Plan:
  Go to Sales Order window and create a new record.Fill:
     invoice terms as "After Delivery"
  Go to lines tab and create new lines.
  Book the order.

  Go to good shipment window and create a new record. Fill:
      business partner: the same business partner than in newly created sales order
   Press 'Create lines button'. In the popup select the warehouse and select the sales order that you created recently. Two lines will appear. Select only one and press 'OK' button. Complete the shipment.

  Go to Sales invoice window and create a new record. Fill:
     business partner: the same business partner than in newly created sales order and goods shipment.
  Press 'Create Lines From'. In the order combobox select the order that you created recently.
   Notice that you only see the line that you completed in the good shipment.
(0094867)
ngarcia   
2017-03-09 11:44   
(edited on: 2017-03-09 11:48)
Create Invoices From Orders and Generate Invoices processes only include the already shipped lines and quantities.

Create Lines From process allows to enter lines pending to be shipped:
- For partially shipped ones invoiced quantity is updated to the shipped quantity and shows a warning if you modify it:

"Invoiced Quantity should not be higher than Delivered Quantity when Invoice Terms are After Delivery"

- For not shipped lines the invoiced quantity is not updated to 0

(0095479)
luisrs8608   
2017-03-21 15:40   
Test Plan:
Login as Openbravo/openbravo with "Openbravo Admin" role.

1. Go to Sales Management || Transactions || Sales Order || Header
2. Create a new sales order with business partner as "Mcgiver Supplies" and select the invoice terms as "After Delivery".
3. Save the header and go to lines.
3. Create two lines. First line with product openbravo badges (invoiced quantity : 5) and second line with product hammer (invoiced quantity : 5)
4. Come back to header and complete the document.

5. Go to Sales Management || Transactions || Goods Shipment || Header
6. Create a new record and select the business partner "Mcgiver Supplies".
7. Click "Create Lines From". A popup window will open.
8. There select the warehouse and select the sales order which you have created recently.
Two lines will appear. One is openbravo badges and another one is hammer.
9. Check the checkbox of openbravo badges and click ok.
"Process completed successfully" message will appear.
10. Go to lines and confirm there is only one line with product openbravo badges.
11. Come back to header and complete the document.

12. Go to Sales Management || Transactions || Sales Invoice || Header
13. Create a new record. Select the Transaction Document as "AR Invoice" and business partner "Mcgiver Supplies".
14. Click "Create Lines From"
15. A popup window will be opened. In the order combo box select the order which you have created recently.
16. Two lines will appear. Check the two lines and click ok. "Process completed successfully" message will appear.
17. Go to lines and verify there are two lines.One with product openbravo badges and another with hammer.
18. Go back to Sales invoice and try complete the document a Error message is shown: "You can not complete a invoice for Sales Order whit invoce terms After Delivery whith out shipment".
(0095530)
ngarcia   
2017-03-23 14:19   
(edited on: 2017-03-23 14:22)
Customer should use goods shipment combo box in the Create Lines From process in order to invoice orders with Invoice terms After Delivery.

One solution could be to show only orders with Immediate Invoice terms in the sales order combo box inside the Create Lines From process.