Red "-no" modifier adds onto total price. (3 posts)

MichaelJG
Member
Posted 718 days ago #
This POS has been great so far but I've noticed a problem I am having.

Lets say I have a veggie pizza menu item that when clicked brings up a modifier list for more toppings someone would like to add-on. Now on this veggie pizza there are peppers that the customer doesn't want, so normally I would go to the pepper modifier item and click it until it turns red and says "-No PEPPERS" on the ticket. The price however doesnt stay the same but rather increases as if I added the base pepper modifier price to the pizza. Also on the actual printed ticket it gets charged as an extra topping as well.

Any help would be greatly appreciated. Thanks!

Pdaoust
Member
Posted 532 days ago #
It appears to be a bunch of commented lines in /src/com/floreantpos/model/TicketItemModifierGroup.java -- from line 106 to 115, and again from line 135 to 145. The biggest problem seems to be the first set of lines; it adds the modifier amount to the subtotal even if it's set to TicketItemModifier.NO_MODIFIER, which isn't right.

Also, there's an issue with the receipt and kitchen slip, where it doesn't check for NO_MODIFIER either.

I'm going to try modifying the source code and recompiling. In the meantime, can the official developers confirm if this is the problem? And what should happen if TicketItemModifier.NO_MODIFIER is set -- should it subtract the cost or extra cost, or should it just return a zero?
Howler
Member
Posted 212 days ago #
I know this post is old. But, I had to fix this same item. I ended up changing BaseTicketItemModifier.java:getItemCount() to return 0 if the modifer is NO_MODIFIER.

public java.lang.Integer getItemCount () {
//return itemCount == null ? Integer.valueOf(0) : itemCount;
if (itemCount == null || modifierType == TicketItemModifier.NO_MODIFIER)
{
return 0;
}
else {
return itemCount;
}
}