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?
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;
}
}
Log in to reply this topic