From 0f7ce7842c70bc1fee1ae6f3cff0ccf7be8eaa6f Mon Sep 17 00:00:00 2001
From: it-fixcomart <it@fixcomart.co.id>
Date: Mon, 18 Nov 2024 10:55:34 +0700
Subject: <iman> update

---
 src/lib/transaction/components/Transaction.jsx | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

(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 d001c7f4..a6a9cf6b 100644
--- a/src/lib/transaction/components/Transaction.jsx
+++ b/src/lib/transaction/components/Transaction.jsx
@@ -46,7 +46,7 @@ const Transaction = ({ id }) => {
   const [reason, setReason] = useState('');
   const auth = useAuth();
   const { transaction } = useTransaction({ id });
-
+  console.log('transaction', transaction);
   const statusApprovalWeb = transaction.data?.approvalStep;
 
   const { queryAirwayBill } = useAirwayBill({ orderId: id });
@@ -779,8 +779,10 @@ const Transaction = ({ id }) => {
                                 : ''}
                             </div>
                             <div className='text-[10px] text-red-500 italic mt-2'>
-                              {product.availableQuantity} barang ini bisa di
-                              pickup maksimal pukul 16.00
+                              {product.soQty !== product.reservedStockQty
+                                ? 'Barang sedang disiapkan'
+                                : `${product.reservedStockQty} barang bisa di
+                              kirim/pickup`}
                             </div>
                           </div>
                         </td>
-- 
cgit v1.2.3

