исправлен баг в админке при редактировании вознаграждений агентов

This commit is contained in:
Thekindbull 2025-07-26 07:59:04 +08:00
parent 225d719768
commit d8fea048d1

View File

@ -35,12 +35,10 @@ public function getPaymentable(Complex $complex)
'paymentable_type' => $this->getClassName(),
'paymentable_id' => $this->id,
'complex_id' => $complex->id,
'value' => ($this->getClassName() == 'Company') ? null : ($this->defaultValue == -1 ? $this->setAsParentPayment($complex) : null)
'value' => ($this->getClassName() == 'Company') ? null : -1
]);
break;
case 1:
return $paymentable->first();
break;
default:
abort(404);