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 {