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
commit 5d15a7ded9
1 changed files with 3 additions and 2 deletions

View File

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