Updates for payment filters

This commit is contained in:
David Bomba 2022-12-16 10:46:50 +11:00
parent ead61d8f74
commit ccb98aaf06
2 changed files with 3 additions and 0 deletions

View File

@ -72,6 +72,7 @@ nlog($p->toArray());
/*Ensure we don't relink an existing payment*/
if(!$p || is_numeric($p->transaction_id)){
nlog("unlinking for some reason");
unset($inputs['transactions'][$key]);
}

View File

@ -111,6 +111,8 @@ class MatchBankTransactions implements ShouldQueue
foreach($this->input as $input)
{
nlog($input);
if(array_key_exists('invoice_ids', $input) && strlen($input['invoice_ids']) > 1)
$this->matchInvoicePayment($input);
elseif(array_key_exists('payment_id', $input) && strlen($input['payment_id']) > 1)