Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0025436
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Openbravo ERP] 07. Sales managementmajoralways2014-01-07 21:192017-12-11 10:15
ReporterpjuvaraView Statuspublic 
Assigned ToAtulOpenbravo 
PrioritynormalResolutionopenFixed in Version
StatusscheduledFix in branchFixed in SCM revision
ProjectionnoneETAnoneTarget Version3.0PR14Q2
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product Version3.0MP29.1SCM revision 
Review Assigned To
Web browserGoogle Chrome
ModulesCore
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0025436: Buy X and get Y as a gift promotion results in negative invoice if order quantity is less than Y

DescriptionConsider a case where if customers buy 10 units of product A they are entitled to up to 10 units of product B for free. This is supported with the "Buy X and get Y as a gift" promotion type delivered in the Discounts and Promotions for Retail module.

If you create an invoice with one line for 10 units of A and a line with 15 units of B, the unit price of B is correctly adjusted down to reflect that only 5 units have a non zero price.

However if you create an invoice with one line for 10 units of A and a line with 5 units of B, you get a negative price for B.

The expectation is that the price for the lines for B is 0.
Steps To ReproduceSee attached screenshots that reproduce:
A) the promotion
B) an invoice with the right discount applied
C) an invoice with the incorrect discount applied
TagsNo tags attached.
Attached Filespng file icon A-Promotion.png [^] (97,901 bytes) 2014-01-07 21:20


png file icon B-CorrectInvoice.png [^] (119,498 bytes) 2014-01-07 21:24


png file icon C-IncorrectInvoice.png [^] (119,760 bytes) 2014-01-07 21:26

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
(0063263)
pjuvara (reporter)
2014-01-07 21:28

This defect was reported using the Discount and Promotion Rules for Retail module version 1.3.1010
(0063265)
pjuvara (reporter)
2014-01-07 21:37

Please also see related issue 25437.
(0090767)
mtaal (manager)
2016-10-21 13:21

re-open to be validated by functional team
(0100956)
AtulOpenbravo (developer)
2017-12-11 10:15
edited on: 2017-12-11 10:17

- Login as F&B International Group Admin
- Define product A and product B
- Add sales price to them. product A = 10, product B = 15
- Define a Discount and Promotion of type Buy X and get Y as a gift
- In Products Tab add Product A, quantity 10 and Product B as gift product, gift quantity as 10.
- Create an invoice with one line for 10 units of product A and a line with 15 units of product B, the unit price of B is set as 5, correctly adjusted down to reflect that only 5 units have a non zero price.
  i.e 15 qty X 5 price = 75 ~ 5 units total amount (5 qty X 15 Price = 75)
- Create an invoice with one line for 10 units of A and a line with 5 units of B and process the invoice.
- Realize that the price for the line of product B is set as 0.


- Issue History
Date Modified Username Field Change
2014-01-07 21:19 pjuvara New Issue
2014-01-07 21:19 pjuvara Assigned To => dmiguelez
2014-01-07 21:19 pjuvara Web browser => Google Chrome
2014-01-07 21:19 pjuvara Modules => Core
2014-01-07 21:19 pjuvara Triggers an Emergency Pack => No
2014-01-07 21:20 pjuvara File Added: A-Promotion.png
2014-01-07 21:24 pjuvara File Added: B-CorrectInvoice.png
2014-01-07 21:26 pjuvara File Added: C-IncorrectInvoice.png
2014-01-07 21:28 pjuvara Note Added: 0063263
2014-01-07 21:37 pjuvara Note Added: 0063265
2014-01-23 16:06 mtaal Web browser Google Chrome => Google Chrome
2014-01-23 16:06 mtaal Assigned To dmiguelez => mtaal
2014-01-23 16:06 mtaal Target Version => 3.0MP32
2016-10-21 10:58 mtaal Status new => closed
2016-10-21 10:58 mtaal Resolution open => out of date
2016-10-21 13:17 mtaal Tag Attached: MT_closed_out_of_date
2016-10-21 13:21 mtaal Tag Detached: MT_closed_out_of_date
2016-10-21 13:21 mtaal Assigned To mtaal => Triage Finance
2016-10-21 13:21 mtaal Note Added: 0090767
2016-10-21 13:21 mtaal Status closed => new
2016-10-21 13:21 mtaal Resolution out of date => open
2017-11-10 10:00 dmiguelez Assigned To Triage Finance => AtulOpenbravo
2017-11-10 10:00 dmiguelez Status new => scheduled
2017-12-11 10:15 AtulOpenbravo Note Added: 0100956
2017-12-11 10:17 AtulOpenbravo Note Edited: 0100956 View Revisions


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker