summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorit-fixcomart <it@fixcomart.co.id>2024-11-07 15:55:15 +0700
committerit-fixcomart <it@fixcomart.co.id>2024-11-07 15:55:15 +0700
commit2d99c50da37c2e68ed33a4bc20e9b2ff06578bbe (patch)
treea4e1ea3f041dc2abeb9fc74099fa862d97a85c7a /src
parent2bfa2138be7135dc12daa98262fbaf8305698f00 (diff)
<iman> update code
Diffstat (limited to 'src')
-rw-r--r--src/lib/transaction/components/Transaction.jsx14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/lib/transaction/components/Transaction.jsx b/src/lib/transaction/components/Transaction.jsx
index 777dd771..f64945f5 100644
--- a/src/lib/transaction/components/Transaction.jsx
+++ b/src/lib/transaction/components/Transaction.jsx
@@ -117,11 +117,12 @@ const Transaction = ({ id }) => {
}
closeCancelTransaction();
};
+ console.log('transaction', transaction);
const checkout = async () => {
- if (!transaction.data?.purchaseOrderFile) {
- toast.error('Mohon upload dokumen PO anda sebelum melanjutkan pesanan');
- return;
- }
+ // if (!transaction.data?.purchaseOrderFile) {
+ // toast.error('Mohon upload dokumen PO anda sebelum melanjutkan pesanan');
+ // return;
+ // }
await checkoutPoApi({ id });
toast.success('Berhasil melanjutkan pesanan');
transaction.refetch();
@@ -161,6 +162,8 @@ const Transaction = ({ id }) => {
'-'
)}`;
}
+ toast.success('Berhasil melanjutkan pesanan');
+ transaction.refetch();
/* const midtrans = async () => {
for (const product of products) deleteItemCart({ productId: product.id });
@@ -179,9 +182,6 @@ const Transaction = ({ id }) => {
)}`;
}
};*/
- toast.success('Berhasil melanjutkan pesanan');
- transaction.refetch();
- y;
};
const handleApproval = async () => {