From ec558075368b987225e7a96993c2a2d39a4bcf51 Mon Sep 17 00:00:00 2001 From: Miqdad Date: Mon, 18 Aug 2025 14:09:03 +0700 Subject: Use child property payment term --- src/lib/quotation/components/Quotation.jsx | 6 +++--- 1 file changed, 3 insertions(+), 3 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 f0791512..c7e5b16a 100644 --- a/src/lib/quotation/components/Quotation.jsx +++ b/src/lib/quotation/components/Quotation.jsx @@ -33,7 +33,7 @@ import ExpedisiList from '../../checkout/api/ExpedisiList'; import SectionQuotationExpedition from '@/lib/checkout/components/SectionQuotationExpedition'; import { useQuotation } from '@/lib/checkout/stores/stateQuotation'; -const { checkoutApi } = require('@/lib/checkout/api/checkoutApi'); +const { checkoutApi, checkoutQuotation } = require('@/lib/checkout/api/checkoutApi'); const { getProductsCheckout } = require('@/lib/checkout/api/checkoutApi'); const Quotation = () => { @@ -243,8 +243,8 @@ const Quotation = () => { note_website: note_websiteText, }; - const isSuccess = await checkoutApi({ data }); - + const isSuccess = await checkoutQuotation(data); + if (isSuccess?.id) { for (const product of products) { deleteItemCart({ productId: product.id }); -- cgit v1.2.3