diff options
| author | HATEC\SPVDEV001 <tri.susilo@altama.co.id> | 2024-03-26 08:41:00 +0700 |
|---|---|---|
| committer | HATEC\SPVDEV001 <tri.susilo@altama.co.id> | 2024-03-26 08:41:00 +0700 |
| commit | 5c91908b097fde024acdc442359d0e0dc4baa92a (patch) | |
| tree | e60d5f773d172feaf96cb3bf9a5cb80f39df463e /src/lib/quotation | |
| parent | a5444f8873f67a073f7a452213950a858629796d (diff) | |
fixing checkout
Diffstat (limited to 'src/lib/quotation')
| -rw-r--r-- | src/lib/quotation/components/Quotation.jsx | 6 |
1 files changed, 2 insertions, 4 deletions
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, |
