diff --git a/app/Services/Customer/PaymentService.php b/app/Services/Customer/PaymentService.php index b3adf9a..fda3843 100644 --- a/app/Services/Customer/PaymentService.php +++ b/app/Services/Customer/PaymentService.php @@ -5,10 +5,9 @@ namespace App\Services\Customer; use App\Entities\Customer\PaymentEntity; use App\Entities\Equipment\ServerPartEntity; use App\Helpers\Customer\PaymentHelper; -use App\Interfaces\Equipment\ServerPartInterface; use App\Models\Customer\PaymentModel; -class PaymentService extends CustomerService implements ServerPartInterface +class PaymentService extends CustomerService { public function __construct() { @@ -95,7 +94,7 @@ class PaymentService extends CustomerService implements ServerPartInterface return $options; } //서비스 설정 - public function setServerPart(ServerPartEntity $serverPartEntity, mixed $uid, string $status): PaymentEntity + public function setServerPart(ServerPartEntity $serverPartEntity): PaymentEntity { if ($serverPartEntity->getBilling() === PAYMENT['BILLING']['ONETIME']) { if ($serverPartEntity->getServiceInfoUID() === null) { @@ -106,7 +105,7 @@ class PaymentService extends CustomerService implements ServerPartInterface $formDatas['clientinfo_uid'] = $serverPartEntity->getClientInfoUID(); $formDatas['serviceinfo_uid'] = $serverPartEntity->getServiceInfoUID(); $formDatas['serverinfo_uid'] = $serverPartEntity->getServerInfoUID(); - $formDatas['title'] = sprintf("[%s] 일회성 추가", $serverPartEntity->getPartEntity()->getTitle()); + $formDatas['title'] = sprintf("[%s] 부품정보 설정", $serverPartEntity->getPartEntity()->getTitle()); $formDatas['amount'] = $serverPartEntity->getAmount(); $formDatas['billing'] = $serverPartEntity->getBilling(); $formDatas['billing_at'] = date("Y-m-d"); //일회성은 지급일이 당일기준처리 diff --git a/app/Services/Equipment/ServerPartService.php b/app/Services/Equipment/ServerPartService.php index 685aeef..27b3486 100644 --- a/app/Services/Equipment/ServerPartService.php +++ b/app/Services/Equipment/ServerPartService.php @@ -211,7 +211,7 @@ class ServerPartService extends EquipmentService $this->setServerPart($entity, $formDatas['part_uid'], STATUS['OCCUPIED']) ); //일회성인경우 결제정보에 추가한다. - $this->getPaymentService()->setServerPart($entity, 0, ""); + $this->getPaymentService()->setServerPart($entity); return $entity; } //수정