Rerun bug 5512: Customer Allocation Inquiry - No alloc-icon for DEBET-Accounts-receiv...
authorJoe Hunt <joe.hunt.consulting@gmail.com>
Mon, 1 Nov 2021 23:57:35 +0000 (00:57 +0100)
committerJoe Hunt <joe.hunt.consulting@gmail.com>
Mon, 1 Nov 2021 23:57:35 +0000 (00:57 +0100)
sales/inquiry/customer_inquiry.php

index 5bdbe785e4b7f4fcee10767fc09fed31718d6a74..930ff08ab6cbec2051c08ae6e98e91c90c2e125a 100644 (file)
@@ -58,11 +58,6 @@ function gl_view($row)
 
 function fmt_amount($row)
 {
-       /*
-       $value =
-           $row['type']==ST_CUSTCREDIT || $row['type']==ST_CUSTPAYMENT || $row['type']==ST_BANKDEPOSIT || 
-               ($row['type']==ST_JOURNAL && $row['TotalAmount'] < 0) ? -$row["TotalAmount"] : $row["TotalAmount"];
-       */      
        $value =
            $row['type']==ST_CUSTCREDIT || $row['type']==ST_CUSTPAYMENT || $row['type']==ST_BANKDEPOSIT ? -$row["TotalAmount"] : $row["TotalAmount"];
     return price_format($value);