dbmsv4 init...2
This commit is contained in:
parent
aabbe2f5e6
commit
fe7803666f
@ -152,7 +152,8 @@ class ServerPartService extends EquipmentService
|
|||||||
$formDatas['title'] = $partEntity->getTitle();
|
$formDatas['title'] = $partEntity->getTitle();
|
||||||
//서버파트 수정
|
//서버파트 수정
|
||||||
$entity = parent::modify_process($entity, $formDatas);
|
$entity = parent::modify_process($entity, $formDatas);
|
||||||
if ($entity->getServiceInfoUID() !== null) { //서비스가 정의 되어 있으면
|
if ($entity->getServiceInfoUID() !== null) {
|
||||||
|
//서비스가 정의 되어 있으면 서비스 비용 수정
|
||||||
if ($entity->getBilling() == PAYMENT['BILLING']['MONTH']) { //Billing형식이 Month이면 서비스 금액설정 호출
|
if ($entity->getBilling() == PAYMENT['BILLING']['MONTH']) { //Billing형식이 Month이면 서비스 금액설정 호출
|
||||||
service('customer_serviceservice')->updateAmount($entity->getServiceInfoUID());
|
service('customer_serviceservice')->updateAmount($entity->getServiceInfoUID());
|
||||||
}
|
}
|
||||||
@ -165,7 +166,13 @@ class ServerPartService extends EquipmentService
|
|||||||
protected function delete_process($entity): ServerPartEntity
|
protected function delete_process($entity): ServerPartEntity
|
||||||
{
|
{
|
||||||
$this->getPartService($entity->getType())->detachFromServerPart($entity);
|
$this->getPartService($entity->getType())->detachFromServerPart($entity);
|
||||||
return parent::delete_process($entity);
|
$entity = parent::delete_process($entity);
|
||||||
|
if ($entity->getServiceInfoUID() !== null) { //서비스가 정의 되어 있으면
|
||||||
|
if ($entity->getBilling() == PAYMENT['BILLING']['MONTH']) { //Billing형식이 Month이면 서비스 금액설정 호출
|
||||||
|
service('customer_serviceservice')->updateAmount($entity->getServiceInfoUID());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return $entity;
|
||||||
}
|
}
|
||||||
//List 검색용
|
//List 검색용
|
||||||
//FormFilter 조건절 처리
|
//FormFilter 조건절 처리
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user