item 1 and item 2 have the same cost and a 10 percent discount if the quantity is over 15 units.
All of my units are getting discounts if they are over 15 units and I am at a loose on this one here is my statement;

Code:
void Compute_Purchase_Price (void)
{
if ((item == 1) || (item == 2))
{		
		sub_tot = ITEM_12 * quantity;
}
if ((item == 3) || (item == 4))
{
		sub_tot = ITEM_34 * quantity;
}
if (((item == 1) || (item == 3)) && (quantity > 15))
{
		dis = DISCOUNT * sub_tot;
}
}
any help is welcome.

code tags added by Kermi3