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/checkout/api/checkoutApi.js | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/lib/checkout/api') diff --git a/src/lib/checkout/api/checkoutApi.js b/src/lib/checkout/api/checkoutApi.js index c30d9631..11c7d4c2 100644 --- a/src/lib/checkout/api/checkoutApi.js +++ b/src/lib/checkout/api/checkoutApi.js @@ -11,6 +11,16 @@ export const checkoutApi = async ({ data }) => { return dataCheckout; }; +export const checkoutQuotation = async (data) => { + const auth = getAuth(); + const qs = new URLSearchParams({ context: 'quotation' }).toString(); + return odooApi( + 'POST', + `/api/v1/partner/${auth.partnerId}/sale_order/checkout?${qs}`, + data + ); +}; + export const getProductsCheckout = async (query) => { const queryParam = new URLSearchParams(query); const userId = getAuth()?.id; -- cgit v1.2.3