Add payments report
This commit is contained in:
parent
d801dd4fa8
commit
95f78a74c2
@ -289,7 +289,7 @@ function getPaymentReport($filter = ""): Report {
|
||||
$payments = $database->select("payments", ['familyid', 'paymentid (id)', 'amount', 'amountpaid']);
|
||||
|
||||
foreach ($payments as $p) {
|
||||
if ($filter == "due" && $p["amount"] - $p["amountpaid"] <= 0) {
|
||||
if ($filter == "due" && ($p["amount"] - $p["amountpaid"]) <= 0) {
|
||||
continue;
|
||||
}
|
||||
$familynames = $database->select('people', 'lastname', ['familyid' => $p['familyid']]);
|
||||
|
Loading…
x
Reference in New Issue
Block a user