umm I see, add this line after if($cashenabled == "yes")[
PHP Code:
$cashgiven = abs($cashgiven);
Lemme know if it solves your problem or not.
@Fadillzzz: Another possible way to fix this issue is to generate an error message when negative amount is entered.