dbmsv3/app/Views/cells/service/payment.php
2025-10-17 18:22:57 +09:00

21 lines
1.1 KiB
PHP

<table class="table m-0 p-0">
<tr>
<th class="fw-bold" nowrap>결제일</th>
<td nowrap><?= $serviceEntity->getBillingAT() ?></td>
</tr>
<tr>
<th class="fw-bold" nowrap>결제금</th>
<td class="amount-green" nowrap><?= number_format(intval($serviceEntity->getAmount())) ?>원</td>
</tr>
<tr>
<th class="fw-bold" nowrap>미납금</th>
<td class="amount-red" nowrap>
<?php if (array_key_exists($serviceEntity->getPK(), $serviceCellDatas['unPaids'])): ?>
총 <a href="/admin/customer/payment?clientinfo_uid=<?= $serviceEntity->getClientInfoUID() ?>&serviceinfo_uid=<?= $serviceEntity->getPK() ?>"><?= $serviceCellDatas['unPaids'][$serviceEntity->getPK()]['cnt'] ?>건/<?= number_format($serviceCellDatas['unPaids'][$serviceEntity->getPK()]['amount']) ?></a>원
<?php endif ?>
</td>
</tr>
<tr>
<td colspan="2" class="text-center"><?= $serviceCellDatas['service']->getHelper()->getListButton('onetime', '일회성 입력', ['entity' => $serviceEntity], ['class' => 'btn btn-sm btn-primary']) ?></td>
</tr>
</table>