Skip to content

Commit

Permalink
EBT Cash over: floating point bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Andy Theuninck committed Oct 31, 2012
1 parent 024b1bc commit e3c6868
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pos/is4c-nf/lib/Tenders/FoodstampTender.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ function ErrorCheck(){
if ($CORE_LOCAL->get("fntlflag") == 0){
return DisplayLib::boxMsg(_("eligible amount must be totaled before foodstamp tender can be accepted"));
}
else if ($this->amount > $CORE_LOCAL->get("amtdue")){
return DisplayLib::xboxMsg(_("no cash back with EBT cash tender"));
else if ($this->amount - $CORE_LOCAL->get("amtdue") > 0.005){
return DisplayLib::xboxMsg(_("no cash back with EBT cash tender "));
}
else if ($this->amount > ($CORE_LOCAL->get("fsEligible")+10)){
return DisplayLib::xboxMsg(_('Foodstamp tender cannot exceed eligible amount by over $10.00'));
Expand Down

0 comments on commit e3c6868

Please sign in to comment.