mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Data matching
This commit is contained in:
parent
72b86cd25b
commit
957cc727f1
@ -50,7 +50,11 @@ class BankService
|
|||||||
{
|
{
|
||||||
$description = str_replace(" ", "", $transaction->description);
|
$description = str_replace(" ", "", $transaction->description);
|
||||||
|
|
||||||
$invoice = $this->invoices->where('number', $description)->first();
|
$invoice = $this->invoices->first(function ($value, $key) use ($description){
|
||||||
|
|
||||||
|
return str_contains($value->number, $description);
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
if($invoice)
|
if($invoice)
|
||||||
$transaction['invocie_id'] = $invoice->hashed_id;
|
$transaction['invocie_id'] = $invoice->hashed_id;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user