From: Joe Hunt Date: Mon, 1 Nov 2021 23:57:35 +0000 (+0100) Subject: Rerun bug 5512: Customer Allocation Inquiry - No alloc-icon for DEBET-Accounts-receiv... X-Git-Url: https://delta.frontaccounting.com/gitweb/?p=fa-stable.git;a=commitdiff_plain;h=3d439a337e0115e35a6e2ba28434602a418ebaa5 Rerun bug 5512: Customer Allocation Inquiry - No alloc-icon for DEBET-Accounts-receivable-Journal Entries. --- diff --git a/sales/inquiry/customer_inquiry.php b/sales/inquiry/customer_inquiry.php index 5bdbe785..930ff08a 100644 --- a/sales/inquiry/customer_inquiry.php +++ b/sales/inquiry/customer_inquiry.php @@ -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);