Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0016830Openbravo ERP03. Procurement managementpublic2011-04-15 15:072011-05-12 13:28
AinhoaPagola 
AinhoaPagola 
urgentmajorhave not tried
closedfixed 
20Ubuntu 8.4
2.50MP28 
2.50MP30 
Core
No
0016830: 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.
depends on backport 00169382.50MP30 closed AinhoaPagola When discounts are added to a purchase invoice the line number is not correct 
related to defect 00159822.50MP28 closed AinhoaPagola Wrong number in the line generated in an order with discount 
Issue History
2011-04-15 15:07AinhoaPagolaNew Issue
2011-04-15 15:07AinhoaPagolaAssigned To => adrianromero
2011-04-15 15:07AinhoaPagolaModules => Core
2011-04-26 10:30jonalegriaesarteTarget Version => 2.50MP30
2011-04-26 16:17dalsasuaIssue Monitored: networkb
2011-04-28 19:37AinhoaPagolaRelationship addedblocks 0015982
2011-04-29 08:48AinhoaPagolaRelationship deletedblocks 0015982
2011-04-29 08:48AinhoaPagolaRelationship addedrelated to 0015982
2011-04-29 10:33AinhoaPagolaAssigned Toadrianromero => AinhoaPagola
2011-04-29 10:34AinhoaPagolaStatusnew => scheduled
2011-04-29 10:34AinhoaPagolafix_in_branch => pi
2011-04-29 12:31hgbotCheckin
2011-04-29 12:31hgbotNote Added: 0036208
2011-04-29 12:31hgbotStatusscheduled => resolved
2011-04-29 12:31hgbotResolutionopen => fixed
2011-04-29 12:31hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/97f6f7605ebbc00d55f023c24efd6c72dd2c226d [^]
2011-05-02 11:10xabiermerinoNote Added: 0036246
2011-05-02 11:10xabiermerinoStatusresolved => closed
2011-05-03 00:02anonymoussf_bug_id0 => 3296515
2011-05-12 13:28hudsonbotCheckin
2011-05-12 13:28hudsonbotNote Added: 0036788

Notes
(0036208)
hgbot   
2011-04-29 12:31   
Repository: erp/devel/pi
Changeset: 97f6f7605ebbc00d55f023c24efd6c72dd2c226d
Author: Ainhoa Pagola <ainhoa.pagola <at> openbravo.com>
Date: Fri Apr 29 12:16:20 2011 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/97f6f7605ebbc00d55f023c24efd6c72dd2c226d [^]

Fixes issue 16830. Invoice Line fixes when there are discounts

---
M src-db/database/model/functions/C_INVOICE_POST.xml
---
(0036246)
xabiermerino   
2011-05-02 11:10   
verified
(0036788)
hudsonbot   
2011-05-12 13:28   
A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/c40e579fcd38 [^]

Maturity status: Test