Browse Source

added codes for new purchase requisition

thomas 3 years ago
parent
commit
93889efe54
2 changed files with 47 additions and 1 deletions
  1. 40 0
      src/assets/js/__message-util.ts
  2. 7 1
      src/components/UIClient.vue

+ 40 - 0
src/assets/js/__message-util.ts

@@ -88,3 +88,43 @@ export function getNewUserProfileMessage(ucpId: string) {
     }
   }, 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)
+}

File diff suppressed because it is too large
+ 7 - 1
src/components/UIClient.vue


Some files were not shown because too many files changed in this diff