diff options
| author | IT Fixcomart <it@fixcomart.co.id> | 2024-11-29 03:22:24 +0000 |
|---|---|---|
| committer | IT Fixcomart <it@fixcomart.co.id> | 2024-11-29 03:22:24 +0000 |
| commit | 37cd18a88f0f104e81c1b6f33f9bab7b2a0b2dfb (patch) | |
| tree | afb0c9dfd885bc5d9d431caefd4760cc5bc11ed0 /src/lib/transaction/api/checkoutPoApi.js | |
| parent | 952421c810b53ec4d25ad5ef605bae1bd1d5d616 (diff) | |
| parent | da8350ee1de81d668e117744c3735d848dd53f6e (diff) | |
Merged in CR/quotation-noPo (pull request #389)
CR/quotation noPo
Diffstat (limited to 'src/lib/transaction/api/checkoutPoApi.js')
| -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; |
