[ic] Discount price and display price

Mike Heins interchange-users@interchange.redhat.com
Fri Aug 17 08:44:00 2001


Quoting Stefano Malagoli (s.malagoli@datacode.it):
> Hi all,
> my item have a standard price and on some condition can have a lower price.
> In my basket I put this to compute discount
> 
> [if-item-data <condition>]
>                 [discount code="[item-code]"] $q * [item-data merchandising
> promo_price] [/discount]
> [else]
>    [discount code="[item-code]"][/discount]
> [/else]
> 
> (it's ok ?)
> then, while displaying item, for discounted one I use this tag to show the
> original price e and the new price (I get them from the construct demo):
> [item-price] for original price of one item
> [discount price] for new discounted price on one item
> [item-difference] the difference
> 
> [item-subtotal] the original price of all ordered item
> [item-discount-subtotal] the new discounted price of all ordered item
> [item-discount] then difference
> 
> Here one ex.
> Price: 2598997
> Discounted price: 2078992
> Quantity: 6
> (in the above order)
> 2598997       ok
> 12473952     NOT ok (expected 2078992)
> -9874955      NOT ok (expected 520005)
> 
> 15593982     ok
> 12473952     ok
> -59249730    NOT ok (expected 3120030)
> 

I think this is a bug. I will enter it in Bugzilla.

-- 
Red Hat, Inc., 3005 Nichols Rd., Hamilton, OH  45013
phone +1.513.523.7621      <mheins@redhat.com>

Friends don't let friends use Outlook. -- Bob Blaylock