[0000100] Keep getting left allocated weird results (rounding problems).
[fa-stable.git] / purchasing / inquiry / supplier_allocation_inquiry.php
index cc15d580da095e771b02f18ad5df46e4af23c200..5ecf5bb781013210b371a21514027706ba99310b 100644 (file)
@@ -166,6 +166,8 @@ if (db_num_rows($result) == 0)
        label_cell($duedate);
     if ($_POST['supplier_id'] == reserved_words::get_all())
        label_cell($myrow["curr_code"]);
+       $myrow["TotalAmount"] = round2($myrow["TotalAmount"], user_price_dec());
+       $myrow["Allocated"] = round2($myrow["Allocated"], user_price_dec());
     if ($myrow["TotalAmount"] >= 0)
        label_cell("");
        amount_cell(abs($myrow["TotalAmount"]));