Not sure if this is a related issue, but we have had really strange behavior using qty discounts and X Product for Y Price. We are using multiple qty discounts so we have about 14 rules in a promo, for qty's 2-15.
When we enter the rules we must enter them starting with the highest qty first (15). If we start with the lowest (2) the promo doesn't work. This suggests that the order the records are stored in the database matters. We have done this many many times to be absolutely certain what was happening. We can reproduce the problem consistently. We are using a version of trunk from a couple of weeks ago. I'm going to look thru the code to see how it orders and applies promo rules before filing this as a bug. Any thoughts or suggestions are appreciated. ----- Original Message ----- From: "Scott Gray" <[EMAIL PROTECTED]> To: [email protected] Sent: Saturday, December 15, 2007 9:18:15 PM (GMT-0700) America/Chihuahua Subject: Re: Promotion rule for quantity discount Fixed in rev. 604551 Regards Scott On 16/12/2007, Scott Gray <[EMAIL PROTECTED]> wrote: > > Hi Raj > > It looks like a bug to me, X Product for Y Price works but X Product for > Y% Discount doesn't respect the quantity as you said. > > I'll have a look at the code. > > Regards > Scott > > On 16/12/2007, Raj Saini <[EMAIL PROTECTED]> wrote: > > > > Sorry to repeat it again. Does someone have any clue to this? I am sure > > this is possible, I am missing something trivial. > > > > Thanks, > > > > Raj > > > > Raj Saini wrote: > > > Hi, > > > > > > I am having difficulty in setting up promotion. Promotion I want to > > > set up is: > > > > > > If the X product in shopping has Qty >= Y, apply 10% discount to the > > > item. > > > > > > I tried: > > > > > > Action X Product for Y% discount - Can get the discounted price but > > > this promotion applies to every item i.e. it does not consider the > > > minimum quantity limit. > > > > > > Condition X quantity of Product - If I add this condition to the above > > > action, it does apply the minimum quantity condition but applies > > > discount to the item above X. > > > > > > I searched through the Google and found this > > > http://lists.ofbiz.org/pipermail/dev/2004-October/006894.html . It > > make > > > me sure that it is possible and I am missing something. > > > > > > Thanks, > > > > > > Raj > > > > > > > > > > >
