diff options
| author | it-fixcomart <it@fixcomart.co.id> | 2024-11-29 10:55:52 +0700 |
|---|---|---|
| committer | it-fixcomart <it@fixcomart.co.id> | 2024-11-29 10:55:52 +0700 |
| commit | ac83b0ea5afd82194f38fbc913678e16a81b5c2c (patch) | |
| tree | 4373da17bcb43d752b7bd888e28ba906099a19aa /src/lib/transaction/api | |
| parent | c7b437cd0541cde9e2a829ec3c5689dc237505a8 (diff) | |
| parent | b4861f70338adb3960125923a7e6e4032279c88e (diff) | |
Merge branch 'new-release' into Feature/pengajuan-tempo
# Conflicts:
# src/lib/auth/components/Menu.jsx
# src/pages/my/menu.jsx
Diffstat (limited to 'src/lib/transaction/api')
| -rw-r--r-- | src/lib/transaction/api/checkoutPoApi.js | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/src/lib/transaction/api/checkoutPoApi.js b/src/lib/transaction/api/checkoutPoApi.js index 04421368..3376e773 100644 --- a/src/lib/transaction/api/checkoutPoApi.js +++ b/src/lib/transaction/api/checkoutPoApi.js @@ -1,13 +1,14 @@ -import odooApi from '@/core/api/odooApi' -import { getAuth } from '@/core/utils/auth' +import odooApi from '@/core/api/odooApi'; +import { getAuth } from '@/core/utils/auth'; -const checkoutPoApi = async ({ id }) => { - const auth = getAuth() +const checkoutPoApi = async ({ id, status }) => { + const auth = getAuth(); const dataCheckout = await odooApi( 'POST', - `/api/v1/partner/${auth?.partnerId}/sale_order/${id}/checkout` - ) - return dataCheckout -} + `/api/v1/partner/${auth?.partnerId}/sale_order/${id}/checkout`, + { status } + ); + return dataCheckout; +}; -export default checkoutPoApi +export default checkoutPoApi; |
