|
@@ -88,3 +88,43 @@ export function getNewUserProfileMessage(ucpId: string) {
|
|
}
|
|
}
|
|
}, ucpId);
|
|
}, ucpId);
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+export function getNewPurchaseRequisition(ucpId: string) {
|
|
|
|
+ return getMessage({
|
|
|
|
+ "messageType": "Command",
|
|
|
|
+ "messageName": "New Purchase Requisition (cmd)",
|
|
|
|
+ "command": "New",
|
|
|
|
+ "data": {
|
|
|
|
+ "serviceId": "Purchase Requisition"
|
|
|
|
+ }
|
|
|
|
+ }, ucpId)
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+export function getSetPurchaseRequisitionDocDt(ucpId: string, value: string = "2021-01-10Z") {
|
|
|
|
+ return getMessage({
|
|
|
|
+ "messageType": "Command",
|
|
|
|
+ "messageName": "Change document date to 2021 Jan 10.",
|
|
|
|
+ "command": "SetItem",
|
|
|
|
+ "data": {
|
|
|
|
+ "serviceId": "Purchase Requisition",
|
|
|
|
+ "alias": "header",
|
|
|
|
+ "notifyChanged": true,
|
|
|
|
+ "column": {
|
|
|
|
+ "row": 1,
|
|
|
|
+ "name": "doc_dt",
|
|
|
|
+ "value": value,
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }, ucpId)
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+export function getCancelPurchaseRequisition(ucpId: string ) {
|
|
|
|
+ return getMessage({
|
|
|
|
+ "messageType": "Command",
|
|
|
|
+ "messageName": "Cancel Purchase Requisiton.",
|
|
|
|
+ "command": "CancelChanges",
|
|
|
|
+ "data": {
|
|
|
|
+ "serviceId": "Purchase Requisition",
|
|
|
|
+ }
|
|
|
|
+ }, ucpId)
|
|
|
|
+}
|