Improved float compare in certain files (AR/AP ledger)
[fa-stable.git] / sales / inquiry / customer_inquiry.php
index 4508b2f2296a355f9296ea88055d904174e31fa0..3ebc84b5c0b624034f7904947c314836bb126cb5 100644 (file)
@@ -212,7 +212,7 @@ function prt_link($row)
 function check_overdue($row)
 {
        return $row['OverDue'] == 1
-               && (abs($row["TotalAmount"]) - $row["Allocated"] != 0);
+               && floatcmp($row["TotalAmount"], $row["Allocated"]) != 0;
 }
 //------------------------------------------------------------------------------------------------
 $sql = get_sql_for_customer_inquiry();