dbmsv3 init...1
This commit is contained in:
parent
8fffc82a7f
commit
b0e53f5809
@ -123,7 +123,7 @@ class ClientController extends CustomerController
|
||||
if (!$entity instanceof ClientEntity) {
|
||||
throw new \Exception("{$uid}에 대한 정보를 찾을수 없습니다.");
|
||||
}
|
||||
$this->entity = $this->getService()->modify($entity, $this->getService()->getFormDatas());
|
||||
$this->entity = $this->getService()->history($entity, $this->getService()->getFormDatas());
|
||||
$db->transCommit();
|
||||
return $this->getResultSuccess('고객 비고가 수정되었습니다.');
|
||||
} catch (\Exception $e) {
|
||||
|
||||
@ -242,9 +242,9 @@ class ServiceController extends CustomerController
|
||||
if (!$entity instanceof ServiceEntity) {
|
||||
throw new \Exception("{$uid}에 대한 정보를 찾을수 없습니다.");
|
||||
}
|
||||
$this->entity = $this->getService()->modify($entity, $this->getService()->getFormDatas());
|
||||
$this->entity = $this->getService()->history($entity, $this->getService()->getFormDatas());
|
||||
$db->transCommit();
|
||||
return $this->getResultSuccess('서비스객 비고가 수정되었습니다.');
|
||||
return $this->getResultSuccess('서비스 비고가 수정되었습니다.');
|
||||
} catch (\Exception $e) {
|
||||
$db->transRollback();
|
||||
return $this->getResultFail($e->getMessage());
|
||||
|
||||
@ -86,7 +86,7 @@ class ClientService extends CustomerService
|
||||
}
|
||||
return $this->_paymentService;
|
||||
}
|
||||
//압금(쿠폰:추가)처리
|
||||
//입금(쿠폰:추가)처리
|
||||
final public function deposit(ClientEntity $entity, string $field, int $amount): ClientEntity
|
||||
{
|
||||
switch ($field) {
|
||||
@ -113,7 +113,7 @@ class ClientService extends CustomerService
|
||||
}
|
||||
$formDatas = [$field => $amount];
|
||||
// dd($formDatas);
|
||||
return $this->getClientService()->modify($entity, $formDatas);
|
||||
return parent::modify($entity, $formDatas);
|
||||
}
|
||||
//출금(쿠폰:사용)처리
|
||||
final public function withdrawal(ClientEntity $entity, string $field, int $amount): ClientEntity
|
||||
@ -142,7 +142,7 @@ class ClientService extends CustomerService
|
||||
// break;
|
||||
}
|
||||
$formDatas = [$field => $amount];
|
||||
return $this->getClientService()->modify($entity, $formDatas);
|
||||
return parent::modify($entity, $formDatas);
|
||||
}
|
||||
//기본 기능부분
|
||||
//생성
|
||||
@ -159,6 +159,11 @@ class ClientService extends CustomerService
|
||||
}
|
||||
return parent::modify($entity, $formDatas);
|
||||
}
|
||||
//비고(History)설정
|
||||
public function history(mixed $entity, array $formDatas): ClientEntity
|
||||
{
|
||||
return parent::modify($entity, $formDatas);
|
||||
}
|
||||
|
||||
//List 검색용
|
||||
//FormFilter 조건절 처리
|
||||
|
||||
@ -251,7 +251,11 @@ class ServiceService extends CustomerService
|
||||
$entity = $entity->setServerEntity($this->getServerService()->setService('delete', $entity, []));
|
||||
return parent::delete($entity);
|
||||
}
|
||||
|
||||
//비고(History)설정
|
||||
public function history(mixed $entity, array $formDatas): ServiceEntity
|
||||
{
|
||||
return parent::modify($entity, $formDatas);
|
||||
}
|
||||
//대체서버추가(가격변동은 없음)
|
||||
public function addServer(ServiceEntity $entity, array $formDatas): ServiceEntity
|
||||
{
|
||||
|
||||
@ -63,7 +63,13 @@
|
||||
<td><?= $viewDatas['entity']->getSaleRate() ?>%</td>
|
||||
<td><?= number_format($viewDatas['entity']->getAccountBalance()) ?>원</td>
|
||||
<td><?= array_key_exists($viewDatas['entity']->getPK(), $viewDatas['totalAmounts']) ? number_format($viewDatas['totalAmounts'][$viewDatas['entity']->getPK()]) : 0 ?>원</td>
|
||||
<td><?= array_key_exists($viewDatas['entity']->getPK(), $viewDatas['unPaids']) ? "총:" . $viewDatas['unPaids'][$viewDatas['entity']->getPK()]['cnt'] . "건/" . number_format($viewDatas['unPaids'][$viewDatas['entity']->getPK()]['amount']) : 0 ?>원</td>
|
||||
<td>
|
||||
<?php if (array_key_exists($viewDatas['entity']->getPK(), $viewDatas['unPaids'])): ?>
|
||||
총 <a href="/admin/customer/payment?clientinfo_uid=<?= $viewDatas['entity']->getPK() ?>&status=unpaid"><?= $viewDatas['unPaids'][$viewDatas['entity']->getPK()]['cnt'] ?>건/<?= number_format($viewDatas['unPaids'][$viewDatas['entity']->getPK()]['amount']) ?></a>원
|
||||
<?php else: ?>
|
||||
0원
|
||||
<?php endif ?>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
@ -11,7 +11,7 @@
|
||||
<div style="font-size:15px">서비스 목록</div>
|
||||
<table class="table table-bordered table-hover table-striped">
|
||||
<tr class="text-center">
|
||||
<th style="width: 120px"><a href="#">[상세정보]</a></th>
|
||||
<th style="width: 120px">서비스 상세정보</th>
|
||||
<th style="width: 120px">사이트/위치/형식</th>
|
||||
<th style="width: 250px">CPU / 메모리 / 저장장치</th>
|
||||
<th style="width: 250px">OS / SOFTWARE</th>
|
||||
@ -24,6 +24,7 @@
|
||||
<td rowspan="4" class="text-center">
|
||||
<div><?= $entity->getCode() ?></div>
|
||||
<div><?= $entity->getServerEntity()->getCode() ?></div>
|
||||
<div>[<?= $entity->getServerEntity()->getTitle() ?>]</div>
|
||||
</td>
|
||||
<td class="text-center">
|
||||
<div><?= $serviceCellDatas['service']->getHelper()->getFieldView('site', $entity->getSite(), $serviceCellDatas) ?></div>
|
||||
@ -60,13 +61,10 @@
|
||||
<th class="fw-bold">미납금</th>
|
||||
<td class="amount-red">
|
||||
<?php if (array_key_exists($entity->getPK(), $serviceCellDatas['unPaids'])): ?>
|
||||
총: <?= $serviceCellDatas['unPaids'][$entity->getPK()]['cnt'] ?>건/<?= number_format($serviceCellDatas['unPaids'][$entity->getPK()]['amount']) ?>원
|
||||
총 <a href="/admin/customer/payment?clientinfo_uid=<?= $entity->getClientInfoUID() ?>&serviceinfo_uid=<?= $entity->getPK() ?>"><?= $serviceCellDatas['unPaids'][$entity->getPK()]['cnt'] ?>건/<?= number_format($serviceCellDatas['unPaids'][$entity->getPK()]['amount']) ?></a>원
|
||||
<?php endif ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" class="text-center"><a href="/admin/customer/payment?clientinfo_uid=<?= $entity->getClientInfoUID() ?>"><button class="btn btn-success">결제내역</button></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user