Chance multisell price check adjustments.
This commit is contained in:
@@ -173,7 +173,14 @@ public class MultisellData implements IXmlReader
|
||||
continue;
|
||||
}
|
||||
|
||||
totalPrice += ((item.getReferencePrice() / 2) * count);
|
||||
if (chance > 0)
|
||||
{
|
||||
totalPrice += ((item.getReferencePrice() / 2) * count) * (chance / 100);
|
||||
}
|
||||
else
|
||||
{
|
||||
totalPrice += ((item.getReferencePrice() / 2) * count);
|
||||
}
|
||||
}
|
||||
|
||||
products.add(product);
|
||||
|
Reference in New Issue
Block a user