From 3977695ae8f6c065a6eaa12d18812623e0e17181 Mon Sep 17 00:00:00 2001 From: Joe Date: Wed, 2 Nov 2022 13:20:38 +0100 Subject: [PATCH] Rerun of Can't void Customer Payment. --- admin/db/voiding_db.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin/db/voiding_db.inc b/admin/db/voiding_db.inc index 86b452ed..b3bba8b6 100644 --- a/admin/db/voiding_db.inc +++ b/admin/db/voiding_db.inc @@ -45,7 +45,7 @@ function void_transaction($type, $type_no, $date_, $memo_) if (!check_void_bank_trans($type, $type_no)) return _('This transaction cannot be voided because the operation would decrease account balance below allowed limit in some point of account history.'); case ST_SALESINVOICE : // it's a customer invoice - if (is_cust_invoice_credited($type_no) && $type == ST_SALES_INVOICE) + if (is_cust_invoice_credited($type_no) && $type == ST_SALESINVOICE) return _('This invoice cannot be voided because it was already credited.'); case ST_CUSTCREDIT : // it's a customer credit note case ST_CUSTDELIVERY : // it's a customer dispatch -- 2.30.2