From c8cb137354ec569b4a13e180bc9cac2cab90c470 Mon Sep 17 00:00:00 2001
From: "HATEC\\SPVDEV001" <tri.susilo@altama.co.id>
Date: Sat, 6 Apr 2024 12:31:45 +0700
Subject: add voucher minus

---
 src/lib/checkout/email/FinishCheckoutEmail.jsx | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'src/lib/checkout/email/FinishCheckoutEmail.jsx')

diff --git a/src/lib/checkout/email/FinishCheckoutEmail.jsx b/src/lib/checkout/email/FinishCheckoutEmail.jsx
index d40ce7d4..23e7f877 100644
--- a/src/lib/checkout/email/FinishCheckoutEmail.jsx
+++ b/src/lib/checkout/email/FinishCheckoutEmail.jsx
@@ -91,7 +91,7 @@ const FinishCheckoutEmail = ({ transaction, payment, statusPayment }) => {
                 menyelesaikan transaksi dengan detail dibawah ini:
                 <ul>
                   <li>Nomor Pembelian: {transaction.name}</li>
-                  <li>Nominal: {currencyFormat(transaction.amountTotal)}</li>
+                  <li>Nominal: {transaction.amountTotal > 0 ? currencyFormat(transaction.amountTotal) : '0'}</li>
                   <li>Tanggal: {transaction.dateOrder}</li>
                 </ul>
               </>
@@ -213,7 +213,7 @@ const FinishCheckoutEmail = ({ transaction, payment, statusPayment }) => {
                 <Column style={style.descriptionLCol}>Grand Total</Column>
                 <Column style={style.descriptionRCol}>
                   <span style={{ fontWeight: '600' }}>
-                    {currencyFormat(transaction.amountTotal)}
+                    {transaction.amountTotal > 0 ? currencyFormat(transaction.amountTotal) : '0'}
                   </span>
                 </Column>
               </Row>
-- 
cgit v1.2.3

