mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Fixes for linking payments/expenses
This commit is contained in:
parent
45fe501597
commit
83700a002d
@ -182,8 +182,12 @@ class MatchBankTransactions implements ShouldQueue
|
||||
$this->bt->ninja_category_id = $expense->category_id;
|
||||
$this->bt->save();
|
||||
|
||||
$this->bts->push($this->bt->id);
|
||||
|
||||
}
|
||||
|
||||
|
||||
return $this;
|
||||
|
||||
}
|
||||
|
||||
private function linkPayment($input)
|
||||
@ -206,8 +210,10 @@ class MatchBankTransactions implements ShouldQueue
|
||||
$this->bt->invoice_ids = collect($payment->invoices)->pluck('hashed_id')->implode(',');
|
||||
$this->bt->save();
|
||||
|
||||
$this->bts->push($this->bt->id);
|
||||
}
|
||||
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
private function matchInvoicePayment($input) :self
|
||||
@ -225,9 +231,9 @@ class MatchBankTransactions implements ShouldQueue
|
||||
|
||||
$this->createPayment($_invoices, $amount);
|
||||
|
||||
}
|
||||
$this->bts->push($this->bt->id);
|
||||
|
||||
$this->bts->push($this->bt->id);
|
||||
}
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user