Skip to content

Commit

Permalink
Merge pull request #172 from nhnacademy-be4-My-Books/feature/category
Browse files Browse the repository at this point in the history
refactor: 원화 표시 추가 및 소수점 제대로 찍도록 수정
  • Loading branch information
damho-lee authored Mar 27, 2024
2 parents e202740 + 38fa6cb commit 98b5dd8
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/main/resources/templates/admin/view/coupon/coupon.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,12 @@ <h1>쿠폰 페이지</h1>
<td th:text="${coupon.name}"></td>
<td th:text="${coupon.range}"></td>
<td th:text="${coupon.target}"></td>
<td th:text="${coupon.orderMin}"></td>
<td th:text="'₩' + ${#numbers.formatInteger(coupon.orderMin, 0, 'COMMA')}"></td>
<td th:if="${coupon.isRate}" th:text="${coupon.discountRateOrCost} + '%'"></td>
<td th:unless="${coupon.isRate}"
th:text="'₩' + ${#numbers.formatInteger(coupon.discountRateOrCost, 3, 'COMMA')}"></td>
<td th:text="${coupon.maxDiscountCost}"></td>
th:text="'₩' + ${#numbers.formatInteger(coupon.discountRateOrCost, 0, 'COMMA')}"></td>
<td th:if="${coupon.maxDiscountCost}" th:text="'₩' + ${#numbers.formatInteger(coupon.maxDiscountCost, 0, 'COMMA')}"></td>
<td th:unless="${coupon.maxDiscountCost}"></td>
<td th:text="${coupon.startDate}"></td>
<td th:text="${coupon.endDate}"></td>
<td>
Expand Down

0 comments on commit 98b5dd8

Please sign in to comment.