diff options
| author | HATEC\SPVDEV001 <tri.susilo@altama.co.id> | 2024-03-06 14:30:27 +0700 |
|---|---|---|
| committer | HATEC\SPVDEV001 <tri.susilo@altama.co.id> | 2024-03-06 14:30:27 +0700 |
| commit | a5db88b5e8574edb1908fd2a9b9fa6cf5ed2ff05 (patch) | |
| tree | 133f179175d2a5244b25f00b2eeb8f5aed7b3c64 /src/lib/transaction/api/rejectApi.js | |
| parent | 272bed12b28763b6f51b97012a4533ab17a561ae (diff) | |
add approve dan reject
Diffstat (limited to 'src/lib/transaction/api/rejectApi.js')
| -rw-r--r-- | src/lib/transaction/api/rejectApi.js | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/lib/transaction/api/rejectApi.js b/src/lib/transaction/api/rejectApi.js new file mode 100644 index 00000000..127c0d38 --- /dev/null +++ b/src/lib/transaction/api/rejectApi.js @@ -0,0 +1,13 @@ +import odooApi from '@/core/api/odooApi' +import { getAuth } from '@/core/utils/auth' + +const rejectApi = async ({ id }) => { + const auth = getAuth() + const dataCheckout = await odooApi( + 'POST', + `/api/v1/partner/${auth?.partnerId}/sale_order/${id}/reject` + ) + return dataCheckout +} + +export default rejectApi |
