diff --git a/app/Models/Banking/Transaction.php b/app/Models/Banking/Transaction.php index b88f27013..3db25976f 100644 --- a/app/Models/Banking/Transaction.php +++ b/app/Models/Banking/Transaction.php @@ -571,7 +571,10 @@ class Transaction extends Model } catch (\Exception $e) {} try { - if (empty($this->document_id) && $this->isNotTransferTransaction()) { + if (empty($this->document_id) + && $this->isNotTransferTransaction() + && $this->isNotSplitTransaction() + ) { $actions[] = [ 'title' => trans('general.duplicate'), 'icon' => 'file_copy', diff --git a/app/Utilities/TransactionNumber.php b/app/Utilities/TransactionNumber.php index ae55b39f3..80884b751 100644 --- a/app/Utilities/TransactionNumber.php +++ b/app/Utilities/TransactionNumber.php @@ -44,7 +44,7 @@ class TransactionNumber implements TransactionNumberInterface } if (Str::endsWith($type, '-split')) { - $number_exists = $number_exists->isSplitTransaction(); + $number_exists = $number_exists->isSplit(); } $number_exists = $number_exists->where('number', $number);