summaryrefslogtreecommitdiff
path: root/src/lib/transaction/api
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/transaction/api')
-rw-r--r--src/lib/transaction/api/checkoutPoApi.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/lib/transaction/api/checkoutPoApi.js b/src/lib/transaction/api/checkoutPoApi.js
new file mode 100644
index 00000000..aed43cff
--- /dev/null
+++ b/src/lib/transaction/api/checkoutPoApi.js
@@ -0,0 +1,10 @@
+import odooApi from "@/core/api/odooApi"
+import { getAuth } from "@/core/utils/auth"
+
+const checkoutPoApi = async ({ id }) => {
+ const auth = getAuth()
+ const dataCheckout = await odooApi('POST', `/api/v1/partner/${auth?.partnerId}/sale_order/${id}/checkout`)
+ return dataCheckout
+}
+
+export default checkoutPoApi \ No newline at end of file