diff --git a/app/Helpers/Customer/ServicePaymentHelper.php b/app/Helpers/Customer/ServicePaymentHelper.php index 10e6343..c64e02a 100644 --- a/app/Helpers/Customer/ServicePaymentHelper.php +++ b/app/Helpers/Customer/ServicePaymentHelper.php @@ -47,29 +47,7 @@ class ServicePaymentHelper extends CustomerHelper { switch ($action) { case 'modify': - $checkbox = ''; - //상태가 미지급이 경우만 checkbox를 표시 - if ($viewDatas['entity']->getStatus() === DEFAULTS['STATUS']) { - $oldBatchJobUids = old("batchjob_uids", null); - $oldBatchJobUids = is_array($oldBatchJobUids) ? $oldBatchJobUids : [$oldBatchJobUids]; - $checkbox = form_checkbox([ - "id" => "checkbox_uid_{$viewDatas['entity']->getPK()}", - "name" => "batchjob_uids[]", - "value" => $viewDatas['entity']->getPK(), - "class" => "batchjobuids_checkboxs", - "checked" => in_array($viewDatas['entity']->getPK(), $oldBatchJobUids) - ]); - } - $action = $checkbox . form_label( - $viewDatas['cnt'], - $action, - [ - "data-src" => current_url() . '/' . $action . '/' . $viewDatas['entity']->getPK() . '?' . $this->getRequest()->getUri()->getQuery(), - "data-bs-toggle" => "modal", - "data-bs-target" => "#index_action_form", - ...$extras - ] - ); + $action = $viewDatas['entity']->getPK(); break; case 'invoice': $action = form_submit($action . "_submit", '청구서 발행', [ diff --git a/app/Services/Customer/ServiceItemService.php b/app/Services/Customer/ServiceItemService.php index 72c5a55..4464ae5 100644 --- a/app/Services/Customer/ServiceItemService.php +++ b/app/Services/Customer/ServiceItemService.php @@ -93,29 +93,3 @@ class ServiceItemService extends CustomerService return parent::delete($entity); } } - - - - // public function create(array $formDatas, mixed $entity = null): ServiceEntity - // { - // //code의 경우 서비스중으로 설정작업 - // $this->getCodeService()->setStatus($formDatas['code'], CodeEntity::STATUS_OCCUPIED); - // return parent::create($formDatas, $entity); - // } - // public function modify(mixed $entity, array $formDatas): ServiceEntity - // { - // //code가 기존과 다를경우 //toggle,batchjob의 경우 $formDatas에 code가 없을수도 있음 - // if (array_key_exists('code', $formDatas) && $formDatas['code'] !== $entity->getCode()) { - // //code의 경우 기존code는 사용가능으로 설정작업 - // $this->getCodeService()->setStatus($entity->getCode(), CodeEntity::STATUS_AVAILABLE); - // //coded의 경우 변경된 code는 서비스중으로 설정작업 - // $this->getCodeService()->setStatus($formDatas['code'], CodeEntity::STATUS_OCCUPIED); - // } - // return parent::modify($entity, $formDatas); - // } - // final public function delete(mixed $entity): bool - // { - // //code의 경우 기존code는 사용가능으로 설정작업 - // $this->getCodeService()->setStatus($entity->getCode(), CodeEntity::STATUS_AVAILABLE); - // return parent::delete($entity); - // } \ No newline at end of file