| |||||||||||||||
diff --git a/app/Services/PaymentService.php b/app/Services/PaymentService.php index e7d9fad..b7b965a 100644 --- a/app/Services/PaymentService.php +++ b/app/Services/PaymentService.php @@ -244,11 +244,13 @@ class PaymentService extends CommonService implements PaymentInterface $rows[$clientEntity->getPK()]['services'][$serviceEntity->getPK()] = [ 'ip' => $serverEntity->getIP(), 'billing_at' => $serviceEntity->getBillingAt(), + 'amount' => 0, 'items' => [], ]; } //entities에 총 결제금액 설정 $rows[$clientEntity->getPK()]['services'][$serviceEntity->getPK()]['items'][] = ['title' => $entity->getTitle(), 'amount' => $entity->getAmount()]; + $rows[$clientEntity->getPK()]['services'][$serviceEntity->getPK()]['amount'] += $entity->getAmount(); $rows[$clientEntity->getPK()]['total_amount'] += $entity->getAmount(); return $rows; } diff --git a/app/Views/admin/payment/invoice.php b/app/Views/admin/payment/invoice.php index 1d2a801..2019405 100644 --- a/app/Views/admin/payment/invoice.php +++ b/app/Views/admin/payment/invoice.php @@ -2,7 +2,7 @@ = $this->section('content') ?>
| |||||||||||||||