diff options
| author | Rafi Zadanly <zadanlyr@gmail.com> | 2023-02-21 14:46:24 +0700 |
|---|---|---|
| committer | Rafi Zadanly <zadanlyr@gmail.com> | 2023-02-21 14:46:24 +0700 |
| commit | 3f2ff1475676ba47a841796e39e7d17d627e5356 (patch) | |
| tree | be21a1cedf031a66eaf27621a0578a5086a9d335 /src/lib/transaction/api/checkoutPoApi.js | |
| parent | fdfb47c3a825258b871ac5921605642e5e05fdd8 (diff) | |
fix
Diffstat (limited to 'src/lib/transaction/api/checkoutPoApi.js')
| -rw-r--r-- | src/lib/transaction/api/checkoutPoApi.js | 10 |
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 |
