From 5c91908b097fde024acdc442359d0e0dc4baa92a Mon Sep 17 00:00:00 2001 From: "HATEC\\SPVDEV001" Date: Tue, 26 Mar 2024 08:41:00 +0700 Subject: fixing checkout --- src/lib/quotation/components/Quotation.jsx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/lib/quotation/components/Quotation.jsx') diff --git a/src/lib/quotation/components/Quotation.jsx b/src/lib/quotation/components/Quotation.jsx index fbb0627c..09d55e92 100644 --- a/src/lib/quotation/components/Quotation.jsx +++ b/src/lib/quotation/components/Quotation.jsx @@ -152,7 +152,6 @@ const Quotation = () => { setCheckoutValidation(false); if (selectedCarrier != 0 && selectedCarrier != 1 && totalWeight > 0) { - console.log('masuk'); loadServiceRajaOngkir(); } else { setListServiceExpedisi(); @@ -215,7 +214,6 @@ const Quotation = () => { setProducts(cartCheckout?.products); setCheckWeight(cartCheckout?.hasProductWithoutWeight); setTotalWeight(cartCheckout?.totalWeight.g); - console.log(cartCheckout); }, [cartCheckout]); useEffect(() => { @@ -260,8 +258,8 @@ const Quotation = () => { quantity: product.quantity, })); let data = { - partner_shipping_id: auth.partnerId, - partner_invoice_id: auth.partnerId, + partner_shipping_id: selectedAddress.shipping.id, + partner_invoice_id: selectedAddress.invoicing.id, user_id: auth.id, order_line: JSON.stringify(productOrder), delivery_amount: biayaKirim, -- cgit v1.2.3