Fixed recurring list page actions..
This commit is contained in:
parent
aa1251a1c6
commit
c5c6bb2755
@ -502,7 +502,12 @@ class Transaction extends Model
|
|||||||
} catch (\Exception $e) {}
|
} catch (\Exception $e) {}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
if ($this->is_splittable && empty($this->document_id) && empty($this->recurring) && $this->isNotTransferTransaction()) {
|
if (
|
||||||
|
$this->is_splittable
|
||||||
|
&& empty($this->document_id)
|
||||||
|
&& empty($this->recurring)
|
||||||
|
&& $this->isNotTransferTransaction()
|
||||||
|
) {
|
||||||
$connect = [
|
$connect = [
|
||||||
'type' => 'button',
|
'type' => 'button',
|
||||||
'title' => trans('general.connect'),
|
'title' => trans('general.connect'),
|
||||||
|
@ -540,7 +540,12 @@ class Document extends Model
|
|||||||
];
|
];
|
||||||
} catch (\Exception $e) {}
|
} catch (\Exception $e) {}
|
||||||
|
|
||||||
if ($this->status != 'paid' && (empty($this->transactions->count()) || (! empty($this->transactions->count()) && $this->paid != $this->amount))) {
|
if (
|
||||||
|
$this->status != 'paid'
|
||||||
|
&& ! str_contains($this->type, 'recurring')
|
||||||
|
&& (empty($this->transactions->count())
|
||||||
|
|| (! empty($this->transactions->count()) && $this->paid != $this->amount))
|
||||||
|
) {
|
||||||
try {
|
try {
|
||||||
if ($this->totals->count()) {
|
if ($this->totals->count()) {
|
||||||
$actions[] = [
|
$actions[] = [
|
||||||
|
Loading…
x
Reference in New Issue
Block a user