Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0006516Openbravo ERP02. Master data managementpublic2008-12-12 17:462011-02-04 09:15
networkb 
rmorley 
highmajoralways
newopen 
5
2.40 
 
Core
No
0006516: Review Scaled Volume Discount
The discount calculated for an invoice that should apply a created volume discount SCALED is not correct.
1.create a volume discount with scaled=yes
2.create a range of discounts
3.create an invoice for a certain BP with an appropriate quantity of product
4.go to the BP and apply the volume discount
5.check the invoice generated and notice that discount applied is not correct (it does not correspond to the one defined in the volume discount)
No tags attached.
has duplicate defect 0008503 closed vinothbabu Difference in invoice amount generated through volume discount.(in decimal places) 
related to feature request 00022212.40 closed psarobe AT235: \'Volume discount\' (Rappels) incorrect behavior 
Issue History
2008-12-12 17:46maiteElizariNew Issue
2008-12-12 17:46maiteElizariAssigned To => rafaroda
2008-12-12 17:46maiteElizarisf_bug_id0 => 2421862
2008-12-12 18:25networkbReportermaiteElizari => networkb
2008-12-12 18:25networkbPrioritynormal => immediate
2008-12-12 18:25networkbIssue Monitored: networkb
2008-12-13 12:24rafarodaNote Added: 0011288
2008-12-13 12:24rafarodaStatusnew => feedback
2008-12-15 11:24networkbNote Added: 0011363
2008-12-16 17:57rafarodaNote Added: 0011443
2008-12-19 16:16networkbPriorityimmediate => high
2008-12-19 16:16networkbStatusfeedback => new
2008-12-19 16:16networkbTypedefect => feature request
2008-12-19 16:51networkbSummaryIncorrect discount calculated when applying a created volume discount. => Review Scaled Volume Discount
2008-12-19 16:51networkbDescription Updated
2008-12-19 16:51networkbProposed Solution updated
2009-01-07 11:14rafarodaAssigned Torafaroda => pjuvara
2009-01-07 14:37pjuvaraNote Added: 0011950
2009-01-07 14:37pjuvaraStatusnew => feedback
2009-01-07 17:13networkbNote Added: 0011959
2009-01-07 17:14networkbNote Edited: 0011959
2009-01-07 17:15networkbStatusfeedback => new
2009-01-09 19:01rafarodaRelationship addedrelated to 0002221
2009-04-28 11:05rafarodaRelationship addedrelated to 0008503
2009-04-28 12:06rafarodaRelationship replacedhas duplicate 0008503
2011-02-04 09:15jpabloaeAssigned Topjuvara => rmorley

Notes
(0011288)
rafaroda   
2008-12-13 12:24   
We were not able to reproduce this bug following these steps:

1) Created a new volume discount inside 'Master Data Management || Business Partner Setup || Volume Discount' with:
* Name = 50% discount
* Included Product = Not Selected
* Included Product Categories = Not Selected
* Currency = EUR

2) Went to 'Volume Discount Parameters' tab and set:
* Discount % = 50
* Min. Amount = 0.0

3) Created a new sales invoice in 'Sales Management || Transactions || Sales Invoice' with:
* Currency = EUR

4) Went to 'Lines' tab and added a line which 'Line Net Amount' = 216

5) Went back to 'Header' tab and completed the invoice. Checked that 'Summed Line Amount' = 216

6) Went to 'Master Data Management || Business Partner' and selected the same business partner of the sales invoice.

7) Went to 'Volume Discount' tab and created a new record with:
* Volume Discount = 50% discount
* Sales Transaction = Y

8) After saving, clicked on 'Create Invoice' button.

9) Went to 'Volume Discount Settlement' tab and navigated to the created invoice.

10) The 'Summed Line Amount' of the rappel invoice equals -108 (that is -216*50%)

http://wiki.openbravo.com/wiki/Technical_FAQ_about_Openbravo_ERP#How_can_I_create_volume_discounts_.28Rappels.29.3F [^]

Please double check it or provide further information.
(0011363)
networkb   
2008-12-15 11:24   
I checked it again and create sales invoice No.300018 (total amount 486 eur). Then applied Volume discount number 5 (10% when min=50) and the generated invoice No.300019 has 43.6 eur (instead of 48.6 eur).
(0011443)
rafaroda   
2008-12-16 17:57   
To create the volume discount as you want, you have to define it as not scaled:

1) Created a new volume discount inside 'Master Data Management || Business Partner Setup || Volume Discount' with:
* Name = 50% discount
* Included Product = Not Selected
* Included Product Categories = Not Selected
* Currency = EUR
* Scaled = N
(0011950)
pjuvara   
2009-01-07 14:37   
I understand that this issue has already been reviewed with Rafa and I apologize for asking for further feedback but from the description it is really not clear to me what this is about.

Can you please describe what is the desired functionality behind this feature request?

Thanks.
(0011959)
networkb   
2009-01-07 17:13   
(edited on: 2009-01-07 17:14)
When trying to create SCALED volume discount with different ranges the amount calculated by the application IS NOT the same as the amount you can calculate by hand.
Actually, to set different ranges of discount we need to create different non-scaled volume discount records for each range, because the quantity calculated when creating NON-SCALED discounts IS the same than the one calculated by hand.