From 78847dac7050457ea636077f059dd254e972d368 Mon Sep 17 00:00:00 2001 From: "choi.jh" Date: Mon, 23 Jun 2025 16:50:20 +0900 Subject: [PATCH] dbms_init...1 --- app/Entities/Customer/ServiceItemEntity.php | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/app/Entities/Customer/ServiceItemEntity.php b/app/Entities/Customer/ServiceItemEntity.php index 7d6da68..15c91d3 100644 --- a/app/Entities/Customer/ServiceItemEntity.php +++ b/app/Entities/Customer/ServiceItemEntity.php @@ -39,7 +39,16 @@ class ServiceItemEntity extends CustomerEntity } public function getView_Sale(): string { - return $this->getPrice() > $this->getAmount() ? "" : ICONS['SALE_DOWN']; + $result = ""; + //할인시 + if ($this->getPrice() > $this->getAmount()) { + $result = ICONS['SALE_DOWN']; + } + //부가가치시 + if ($this->getPrice() < $this->getAmount()) { + $result = ICONS['SALE_UP']; + } + return $result; } public function getView_BillingCycle(): string {