From 57ace93dc3090a54d65d3b84ae50e8a9249eb314 Mon Sep 17 00:00:00 2001
From: Miqdad <ahmadmiqdad27@gmail.com>
Date: Mon, 8 Sep 2025 14:58:30 +0700
Subject: <Miqdad> Sip

---
 src/lib/transaction/components/Transactions.jsx | 44 ++++++++++++++-----------
 1 file changed, 24 insertions(+), 20 deletions(-)

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

diff --git a/src/lib/transaction/components/Transactions.jsx b/src/lib/transaction/components/Transactions.jsx
index 2e3eaaa2..600518fa 100644
--- a/src/lib/transaction/components/Transactions.jsx
+++ b/src/lib/transaction/components/Transactions.jsx
@@ -704,6 +704,30 @@ const Transactions = ({ context = '' }) => {
             active={toOthers}
             close={() => setToOthers(null)}
           >
+            {transactions.data?.status === 'draft' && (
+              <>
+                <button
+                  className='text-left disabled:opacity-60'
+                  disabled={toOthers?.status != 'draft'}
+                  onClick={() => {
+                    downloadQuotation(toOthers);
+                    setToOthers(null);
+                  }}
+                >
+                  Download Quotation
+                </button>
+                <button
+                  className='text-left disabled:opacity-60'
+                  disabled={toOthers?.status != 'waiting'}
+                  onClick={() => {
+                    setToCancel(toOthers);
+                    setToOthers(null);
+                  }}
+                >
+                  Batalkan Transaksi
+                </button>
+              </>
+            )}
             <div className='flex flex-col gap-y-4 mt-2'>
               <button
                 className='text-left disabled:opacity-60'
@@ -715,26 +739,6 @@ const Transactions = ({ context = '' }) => {
               >
                 Download PO
               </button>
-              <button
-                className='text-left disabled:opacity-60'
-                disabled={toOthers?.status != 'draft'}
-                onClick={() => {
-                  downloadQuotation(toOthers);
-                  setToOthers(null);
-                }}
-              >
-                Download Quotation
-              </button>
-              <button
-                className='text-left disabled:opacity-60'
-                disabled={toOthers?.status != 'waiting'}
-                onClick={() => {
-                  setToCancel(toOthers);
-                  setToOthers(null);
-                }}
-              >
-                Batalkan Transaksi
-              </button>
             </div>
           </BottomPopup>
 
-- 
cgit v1.2.3

