Merge branch '0.1.8.4' of https://github.com/twetech/itflow into 0.1.8.4

This commit is contained in:
o-psi
2024-02-15 22:04:57 +00:00

View File

@@ -137,13 +137,14 @@ if (isset($_GET['client_id'])) {
payments.payment_amount, payments.payment_amount,
payments.payment_reference, payments.payment_reference,
invoices.invoice_number, invoices.invoice_number,
invoices.invoice_prefix invoices.invoice_prefix,
invoices.invoice_client_id
FROM FROM
payments payments
LEFT JOIN LEFT JOIN
invoices ON payments.payment_invoice_id = invoices.invoice_id invoices ON payments.payment_invoice_id = invoices.invoice_id
WHERE WHERE
payment_account_id = $client_id invoice_client_id = $client_id
AND payment_archived_at IS NULL AND payment_archived_at IS NULL
ORDER BY ORDER BY
payment_date DESC"; payment_date DESC";