Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0015745Openbravo ERP07. Sales managementpublic2011-01-24 14:012011-03-24 00:00
psarobe 
adrianromero 
immediatemajoralways
closedfixed 
5
3.0RC3 
3.0RC4 
Core
No
0015745: Create invoices from orders. Invoice rule. After delivery not working properly
In this case it creates one invoice per line that has the sales order
Regression
related to defect 00148842.50MP24 closed sivaraman Empty invoice line when creating invoice (Create Invoices from Orders process) 
depends on backport 0015746 closed adrianromero Create invoices from orders. Invoice rule. After delivery not working properly 
Issue History
2011-01-24 14:01psarobeNew Issue
2011-01-24 14:01psarobeAssigned To => adrianromero
2011-01-24 14:01psarobeModules => Core
2011-01-24 14:01psarobeStatusnew => scheduled
2011-01-24 14:01psarobefix_in_branch => pi
2011-01-24 15:46hgbotCheckin
2011-01-24 15:46hgbotNote Added: 0033826
2011-01-24 15:46hgbotStatusscheduled => resolved
2011-01-24 15:46hgbotResolutionopen => fixed
2011-01-24 15:46hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/5e020eacbbecb197b3c001669b51b6a4155f8b53 [^]
2011-01-24 15:54adrianromeroNote Added: 0033831
2011-01-24 16:01adrianromeroNote Added: 0033833
2011-01-24 16:01adrianromeroRelationship addedrelated to 0014884
2011-01-25 11:01psarobeTag Attached: Regression
2011-01-25 11:02psarobeversion => 2.50MP24
2011-01-25 11:02psarobefix_in_branchpi =>
2011-01-26 17:19adrianromeroversion2.50MP24 => 3.0RC3
2011-03-23 10:40psarobeStatusresolved => closed
2011-03-23 10:40psarobeFixed in Version => 3.0RC4
2011-03-24 00:00anonymoussf_bug_id0 => 3238863

Notes
(0033826)
hgbot   
2011-01-24 15:46   
Repository: erp/devel/pi
Changeset: 5e020eacbbecb197b3c001669b51b6a4155f8b53
Author: Adrián Romero <adrianromero <at> openbravo.com>
Date: Mon Jan 24 15:45:25 2011 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/5e020eacbbecb197b3c001669b51b6a4155f8b53 [^]

Fixes issue 0015745: Create invoices from orders. Invoice rule. After delivery not working properly
It has been restored the line removed

---
M src-db/database/model/functions/C_INVOICE_CREATE.xml
---
(0033831)
adrianromero   
2011-01-24 15:54   
This issue is a regression caused by the changeset: https://code.openbravo.com/erp/devel/pi/rev/cd3774744f01 [^]

In the mentioned changes has been removed more code than needed this is why it has been needed to restore the line incorrectly removed
(0033833)
adrianromero   
2011-01-24 16:01   
* Testing the issue

Follow the steps to reproduce:
- Add a new discount record to an existing customer
- Create and process a new Sales order for this customer with the following details: Transaction Document Warehouse Order, Invoice Terms: After Delivery.
- Verify that the discount has been properly applied
- Go to Create Invoices from Orders, select the order just created and process.
- Verify that only one invoice is created

Test also that the related issue 14884 continues working as expected.

Test also general cases in the process Create Invoices from orders.

Test also the process Generate Invoices with Orders generated the same way

* Other areas affected

This modification also affects the process Generate Invoices.