From: Janusz Dobrowolski Date: Sun, 25 Jul 2021 18:24:20 +0000 (+0200) Subject: Customer Credit Invoice: fixed invalid processing of invoice payments (triggering... X-Git-Url: https://delta.frontaccounting.com/gitweb/?p=fa-stable.git;a=commitdiff_plain;h=ab0ec8469bf61ea01e20014a6511d46fccf9b3c6 Customer Credit Invoice: fixed invalid processing of invoice payments (triggering blank page on php8 too) --- diff --git a/sales/includes/sales_db.inc b/sales/includes/sales_db.inc index 6f74a574..b7e16832 100644 --- a/sales/includes/sales_db.inc +++ b/sales/includes/sales_db.inc @@ -280,7 +280,7 @@ function read_sales_trans($doc_type, $trans_no, &$cart) @$myrow["src_id"]); } } - $cart->prepayments = get_payments_for($trans_no, $doc_type, $debtor_no); + $cart->prepayments = get_payments_for($trans_no[0], $doc_type, $debtor_no); } // !newdoc