I think for some reason, the comma in the price is causing the problem.
change the following line:
$ATC_itemPrice = floatval("".((isset($_POST["TOTAL"]))?$_POST["TOTAL"]:"") ."");// column binding
to:
$ATC_itemPrice = floatval("".((isset($_POST["TOTAL"]))?str_replace(",","",$_POST["TOTAL"]):"") ."");// column binding