fixed split transaction duplicate issue
This commit is contained in:
parent
1ee31eb12b
commit
86d52b52d6
|
|
@ -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',
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue