diff --git a/app/Modules/Payment/Traits/Paymentable.php b/app/Modules/Payment/Traits/Paymentable.php index bfe7318..9f5b0d4 100644 --- a/app/Modules/Payment/Traits/Paymentable.php +++ b/app/Modules/Payment/Traits/Paymentable.php @@ -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);