repzo-sap-absjo 1.0.10 → 1.0.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (79) hide show
  1. package/changelog.md +2 -0
  2. package/lib/actions/create_invoice.d.ts +19 -13
  3. package/lib/actions/create_invoice.js +356 -208
  4. package/lib/actions/create_payment.d.ts +4 -1
  5. package/lib/actions/create_payment.js +191 -117
  6. package/lib/actions/create_proforma.d.ts +4 -1
  7. package/lib/actions/create_proforma.js +285 -155
  8. package/lib/actions/create_return_invoice.d.ts +4 -1
  9. package/lib/actions/create_return_invoice.js +312 -169
  10. package/lib/actions/create_transfer.d.ts +4 -1
  11. package/lib/actions/create_transfer.js +223 -136
  12. package/lib/actions/index.js +23 -15
  13. package/lib/commands/adjust_inventory.d.ts +4 -2
  14. package/lib/commands/adjust_inventory.js +290 -160
  15. package/lib/commands/bank.d.ts +4 -2
  16. package/lib/commands/bank.js +279 -157
  17. package/lib/commands/basic.js +66 -47
  18. package/lib/commands/category.d.ts +3 -1
  19. package/lib/commands/category.js +178 -104
  20. package/lib/commands/channel.d.ts +3 -1
  21. package/lib/commands/channel.js +198 -117
  22. package/lib/commands/client.d.ts +34 -32
  23. package/lib/commands/client.js +404 -244
  24. package/lib/commands/client_disabled.d.ts +3 -1
  25. package/lib/commands/client_disabled.js +163 -94
  26. package/lib/commands/index.d.ts +15 -11
  27. package/lib/commands/index.js +60 -60
  28. package/lib/commands/join.js +192 -66
  29. package/lib/commands/measureunit.d.ts +19 -14
  30. package/lib/commands/measureunit.js +289 -191
  31. package/lib/commands/measureunit_family.d.ts +10 -8
  32. package/lib/commands/measureunit_family.js +250 -138
  33. package/lib/commands/payment_term.d.ts +3 -1
  34. package/lib/commands/payment_term.js +202 -123
  35. package/lib/commands/price_list.d.ts +15 -15
  36. package/lib/commands/price_list.js +612 -326
  37. package/lib/commands/product.d.ts +32 -30
  38. package/lib/commands/product.js +426 -243
  39. package/lib/commands/product_disabled.d.ts +3 -1
  40. package/lib/commands/product_disabled.js +164 -94
  41. package/lib/commands/rep.js +221 -141
  42. package/lib/commands/tag.js +174 -109
  43. package/lib/commands/tax.js +177 -112
  44. package/lib/commands/warehouse.d.ts +3 -1
  45. package/lib/commands/warehouse.js +207 -119
  46. package/lib/index.d.ts +21 -12
  47. package/lib/test/actions/create_invoice.js +193 -188
  48. package/lib/test/actions/create_payment.js +112 -107
  49. package/lib/test/actions/create_proforma.js +220 -216
  50. package/lib/test/actions/create_return_invoice.js +205 -200
  51. package/lib/test/actions/create_transfer.js +120 -115
  52. package/lib/test/commands/adjust_inventory.js +90 -90
  53. package/lib/test/commands/bank.js +90 -90
  54. package/lib/test/commands/basic.js +328 -327
  55. package/lib/test/commands/category.js +90 -90
  56. package/lib/test/commands/channel.js +90 -90
  57. package/lib/test/commands/client.js +355 -353
  58. package/lib/test/commands/client_disabled.js +90 -90
  59. package/lib/test/commands/join.js +328 -327
  60. package/lib/test/commands/measureunit.js +90 -90
  61. package/lib/test/commands/measureunit_family.js +90 -90
  62. package/lib/test/commands/payment_term.js +90 -90
  63. package/lib/test/commands/price_list.js +337 -334
  64. package/lib/test/commands/product.js +90 -90
  65. package/lib/test/commands/product_disabled.js +90 -90
  66. package/lib/test/commands/rep.js +346 -344
  67. package/lib/test/commands/tag.js +90 -90
  68. package/lib/test/commands/tax.js +90 -90
  69. package/lib/test/commands/warehouse.js +90 -90
  70. package/lib/types.d.ts +83 -60
  71. package/lib/util.d.ts +70 -19
  72. package/lib/util.js +170 -144
  73. package/package.json +2 -2
  74. package/src/actions/create_invoice.ts +11 -16
  75. package/src/actions/create_payment.ts +11 -16
  76. package/src/actions/create_proforma.ts +19 -24
  77. package/src/actions/create_return_invoice.ts +11 -16
  78. package/src/actions/create_transfer.ts +23 -28
  79. package/src/commands/product.ts +1 -0
