dbmsv2 init...1
This commit is contained in:
parent
1e3b70a015
commit
298bf48929
@ -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"); //일회성은 지급일이 당일기준처리
|
||||
|
||||
@ -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;
|
||||
}
|
||||
//수정
|
||||
|
||||
Loading…
Reference in New Issue
Block a user