Difference between revisions of "Document Approval API web services"
(→Contoh) |
|||
| (8 intermediate revisions by the same user not shown) | |||
| Line 7: | Line 7: | ||
== Cara penggunaan == | == Cara penggunaan == | ||
<p> | <p> | ||
| − | URL= https://HOST/infinite/org.openbravo.client.kernel?_action=org.wirabumi.gen.oez.event.DocumentRoutingHandler | + | * URL= https://HOST/infinite/org.openbravo.client.kernel?_action=org.wirabumi.gen.oez.event.DocumentRoutingHandler |
| − | METHOD = POST | + | * METHOD = POST |
| − | + | <br> | |
JSON raw format: | JSON raw format: | ||
| − | < | + | <pre> |
{ | { | ||
"DocRoutingStepId":null, | "DocRoutingStepId":null, | ||
| Line 20: | Line 20: | ||
"doc_status_from":"DR" | "doc_status_from":"DR" | ||
} | } | ||
| − | </ | + | </pre> |
| + | |||
| + | * recordIdList = Record ID yang akan di approved. | ||
| + | * windowId = adalah ID dari window yang akan diapproved | ||
| + | * adTabId = adalah ID tab dari window | ||
</p> | </p> | ||
| Line 41: | Line 45: | ||
|- | |- | ||
| Manage Requisitions || 1004400000 || 1004400001 | | Manage Requisitions || 1004400000 || 1004400001 | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
|} | |} | ||
| + | |||
| + | == Contoh == | ||
| + | Contoh penggunaan Document Approval API untuk merubah Document Status di window Sales Order dapat dilihat pada link berikut:<br> | ||
| + | <p> | ||
| + | [[Document Approval API for Sales Order(Sample)|Document Approval API for Sales Order(Sample)]] | ||
| + | </p> | ||
Latest revision as of 11:05, 28 May 2022
Introduction
API endpoint ini digunakan untuk memanggil proses approval selain dari dalam aplikasi ERP.
Cara penggunaan
- URL= https://HOST/infinite/org.openbravo.client.kernel?_action=org.wirabumi.gen.oez.event.DocumentRoutingHandler
- METHOD = POST
JSON raw format:
{
"DocRoutingStepId":null,
"recordIdList":["847A57EA29874F2A990535237A0B6AF2"],
"action":"OEZ_RELEASE",
"adTabId":"259",
"windowId":"170",
"doc_status_from":"DR"
}
- recordIdList = Record ID yang akan di approved.
- windowId = adalah ID dari window yang akan diapproved
- adTabId = adalah ID tab dari window
Daftar Window yang menerapkan approval
| Window Name | window ID | adTab ID | adTab Name |
|---|---|---|---|
| Purchase Order | 181 | 294 | Header |
| Goods Movements | 170 | 259 | Header |
| Sales Order | 143 | 186 | Header |
| Purchase Order | 181 | 294 | Header |
| Purchase Invoice | 183 | 290 | Header |
| Manage Requisitions | 1004400000 | 1004400001 |
Contoh
Contoh penggunaan Document Approval API untuk merubah Document Status di window Sales Order dapat dilihat pada link berikut: