summaryrefslogtreecommitdiff
path: root/src/lib/checkout/api/checkoutApi.js
diff options
context:
space:
mode:
authorIT Fixcomart <it@fixcomart.co.id>2025-08-18 11:28:04 +0000
committerIT Fixcomart <it@fixcomart.co.id>2025-08-18 11:28:04 +0000
commit8e2af6c1bf6d17b5409c5eb0c1e25e2da882898f (patch)
tree96d6a403c33a19b6a2570be0c02415b251920335 /src/lib/checkout/api/checkoutApi.js
parent6c731073abb2cdaa67c503c17fdd5420c87bbe01 (diff)
parentec558075368b987225e7a96993c2a2d39a4bcf51 (diff)
Merged in payment_term_quotation (pull request #447)
<Miqdad> Use child property payment term
Diffstat (limited to 'src/lib/checkout/api/checkoutApi.js')
-rw-r--r--src/lib/checkout/api/checkoutApi.js10
1 files changed, 10 insertions, 0 deletions
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;