mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Prevent relinking of payments with transactions
This commit is contained in:
parent
e2439b60c3
commit
93f836761d
@ -84,13 +84,11 @@ class PaymentFilters extends QueryFilters
|
|||||||
/**
|
/**
|
||||||
* Returns a list of payments that can be matched to bank transactions
|
* Returns a list of payments that can be matched to bank transactions
|
||||||
*/
|
*/
|
||||||
public function match_transactions($value = '')
|
public function match_transactions($value)
|
||||||
{
|
{
|
||||||
|
|
||||||
if($value == 'true')
|
if($value)
|
||||||
{
|
|
||||||
return $this->builder->where('is_deleted',0)->whereNull('transaction_id');
|
return $this->builder->where('is_deleted',0)->whereNull('transaction_id');
|
||||||
}
|
|
||||||
|
|
||||||
return $this->builder;
|
return $this->builder;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user