diff options
| author | it-fixcomart <it@fixcomart.co.id> | 2024-07-09 16:31:30 +0700 |
|---|---|---|
| committer | it-fixcomart <it@fixcomart.co.id> | 2024-07-09 16:31:30 +0700 |
| commit | dc204e9cdbcf7faf81dba825db608be2c918589d (patch) | |
| tree | 5ccc028038e18690cedd4a5c79906b54dbb2ca72 /src/lib/transaction/api | |
| parent | 556cbc1e5ea1c1ef0170c9a1b8f470a3d92d888e (diff) | |
<iman? add button reject & logic
Diffstat (limited to 'src/lib/transaction/api')
| -rw-r--r-- | src/lib/transaction/api/rejectProductApi.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/lib/transaction/api/rejectProductApi.js b/src/lib/transaction/api/rejectProductApi.js new file mode 100644 index 00000000..e03c7975 --- /dev/null +++ b/src/lib/transaction/api/rejectProductApi.js @@ -0,0 +1,9 @@ +import odooApi from '@/core/api/odooApi' + +const rejectProductApi = async ({ idSo, idProduct, reason }) => { + const dataCheckout = await odooApi('POST', `/api/v1/sale_order/${idSo}/reject/${idProduct}`, { + reason_reject: reason + }); + return dataCheckout +} +export default rejectProductApi
\ No newline at end of file |