@@ -1,338 +1,339 @@
1
1
  import { Commands } from "../../index.js";
2
2
  let commandEvent = {
3
- app: {
4
- _id: "6391a53edb71ef6435719794",
5
- name: "SAP",
6
- disabled: false,
7
- available_app: {
8
- _id: "6391a268db71ef64357195da",
9
- name: "repzo-sap-absjo",
10
- title: "SAP ABS JO",
11
- logo: "https://www.e2abs.com/wp-content/uploads/2021/03/Website-Main-Logo-1.svg",
12
- description: "",
13
- disabled: false,
14
- JSONSchema: {
15
- title: "SAP Integration Settings",
16
- type: "object",
17
- required: ["repzoApiKey", "sapHostUrl"],
18
- properties: {
19
- repzoApiKey: {
20
- type: "string",
21
- title: "Repzo API KEY",
22
- },
23
- sapHostUrl: {
24
- type: "string",
25
- title: "SAP Host Url",
26
- },
27
- errorEmail: {
28
- type: "string",
29
- format: "email",
30
- title: "Email in case of error",
31
- },
32
- GroupCode: {
33
- type: "string",
34
- format: "string",
35
- title: "Customers GroupCode",
36
- },
37
- warehouseDefaultUpdateDate: {
38
- type: "string",
39
- format: "date",
40
- title: "Warehouse: Default Update Date",
41
- },
42
- DepartmentCode: {
43
- type: "string",
44
- format: "string",
45
- title: "Invoice/Return Department Code",
46
- },
47
- return_reason: {
48
- type: "string",
49
- format: "string",
50
- title: "Return Reason Array",
51
- },
52
- SalPersCode: {
53
- type: "string",
54
- format: "string",
55
- title: "Default Sales Person Code For Sales Orders",
56
- },
57
- SalesPersonCode: {
58
- type: "string",
59
- format: "string",
60
- title: "Default Sales Person Code For Transfer",
61
- },
62
- invoices: {
63
- type: "object",
64
- title: "Invoices",
65
- required: ["createInvoiceHook", "createReturnInvoiceHook"],
66
- properties: {
67
- createInvoiceHook: {
68
- type: "boolean",
69
- title: "Live Sync Invoices from Repzo to SAP",
70
- default: false,
71
- },
72
- createReturnInvoiceHook: {
73
- type: "boolean",
74
- title: "Live Sync Return Invoice from Repzo to SAP",
75
- default: false,
76
- },
77
- },
78
- },
79
- payments: {
80
- type: "object",
81
- title: "Payments",
82
- required: ["createPaymentHook"],
83
- properties: {
84
- createPaymentHook: {
85
- type: "boolean",
86
- title: "Live Sync Payments from Repzo to SAP",
87
- default: false,
88
- },
89
- },
90
- },
91
- proformas: {
92
- type: "object",
93
- title: "Sales Orders",
94
- required: ["createApprovedProformaHook"],
95
- properties: {
96
- createApprovedProformaHook: {
97
- type: "boolean",
98
- title: "Live Sync Approved Sales Orders from Repzo to SAP",
99
- default: false,
100
- },
101
- },
102
- },
103
- transfers: {
104
- type: "object",
105
- title: "Transfers",
106
- required: ["createApprovedTransferHook"],
107
- properties: {
108
- createApprovedTransferHook: {
109
- type: "boolean",
110
- title: "Live Sync Approved Transfers from Repzo to SAP",
111
- default: false,
112
- },
113
- },
114
- },
115
- },
3
+ app: {
4
+ _id: "6391a53edb71ef6435719794",
5
+ name: "SAP",
6
+ disabled: false,
7
+ available_app: {
8
+ _id: "6391a268db71ef64357195da",
9
+ name: "repzo-sap-absjo",
10
+ title: "SAP ABS JO",
11
+ logo: "https://www.e2abs.com/wp-content/uploads/2021/03/Website-Main-Logo-1.svg",
12
+ description: "",
13
+ disabled: false,
14
+ JSONSchema: {
15
+ title: "SAP Integration Settings",
16
+ type: "object",
17
+ required: ["repzoApiKey", "sapHostUrl"],
18
+ properties: {
19
+ repzoApiKey: {
20
+ type: "string",
21
+ title: "Repzo API KEY",
22
+ },
23
+ sapHostUrl: {
24
+ type: "string",
25
+ title: "SAP Host Url",
26
+ },
27
+ errorEmail: {
28
+ type: "string",
29
+ format: "email",
30
+ title: "Email in case of error",
31
+ },
32
+ GroupCode: {
33
+ type: "string",
34
+ format: "string",
35
+ title: "Customers GroupCode",
36
+ },
37
+ warehouseDefaultUpdateDate: {
38
+ type: "string",
39
+ format: "date",
40
+ title: "Warehouse: Default Update Date",
41
+ },
42
+ DepartmentCode: {
43
+ type: "string",
44
+ format: "string",
45
+ title: "Invoice/Return Department Code",
46
+ },
47
+ return_reason: {
48
+ type: "string",
49
+ format: "string",
50
+ title: "Return Reason Array",
51
+ },
52
+ SalPersCode: {
53
+ type: "string",
54
+ format: "string",
55
+ title: "Default Sales Person Code For Sales Orders",
56
+ },
57
+ SalesPersonCode: {
58
+ type: "string",
59
+ format: "string",
60
+ title: "Default Sales Person Code For Transfer",
61
+ },
62
+ invoices: {
63
+ type: "object",
64
+ title: "Invoices",
65
+ required: ["createInvoiceHook", "createReturnInvoiceHook"],
66
+ properties: {
67
+ createInvoiceHook: {
68
+ type: "boolean",
69
+ title: "Live Sync Invoices from Repzo to SAP",
70
+ default: false,
71
+ },
72
+ createReturnInvoiceHook: {
73
+ type: "boolean",
74
+ title: "Live Sync Return Invoice from Repzo to SAP",
75
+ default: false,
76
+ },
116
77
  },
117
- options_JSONSchema: {
118
- title: "SAP Integration Optional Settings",
119
- type: "object",
120
- required: [],
121
- properties: {
122
- bench_time_warehouse: {
123
- title: "Bench Time: Warehouse",
124
- type: "string",
125
- format: "date",
126
- },
127
- },
78
+ },
79
+ payments: {
80
+ type: "object",
81
+ title: "Payments",
82
+ required: ["createPaymentHook"],
83
+ properties: {
84
+ createPaymentHook: {
85
+ type: "boolean",
86
+ title: "Live Sync Payments from Repzo to SAP",
87
+ default: false,
88
+ },
128
89
  },
129
- app_settings: {
130
- repo: "",
131
- serviceEndPoint: "",
132
- _id: "6391a268db71ef64357195db",
90
+ },
91
+ proformas: {
92
+ type: "object",
93
+ title: "Sales Orders",
94
+ required: ["createApprovedProformaHook"],
95
+ properties: {
96
+ createApprovedProformaHook: {
97
+ type: "boolean",
98
+ title: "Live Sync Approved Sales Orders from Repzo to SAP",
99
+ default: false,
100
+ },
133
101
  },
134
- app_category: "6249fa8466312f76e595634a",
135
- commands: [
136
- {
137
- command: "basic",
138
- name: "Full Sync",
139
- description: "",
140
- _id: "6391a268db71ef64357195dc",
141
- },
142
- {
143
- command: "join",
144
- name: "Join",
145
- description: "",
146
- _id: "6391a268db71ef64357195dd",
147
- },
148
- {
149
- command: "warehouse",
150
- name: "Sync Warehouse",
151
- description: "Sync Warehouses From SAP to Repzo",
152
- _id: "6391c42a1b0f4f7a30e40f40",
153
- },
154
- {
155
- command: "rep",
156
- name: "Sync Representatives",
157
- description: "Sync Representatives From SAP to Repzo",
158
- _id: "639715c2bee5dd4b6b11e129",
159
- },
160
- {
161
- command: "tax",
162
- name: "Sync Taxes",
163
- description: "Sync Taxes From SAP to Repzo",
164
- _id: "639715c2bee5dd4b6b11e12a",
165
- },
166
- {
167
- command: "tag",
168
- name: "Sync Area Tags",
169
- description: "Sync Area Tags From SAP to Repzo",
170
- _id: "639715c2bee5dd4b6b11e12b",
171
- },
172
- {
173
- command: "measureunit",
174
- name: "Sync Measure Units",
175
- description: "Sync Measure Units From SAP to Repzo",
176
- _id: "639817eaedafde008af0ad0e",
177
- },
178
- {
179
- command: "measureunit_family",
180
- name: "Sync Measure Units Family",
181
- description: "Sync Measure Units Family From SAP to Repzo",
182
- _id: "63982d09edafde008af0f698",
183
- },
184
- {
185
- command: "category",
186
- name: "Sync Product Category",
187
- description: "Sync Product Categories From SAP to Repzo",
188
- _id: "63984085edafde008af2f689",
189
- },
190
- {
191
- command: "channel",
192
- name: "Sync Client's Channels",
193
- description: "Sync Client's Channels From SAP to Repzo",
194
- _id: "63984085edafde008af2f689",
195
- },
196
- {
197
- command: "payment_term",
198
- name: "Sync Payments Term",
199
- description: "Sync Payments Term From SAP to Repzo",
200
- _id: "63984085edafde008af2f68a",
201
- },
202
- {
203
- command: "bank",
204
- name: "Sync Banks",
205
- description: "Sync Banks From SAP to Repzo",
206
- _id: "63986018333b84929c538570",
207
- },
208
- {
209
- command: "product",
210
- name: "Sync Products",
211
- description: "Sync Active Products From SAP to Repzo",
212
- _id: "63987139333b84929c53a293",
213
- },
214
- {
215
- command: "disabled_product",
216
- name: "Sync Inactive Products",
217
- description: "Sync Inactive Products From SAP to Repzo",
218
- _id: "6399714d0242db686d496466",
219
- },
220
- {
221
- command: "price_list",
222
- name: "Sync Price Lists",
223
- description: "Sync Price Lists From SAP to Repzo",
224
- _id: "639972d6e8a1cfdd26deaa7e",
225
- },
226
- {
227
- command: "client",
228
- name: "Sync Clients",
229
- description: "Sync Clients From SAP to Repzo",
230
- _id: "63997615e8a1cfdd26ded7d1",
231
- },
232
- {
233
- command: "disabled_client",
234
- name: "Sync Inactive Clients",
235
- description: "Sync Inactive Clients From SAP to Repzo",
236
- _id: "639ac554e157f1c63770c1bc",
237
- },
238
- {
239
- command: "adjust_inventory",
240
- name: "Adjust Inventories",
241
- description: "Adjust Inventories From SAP to Repzo",
242
- _id: "639ac56fe157f1c63770c2eb",
243
- },
244
- ],
245
- actions: [
246
- {
247
- action: "create_invoice",
248
- name: "Sync Invoices",
249
- description: "Sync Invoices From Repzo to SAP",
250
- _id: "639ebeacdbba64d7af94520c",
251
- },
252
- {
253
- action: "create_return_invoice",
254
- name: "Sync Return Invoices",
255
- description: "Sync Return Invoices From Repzo to SAP",
256
- _id: "639ebeacdbba64d7af94520d",
257
- },
258
- {
259
- action: "create_proforma",
260
- name: "Sync Approved Sales Orders",
261
- description: "Sync Approved Sales Orders From Repzo to SAP",
262
- _id: "639ebeacdbba64d7af94520e",
263
- },
264
- {
265
- action: "create_payment",
266
- name: "Sync Paymants",
267
- description: "Sync Paymants From Repzo to SAP",
268
- _id: "639ebeacdbba64d7af94520f",
269
- },
270
- {
271
- action: "create_transfer",
272
- name: "Sync Approved Transfers",
273
- description: "Sync Approved Transfers From Repzo to SAP",
274
- _id: "639ebeacdbba64d7af945210",
275
- },
276
- ],
277
- createdAt: "2022-12-08T08:38:00.915Z",
278
- updatedAt: "2022-12-18T09:01:24.539Z",
279
- __v: 0,
280
- },
281
- company_namespace: ["unisap"],
282
- formData: {
283
- invoices: {
284
- createInvoiceHook: false,
285
- createReturnInvoiceHook: false,
286
- },
287
- payments: {
288
- createPaymentHook: false,
289
- },
290
- proformas: {
291
- createApprovedProformaHook: false,
292
- },
293
- transfers: {
294
- createApprovedTransferHook: false,
102
+ },
103
+ transfers: {
104
+ type: "object",
105
+ title: "Transfers",
106
+ required: ["createApprovedTransferHook"],
107
+ properties: {
108
+ createApprovedTransferHook: {
109
+ type: "boolean",
110
+ title: "Live Sync Approved Transfers from Repzo to SAP",
111
+ default: false,
112
+ },
295
113
  },
296
- transfer: {
297
- createApprovedTransferHook: true,
298
- },
299
- repzoApiKey: "L98_Pc8qZG2R5hZIIMjxLQNUgUzT3_0aX2BuLvkyh74",
300
- sapHostUrl: "http://unipal.b1pro.com:8083/api",
301
- errorEmail: "maram.alshen@repzoapp.com",
302
- serviceApiKey: "awdas",
303
- warehouseDefaultUpdateDate: "2015-01-01",
304
- DepartmentCode: "D2",
305
- return_reason: '[{sap_id:1,sap_name:"BarcodeIssue",repzo_name:"Barcodeissue",repzo_id:"62b074972b332895edf114fc"},{sap_id:2,sap_name:"Damaged",repzo_name:"Damaged",repzo_id:"62b074ace96258fb745982e4"},{sap_id:3,sap_name:"Nearexpiry",repzo_name:"Nearexpiry",repzo_id:"62b074c0a066173bd1c1ea0d"},{sap_id:4,sap_name:"Wrongprinting",repzo_name:"Wrongprinting",repzo_id:"62b074d79e7f41f306a4cb42"},{sap_id:5,sap_name:"experied",repzo_name:"Experied",repzo_id:"62b074faa066173bd1c1eec0"}]',
306
- SalPersCode: "111",
307
- SalesPersonCode: "111",
114
+ },
115
+ },
116
+ },
117
+ options_JSONSchema: {
118
+ title: "SAP Integration Optional Settings",
119
+ type: "object",
120
+ required: [],
121
+ properties: {
122
+ bench_time_warehouse: {
123
+ title: "Bench Time: Warehouse",
124
+ type: "string",
125
+ format: "date",
126
+ },
127
+ },
128
+ },
129
+ app_settings: {
130
+ repo: "",
131
+ serviceEndPoint: "",
132
+ _id: "6391a268db71ef64357195db",
133
+ },
134
+ app_category: "6249fa8466312f76e595634a",
135
+ commands: [
136
+ {
137
+ command: "basic",
138
+ name: "Full Sync",
139
+ description: "",
140
+ _id: "6391a268db71ef64357195dc",
141
+ },
142
+ {
143
+ command: "join",
144
+ name: "Join",
145
+ description: "",
146
+ _id: "6391a268db71ef64357195dd",
147
+ },
148
+ {
149
+ command: "warehouse",
150
+ name: "Sync Warehouse",
151
+ description: "Sync Warehouses From SAP to Repzo",
152
+ _id: "6391c42a1b0f4f7a30e40f40",
153
+ },
154
+ {
155
+ command: "rep",
156
+ name: "Sync Representatives",
157
+ description: "Sync Representatives From SAP to Repzo",
158
+ _id: "639715c2bee5dd4b6b11e129",
159
+ },
160
+ {
161
+ command: "tax",
162
+ name: "Sync Taxes",
163
+ description: "Sync Taxes From SAP to Repzo",
164
+ _id: "639715c2bee5dd4b6b11e12a",
165
+ },
166
+ {
167
+ command: "tag",
168
+ name: "Sync Area Tags",
169
+ description: "Sync Area Tags From SAP to Repzo",
170
+ _id: "639715c2bee5dd4b6b11e12b",
171
+ },
172
+ {
173
+ command: "measureunit",
174
+ name: "Sync Measure Units",
175
+ description: "Sync Measure Units From SAP to Repzo",
176
+ _id: "639817eaedafde008af0ad0e",
177
+ },
178
+ {
179
+ command: "measureunit_family",
180
+ name: "Sync Measure Units Family",
181
+ description: "Sync Measure Units Family From SAP to Repzo",
182
+ _id: "63982d09edafde008af0f698",
183
+ },
184
+ {
185
+ command: "category",
186
+ name: "Sync Product Category",
187
+ description: "Sync Product Categories From SAP to Repzo",
188
+ _id: "63984085edafde008af2f689",
308
189
  },
309
- options_formData: {
310
- bench_time_warehouse: "2022-12-08",
311
- bench_time_rep: "2022-12-12T11:43:07.899Z",
312
- bench_time_tax: "2022-12-13T05:52:47.025Z",
313
- bench_time_tag: "2022-12-13T06:00:22.724Z",
314
- bench_time_measureunit: "2022-12-13T06:48:44.370Z",
315
- bench_time_measureunit_family: "2022-12-13T08:27:26.562Z",
316
- bench_time_category: "2022-12-13T09:14:26.572Z",
317
- bench_time_channel: "2022-12-13T09:18:07.697Z",
318
- bench_time_payment_term: "2022-12-13T09:19:50.316Z",
319
- bench_time_bank: "2022-12-13T11:50:08.710Z",
320
- bench_time_product: "2022-12-18T05:48:21.443Z",
321
- bench_time_product_disabled: "2022-12-14T06:53:26.903Z",
322
- bench_time_price_list: "2022-12-14T11:41:36.811Z",
323
- bench_time_client: "2022-12-18T05:28:57.853Z",
324
- bench_time_disabled_client: "2022-12-18T05:40:29.169Z",
190
+ {
191
+ command: "channel",
192
+ name: "Sync Client's Channels",
193
+ description: "Sync Client's Channels From SAP to Repzo",
194
+ _id: "63984085edafde008af2f689",
325
195
  },
326
- createdAt: "2022-12-08T08:50:06.903Z",
327
- updatedAt: "2022-12-18T09:02:48.580Z",
328
- __v: 0,
196
+ {
197
+ command: "payment_term",
198
+ name: "Sync Payments Term",
199
+ description: "Sync Payments Term From SAP to Repzo",
200
+ _id: "63984085edafde008af2f68a",
201
+ },
202
+ {
203
+ command: "bank",
204
+ name: "Sync Banks",
205
+ description: "Sync Banks From SAP to Repzo",
206
+ _id: "63986018333b84929c538570",
207
+ },
208
+ {
209
+ command: "product",
210
+ name: "Sync Products",
211
+ description: "Sync Active Products From SAP to Repzo",
212
+ _id: "63987139333b84929c53a293",
213
+ },
214
+ {
215
+ command: "disabled_product",
216
+ name: "Sync Inactive Products",
217
+ description: "Sync Inactive Products From SAP to Repzo",
218
+ _id: "6399714d0242db686d496466",
219
+ },
220
+ {
221
+ command: "price_list",
222
+ name: "Sync Price Lists",
223
+ description: "Sync Price Lists From SAP to Repzo",
224
+ _id: "639972d6e8a1cfdd26deaa7e",
225
+ },
226
+ {
227
+ command: "client",
228
+ name: "Sync Clients",
229
+ description: "Sync Clients From SAP to Repzo",
230
+ _id: "63997615e8a1cfdd26ded7d1",
231
+ },
232
+ {
233
+ command: "disabled_client",
234
+ name: "Sync Inactive Clients",
235
+ description: "Sync Inactive Clients From SAP to Repzo",
236
+ _id: "639ac554e157f1c63770c1bc",
237
+ },
238
+ {
239
+ command: "adjust_inventory",
240
+ name: "Adjust Inventories",
241
+ description: "Adjust Inventories From SAP to Repzo",
242
+ _id: "639ac56fe157f1c63770c2eb",
243
+ },
244
+ ],
245
+ actions: [
246
+ {
247
+ action: "create_invoice",
248
+ name: "Sync Invoices",
249
+ description: "Sync Invoices From Repzo to SAP",
250
+ _id: "639ebeacdbba64d7af94520c",
251
+ },
252
+ {
253
+ action: "create_return_invoice",
254
+ name: "Sync Return Invoices",
255
+ description: "Sync Return Invoices From Repzo to SAP",
256
+ _id: "639ebeacdbba64d7af94520d",
257
+ },
258
+ {
259
+ action: "create_proforma",
260
+ name: "Sync Approved Sales Orders",
261
+ description: "Sync Approved Sales Orders From Repzo to SAP",
262
+ _id: "639ebeacdbba64d7af94520e",
263
+ },
264
+ {
265
+ action: "create_payment",
266
+ name: "Sync Paymants",
267
+ description: "Sync Paymants From Repzo to SAP",
268
+ _id: "639ebeacdbba64d7af94520f",
269
+ },
270
+ {
271
+ action: "create_transfer",
272
+ name: "Sync Approved Transfers",
273
+ description: "Sync Approved Transfers From Repzo to SAP",
274
+ _id: "639ebeacdbba64d7af945210",
275
+ },
276
+ ],
277
+ createdAt: "2022-12-08T08:38:00.915Z",
278
+ updatedAt: "2022-12-18T09:01:24.539Z",
279
+ __v: 0,
280
+ },
281
+ company_namespace: ["unisap"],
282
+ formData: {
283
+ invoices: {
284
+ createInvoiceHook: false,
285
+ createReturnInvoiceHook: false,
286
+ },
287
+ payments: {
288
+ createPaymentHook: false,
289
+ },
290
+ proformas: {
291
+ createApprovedProformaHook: false,
292
+ },
293
+ transfers: {
294
+ createApprovedTransferHook: false,
295
+ },
296
+ transfer: {
297
+ createApprovedTransferHook: true,
298
+ },
299
+ repzoApiKey: "L98_Pc8qZG2R5hZIIMjxLQNUgUzT3_0aX2BuLvkyh74",
300
+ sapHostUrl: "http://unipal.b1pro.com:8083/api",
301
+ errorEmail: "maram.alshen@repzoapp.com",
302
+ serviceApiKey: "awdas",
303
+ warehouseDefaultUpdateDate: "2015-01-01",
304
+ DepartmentCode: "D2",
305
+ return_reason:
306
+ '[{sap_id:1,sap_name:"BarcodeIssue",repzo_name:"Barcodeissue",repzo_id:"62b074972b332895edf114fc"},{sap_id:2,sap_name:"Damaged",repzo_name:"Damaged",repzo_id:"62b074ace96258fb745982e4"},{sap_id:3,sap_name:"Nearexpiry",repzo_name:"Nearexpiry",repzo_id:"62b074c0a066173bd1c1ea0d"},{sap_id:4,sap_name:"Wrongprinting",repzo_name:"Wrongprinting",repzo_id:"62b074d79e7f41f306a4cb42"},{sap_id:5,sap_name:"experied",repzo_name:"Experied",repzo_id:"62b074faa066173bd1c1eec0"}]',
307
+ SalPersCode: "111",
308
+ SalesPersonCode: "111",
309
+ },
310
+ options_formData: {
311
+ bench_time_warehouse: "2022-12-08",
312
+ bench_time_rep: "2022-12-12T11:43:07.899Z",
313
+ bench_time_tax: "2022-12-13T05:52:47.025Z",
314
+ bench_time_tag: "2022-12-13T06:00:22.724Z",
315
+ bench_time_measureunit: "2022-12-13T06:48:44.370Z",
316
+ bench_time_measureunit_family: "2022-12-13T08:27:26.562Z",
317
+ bench_time_category: "2022-12-13T09:14:26.572Z",
318
+ bench_time_channel: "2022-12-13T09:18:07.697Z",
319
+ bench_time_payment_term: "2022-12-13T09:19:50.316Z",
320
+ bench_time_bank: "2022-12-13T11:50:08.710Z",
321
+ bench_time_product: "2022-12-18T05:48:21.443Z",
322
+ bench_time_product_disabled: "2022-12-14T06:53:26.903Z",
323
+ bench_time_price_list: "2022-12-14T11:41:36.811Z",
324
+ bench_time_client: "2022-12-18T05:28:57.853Z",
325
+ bench_time_disabled_client: "2022-12-18T05:40:29.169Z",
329
326
  },
330
- end_of_day: "04:00",
331
- nameSpace: ["unisap"],
332
- timezone: "Asia/Amman",
333
- meta: "",
334
- env: "staging",
335
- sync_id: "47c9c804-e136-4d54-928a-000018",
336
- command: "basic",
327
+ createdAt: "2022-12-08T08:50:06.903Z",
328
+ updatedAt: "2022-12-18T09:02:48.580Z",
329
+ __v: 0,
330
+ },
331
+ end_of_day: "04:00",
332
+ nameSpace: ["unisap"],
333
+ timezone: "Asia/Amman",
334
+ meta: "",
335
+ env: "staging",
336
+ sync_id: "47c9c804-e136-4d54-928a-000018",
337
+ command: "basic",
337
338
  };
338
339
  Commands(commandEvent);