Pārlūkot izejas kodu

added codes for new purchase requisition

thomas 3 gadi atpakaļ
vecāks
revīzija
93889efe54
2 mainītis faili ar 47 papildinājumiem un 1 dzēšanām
  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)
+}

Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 7 - 1
src/components/UIClient.vue


Daži faili netika attēloti, jo izmaiņu fails ir pārāk liels