From 2cfbc8dee4da9df302bed3d5166b718aae956a1f Mon Sep 17 00:00:00 2001
From: Rafi Zadanly <zadanlyr@gmail.com>
Date: Wed, 17 May 2023 14:32:54 +0700
Subject: add biaya pengiriman di component transaction

---
 src/lib/transaction/components/Transaction.jsx | 9 +++++++++
 1 file changed, 9 insertions(+)

(limited to 'src/lib/transaction/components/Transaction.jsx')

diff --git a/src/lib/transaction/components/Transaction.jsx b/src/lib/transaction/components/Transaction.jsx
index 7a1e0dd7..687b3f4b 100644
--- a/src/lib/transaction/components/Transaction.jsx
+++ b/src/lib/transaction/components/Transaction.jsx
@@ -86,6 +86,10 @@ const Transaction = ({ id }) => {
           <p className='text-gray_r-12/70'>PPN 11%</p>
           <p>{currencyFormat(transaction.data?.amountTax)}</p>
         </div>
+        <div className='flex justify-between mt-1'>
+          <p className='text-gray_r-12/70'>Biaya Pengiriman</p>
+          <p>{currencyFormat(transaction.data?.deliveryAmount)}</p>
+        </div>
         <div className='flex justify-between mt-1 font-medium'>
           <p>Grand Total</p>
           <p>{currencyFormat(transaction.data?.amountTotal)}</p>
@@ -397,6 +401,11 @@ const Transaction = ({ id }) => {
                     {currencyFormat(transaction.data?.amountTax)}
                   </div>
 
+                  <div className='text-right'>Biaya Pengiriman</div>
+                  <div className='text-right font-medium'>
+                    {currencyFormat(transaction.data?.deliveryAmount)}
+                  </div>
+
                   <div className='text-right'>Grand Total</div>
                   <div className='text-right font-medium text-gray_r-12'>
                     {currencyFormat(transaction.data?.amountTotal)}
-- 
cgit v1.2.3

