Commit 7135bd73 authored by Karamel's avatar Karamel
Browse files

Fix customers' balance in CashsessionAPI->summary.

parent 67ea8c0d
......@@ -262,7 +262,7 @@ class CashsessionAPI extends APIHelper implements API
$summaryPmts[$pmtRef]['currencyAmount'] += $pmt->getCurrencyAmount();
}
// Cust balance sums
if ($tkt->getCustomer() != null && abs($tkt->getCustBalance() > 0.005)) {
if ($tkt->getCustomer() != null && abs($tkt->getCustBalance()) > 0.005) {
$custId = $tkt->getCustomer()->getId();
if (!isset($summaryCusts[$custId]) && $tkt->getCustBalance()) {
$summaryCusts[$custId] = ['customer' => $custId,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment