Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0016938Openbravo ERP03. Procurement managementpublic2011-04-15 15:072011-05-02 12:07
AinhoaPagola 
AinhoaPagola 
urgentmajorhave not tried
closedfixed 
20Ubuntu 8.4
2.50MP28 
2.50MP30 
Core
No
0016938: When discounts are added to a purchase invoice the line number is not correct
If a purchase invoice is created with an automatic discount, the line number assigned to the discount line is not correct. Instead of max + 10, max + 20 is done.
Go to Master Data Management || Business Partner || Business Partner
Select one.
Go to discount and create a new record selecting a discount for line 10.
Go to purchase invoice.
Create a new one for that business partner.
Insert a new line for product hammer. It will be line 10.
Complete the invoice.
Check that a new discount line is created. The line number is 30 but should be 20.
No tags attached.
blocks defect 00168302.50MP30 closed AinhoaPagola When discounts are added to a purchase invoice the line number is not correct 
Issue History
2011-04-29 10:34AinhoaPagolaTypedefect => backport
2011-04-29 10:34AinhoaPagolafix_in_branch => 2.50
2011-04-29 13:34hgbotCheckin
2011-04-29 13:34hgbotNote Added: 0036220
2011-04-29 13:34hgbotStatusscheduled => resolved
2011-04-29 13:34hgbotResolutionopen => fixed
2011-04-29 13:34hgbotFixed in SCM revision => http://code.openbravo.com/erp/stable/2.50/rev/9819d4fc58e97459e3b4493fb5c10bc61f1469e8 [^]
2011-05-02 12:07xabiermerinoNote Added: 0036257
2011-05-02 12:07xabiermerinoStatusresolved => closed

Notes
(0036220)
hgbot   
2011-04-29 13:34   
Repository: erp/stable/2.50
Changeset: 9819d4fc58e97459e3b4493fb5c10bc61f1469e8
Author: Ainhoa Pagola <ainhoa.pagola <at> openbravo.com>
Date: Fri Apr 29 12:18:44 2011 +0200
URL: http://code.openbravo.com/erp/stable/2.50/rev/9819d4fc58e97459e3b4493fb5c10bc61f1469e8 [^]

Fixes issue 16938. Invoice Line fixed when there are discounts

---
M src-db/database/model/functions/C_INVOICE_POST.xml
---
(0036257)
xabiermerino   
2011-05-02 12:07   
verified