repzo-sap-absjo 1.0.1 → 1.0.3

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 (67) hide show
  1. package/changelog.md +3 -0
  2. package/lib/actions/create_invoice.js +5 -0
  3. package/lib/actions/create_payment.js +5 -0
  4. package/lib/actions/create_proforma.js +5 -0
  5. package/lib/actions/create_return_invoice.js +5 -0
  6. package/lib/actions/create_transfer.js +39 -18
  7. package/lib/commands/adjust_inventory.js +8 -8
  8. package/lib/commands/bank.js +24 -35
  9. package/lib/commands/basic.js +1 -2
  10. package/lib/commands/category.js +11 -18
  11. package/lib/commands/channel.js +11 -18
  12. package/lib/commands/client.js +33 -22
  13. package/lib/commands/client_disabled.js +8 -15
  14. package/lib/commands/join.js +101 -45
  15. package/lib/commands/measureunit.js +25 -39
  16. package/lib/commands/measureunit_family.js +15 -18
  17. package/lib/commands/payment_term.js +11 -18
  18. package/lib/commands/price_list.js +48 -72
  19. package/lib/commands/product.js +8 -19
  20. package/lib/commands/product_disabled.js +8 -15
  21. package/lib/commands/rep.js +7 -18
  22. package/lib/commands/tag.js +7 -18
  23. package/lib/commands/tax.js +7 -18
  24. package/lib/commands/warehouse.js +3 -7
  25. package/lib/test/actions/create_invoice.js +1 -0
  26. package/lib/test/actions/create_payment.js +1 -0
  27. package/lib/test/actions/create_proforma.js +1 -0
  28. package/lib/test/actions/create_return_invoice.js +1 -0
  29. package/lib/test/actions/create_transfer.js +1 -0
  30. package/lib/test/commands/client.js +282 -13
  31. package/lib/test/commands/rep.js +274 -14
  32. package/lib/types.d.ts +29 -3
  33. package/lib/util.d.ts +12 -0
  34. package/lib/util.js +30 -0
  35. package/package.json +2 -2
  36. package/src/actions/create_invoice.ts +1 -0
  37. package/src/actions/create_payment.ts +1 -0
  38. package/src/actions/create_proforma.ts +1 -0
  39. package/src/actions/create_return_invoice.ts +1 -0
  40. package/src/actions/create_transfer.ts +23 -7
  41. package/src/commands/adjust_inventory.ts +8 -8
  42. package/src/commands/bank.ts +3 -3
  43. package/src/commands/basic.ts +3 -4
  44. package/src/commands/category.ts +7 -7
  45. package/src/commands/channel.ts +7 -7
  46. package/src/commands/client.ts +12 -6
  47. package/src/commands/client_disabled.ts +4 -4
  48. package/src/commands/join.ts +11 -6
  49. package/src/commands/measureunit.ts +12 -12
  50. package/src/commands/measureunit_family.ts +11 -11
  51. package/src/commands/payment_term.ts +7 -7
  52. package/src/commands/price_list.ts +18 -18
  53. package/src/commands/product.ts +4 -4
  54. package/src/commands/product_disabled.ts +4 -4
  55. package/src/commands/rep.ts +3 -3
  56. package/src/commands/tag.ts +3 -3
  57. package/src/commands/tax.ts +3 -3
  58. package/src/commands/warehouse.ts +3 -3
  59. package/src/test/actions/create_invoice.ts +1 -0
  60. package/src/test/actions/create_payment.ts +1 -0
  61. package/src/test/actions/create_proforma.ts +1 -0
  62. package/src/test/actions/create_return_invoice.ts +1 -0
  63. package/src/test/actions/create_transfer.ts +1 -0
  64. package/src/test/commands/client.ts +282 -13
  65. package/src/test/commands/rep.ts +274 -14
  66. package/src/types.ts +31 -3
  67. package/src/util.ts +38 -0
@@ -1,15 +1,16 @@
1
1
  import { Commands } from "../../index.js";
2
2
  let commandEvent = {
3
3
  app: {
4
- _id: "6391a53edb71ef6435719794",
4
+ _id: "639f0bf52070c5be595e955c",
5
5
  name: "SAP",
6
6
  disabled: false,
7
7
  available_app: {
8
8
  _id: "6391a268db71ef64357195da",
9
9
  name: "repzo-sap-absjo",
10
10
  title: "SAP ABS JO",
11
- logo: "https://www.e2abs.com/wp-content/uploads/2021/03/Website-Main-Logo-1.svg",
12
- description: "",
11
+ logo: "https://prod-repzo-media-service.s3.us-east-1.amazonaws.com/repzo/image/2022/12/18/3f73de7d-1920-4786-90db-57c76d18acci-SAP_EBS_JO.png",
12
+ description:
13
+ "SAP Jordan. We provide real value to SMEs by understanding their business and driving their vision forward with SAP Business One",
13
14
  disabled: false,
14
15
  JSONSchema: {
15
16
  title: "SAP Integration Settings",
@@ -29,11 +30,89 @@ let commandEvent = {
29
30
  format: "email",
30
31
  title: "Email in case of error",
31
32
  },
33
+ GroupCode: {
34
+ type: "string",
35
+ format: "string",
36
+ title: "Customers GroupCode",
37
+ },
32
38
  warehouseDefaultUpdateDate: {
33
39
  type: "string",
34
40
  format: "date",
35
41
  title: "Warehouse: Default Update Date",
36
42
  },
43
+ DepartmentCode: {
44
+ type: "string",
45
+ format: "string",
46
+ title: "Invoice/Return Department Code",
47
+ },
48
+ return_reason: {
49
+ type: "string",
50
+ format: "string",
51
+ title: "Return Reason Array",
52
+ },
53
+ SalPersCode: {
54
+ type: "string",
55
+ format: "string",
56
+ title: "Default Sales Person Code For Sales Orders",
57
+ },
58
+ SalesPersonCode: {
59
+ type: "string",
60
+ format: "string",
61
+ title: "Default Sales Person Code For Transfer",
62
+ },
63
+ invoices: {
64
+ type: "object",
65
+ title: "Invoices",
66
+ required: ["createInvoiceHook", "createReturnInvoiceHook"],
67
+ properties: {
68
+ createInvoiceHook: {
69
+ type: "boolean",
70
+ title: "Live Sync Invoices from Repzo to SAP",
71
+ default: false,
72
+ },
73
+ createReturnInvoiceHook: {
74
+ type: "boolean",
75
+ title: "Live Sync Return Invoice from Repzo to SAP",
76
+ default: false,
77
+ },
78
+ },
79
+ },
80
+ payments: {
81
+ type: "object",
82
+ title: "Payments",
83
+ required: ["createPaymentHook"],
84
+ properties: {
85
+ createPaymentHook: {
86
+ type: "boolean",
87
+ title: "Live Sync Payments from Repzo to SAP",
88
+ default: false,
89
+ },
90
+ },
91
+ },
92
+ proformas: {
93
+ type: "object",
94
+ title: "Sales Orders",
95
+ required: ["createApprovedProformaHook"],
96
+ properties: {
97
+ createApprovedProformaHook: {
98
+ type: "boolean",
99
+ title: "Live Sync Approved Sales Orders from Repzo to SAP",
100
+ default: false,
101
+ },
102
+ },
103
+ },
104
+ transfers: {
105
+ type: "object",
106
+ title: "Transfers",
107
+ required: ["createApprovedTransferHook"],
108
+ properties: {
109
+ createApprovedTransferHook: {
110
+ type: "boolean",
111
+ title: "Live Sync Approved Transfers from Repzo to SAP",
112
+ default: false,
113
+ },
114
+ },
115
+ },
37
116
  },
38
117
  },
39
118
  options_JSONSchema: {
@@ -46,6 +125,41 @@ let commandEvent = {
46
125
  type: "string",
47
126
  format: "date",
48
127
  },
128
+ bench_time_channel: {
129
+ title: "Bench Time: Channels",
130
+ type: "string",
131
+ format: "date-time",
132
+ },
133
+ bench_time_payment_term: {
134
+ title: "Bench Time: Payment Terms",
135
+ type: "string",
136
+ format: "date-time",
137
+ },
138
+ bench_time_product: {
139
+ title: "Bench Time: Products",
140
+ type: "string",
141
+ format: "date-time",
142
+ },
143
+ bench_time_product_disabled: {
144
+ title: "Bench Time: Inactive Products",
145
+ type: "string",
146
+ format: "date-time",
147
+ },
148
+ bench_time_price_list: {
149
+ title: "Bench Time: Price List",
150
+ type: "string",
151
+ format: "date-time",
152
+ },
153
+ bench_time_client: {
154
+ title: "Bench Time: Clients",
155
+ type: "string",
156
+ format: "date-time",
157
+ },
158
+ bench_time_disabled_client: {
159
+ title: "Bench Time: Inactive Clients",
160
+ type: "string",
161
+ format: "date-time",
162
+ },
49
163
  },
50
164
  },
51
165
  app_settings: {
@@ -67,23 +181,178 @@ let commandEvent = {
67
181
  description: "",
68
182
  _id: "6391a268db71ef64357195dd",
69
183
  },
184
+ {
185
+ command: "warehouse",
186
+ name: "Sync Warehouse",
187
+ description: "Sync Warehouses From SAP to Repzo",
188
+ _id: "6391c42a1b0f4f7a30e40f40",
189
+ },
190
+ {
191
+ command: "rep",
192
+ name: "Sync Representatives",
193
+ description: "Sync Representatives From SAP to Repzo",
194
+ _id: "639715c2bee5dd4b6b11e129",
195
+ },
196
+ {
197
+ command: "tax",
198
+ name: "Sync Taxes",
199
+ description: "Sync Taxes From SAP to Repzo",
200
+ _id: "639715c2bee5dd4b6b11e12a",
201
+ },
202
+ {
203
+ command: "tag",
204
+ name: "Sync Area Tags",
205
+ description: "Sync Area Tags From SAP to Repzo",
206
+ _id: "639715c2bee5dd4b6b11e12b",
207
+ },
208
+ {
209
+ command: "measureunit",
210
+ name: "Sync Measure Units",
211
+ description: "Sync Measure Units From SAP to Repzo",
212
+ _id: "639817eaedafde008af0ad0e",
213
+ },
214
+ {
215
+ command: "measureunit_family",
216
+ name: "Sync Measure Units Family",
217
+ description: "Sync Measure Units Family From SAP to Repzo",
218
+ _id: "63982d09edafde008af0f698",
219
+ },
220
+ {
221
+ command: "category",
222
+ name: "Sync Product Category",
223
+ description: "Sync Product Categories From SAP to Repzo",
224
+ _id: "63984085edafde008af2f689",
225
+ },
226
+ {
227
+ command: "channel",
228
+ name: "Sync Client's Channels",
229
+ description: "Sync Client's Channels From SAP to Repzo",
230
+ _id: "63984085edafde008af2f689",
231
+ },
232
+ {
233
+ command: "payment_term",
234
+ name: "Sync Payments Term",
235
+ description: "Sync Payments Term From SAP to Repzo",
236
+ _id: "63984085edafde008af2f68a",
237
+ },
238
+ {
239
+ command: "bank",
240
+ name: "Sync Banks",
241
+ description: "Sync Banks From SAP to Repzo",
242
+ _id: "63986018333b84929c538570",
243
+ },
244
+ {
245
+ command: "product",
246
+ name: "Sync Products",
247
+ description: "Sync Active Products From SAP to Repzo",
248
+ _id: "63987139333b84929c53a293",
249
+ },
250
+ {
251
+ command: "disabled_product",
252
+ name: "Sync Inactive Products",
253
+ description: "Sync Inactive Products From SAP to Repzo",
254
+ _id: "6399714d0242db686d496466",
255
+ },
256
+ {
257
+ command: "price_list",
258
+ name: "Sync Price Lists",
259
+ description: "Sync Price Lists From SAP to Repzo",
260
+ _id: "639972d6e8a1cfdd26deaa7e",
261
+ },
262
+ {
263
+ command: "client",
264
+ name: "Sync Clients",
265
+ description: "Sync Clients From SAP to Repzo",
266
+ _id: "63997615e8a1cfdd26ded7d1",
267
+ },
268
+ {
269
+ command: "disabled_client",
270
+ name: "Sync Inactive Clients",
271
+ description: "Sync Inactive Clients From SAP to Repzo",
272
+ _id: "639ac554e157f1c63770c1bc",
273
+ },
274
+ {
275
+ command: "adjust_inventory",
276
+ name: "Adjust Inventories",
277
+ description: "Adjust Inventories From SAP to Repzo",
278
+ _id: "639ac56fe157f1c63770c2eb",
279
+ },
280
+ ],
281
+ actions: [
282
+ {
283
+ action: "create_invoice",
284
+ name: "Sync Invoices",
285
+ description: "Sync Invoices From Repzo to SAP",
286
+ _id: "639ebeacdbba64d7af94520c",
287
+ },
288
+ {
289
+ action: "create_return_invoice",
290
+ name: "Sync Return Invoices",
291
+ description: "Sync Return Invoices From Repzo to SAP",
292
+ _id: "639ebeacdbba64d7af94520d",
293
+ },
294
+ {
295
+ action: "create_proforma",
296
+ name: "Sync Approved Sales Orders",
297
+ description: "Sync Approved Sales Orders From Repzo to SAP",
298
+ _id: "639ebeacdbba64d7af94520e",
299
+ },
300
+ {
301
+ action: "create_payment",
302
+ name: "Sync Paymants",
303
+ description: "Sync Paymants From Repzo to SAP",
304
+ _id: "639ebeacdbba64d7af94520f",
305
+ },
306
+ {
307
+ action: "create_transfer",
308
+ name: "Sync Approved Transfers",
309
+ description: "Sync Approved Transfers From Repzo to SAP",
310
+ _id: "639ebeacdbba64d7af945210",
311
+ },
70
312
  ],
71
- actions: [],
72
313
  createdAt: "2022-12-08T08:38:00.915Z",
73
- updatedAt: "2022-12-08T09:42:49.236Z",
314
+ updatedAt: "2022-12-18T10:55:16.858Z",
74
315
  __v: 0,
75
316
  },
76
- company_namespace: ["unisap"],
317
+ company_namespace: ["unipaljo"],
77
318
  formData: {
78
- repzoApiKey: "L98_Pc8qZG2R5hZIIMjxLQNUgUzT3_0aX2BuLvkyh74",
319
+ invoices: {
320
+ createInvoiceHook: false,
321
+ createReturnInvoiceHook: false,
322
+ },
323
+ payments: {
324
+ createPaymentHook: false,
325
+ },
326
+ proformas: {
327
+ createApprovedProformaHook: false,
328
+ },
329
+ transfers: {
330
+ createApprovedTransferHook: false,
331
+ },
79
332
  sapHostUrl: "http://unipal.b1pro.com:8083/api",
80
- errorEmail: "maram.alshen@repzoapp.com",
81
- serviceApiKey: "awdas",
82
333
  warehouseDefaultUpdateDate: "2015-01-01",
334
+ DepartmentCode: "D2",
335
+ return_reason:
336
+ '[{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"}]',
337
+ SalPersCode: "111",
338
+ SalesPersonCode: "111",
339
+ repzoApiKey: "mUOvoIBiv9uIg4ur7-nVdVP4m21EXto4EnlgWgDqP2c",
340
+ },
341
+ options_formData: {
342
+ bench_time_warehouse: "2022-12-19",
343
+ bench_time_rep: "2022-12-18T13:23:48.551Z",
344
+ bench_time_tax: "2022-12-19T09:43:54.043Z",
345
+ bench_time_tag: "2022-12-19T09:50:34.259Z",
346
+ bench_time_measureunit: "2022-12-18T13:33:17.486Z",
347
+ bench_time_measureunit_family: "2022-12-18T13:33:46.625Z",
348
+ bench_time_category: "2022-12-18T13:33:56.471Z",
349
+ bench_time_bank: "2022-12-19T07:10:24.145Z",
350
+ bench_time_product: "2022-12-19T09:51:21.325Z",
351
+ bench_time_product_disabled: "2022-12-19T10:10:17.766Z",
352
+ bench_time_price_list: "2022-12-19T10:11:01.510Z",
83
353
  },
84
- options_formData: {},
85
- createdAt: "2022-12-08T08:50:06.903Z",
86
- updatedAt: "2022-12-08T09:43:21.620Z",
354
+ createdAt: "2022-12-18T12:47:49.096Z",
355
+ updatedAt: "2022-12-19T10:18:42.543Z",
87
356
  __v: 0,
88
357
  },
89
358
  end_of_day: "04:00",
@@ -91,7 +360,7 @@ let commandEvent = {
91
360
  timezone: "Asia/Amman",
92
361
  meta: "",
93
362
  env: "staging",
94
- sync_id: "47c9c804-e136-4d54-928a-000014",
363
+ sync_id: "16103518-29e0-47b6-95ee-feb1f2c51a6e",
95
364
  command: "client",
96
365
  };
97
366
  Commands(commandEvent);
@@ -1,15 +1,16 @@
1
1
  import { Commands } from "../../index.js";
2
2
  let commandEvent = {
3
3
  app: {
4
- _id: "6391a53edb71ef6435719794",
4
+ _id: "639f0bf52070c5be595e955c",
5
5
  name: "SAP",
6
6
  disabled: false,
7
7
  available_app: {
8
8
  _id: "6391a268db71ef64357195da",
9
9
  name: "repzo-sap-absjo",
10
10
  title: "SAP ABS JO",
11
- logo: "https://www.e2abs.com/wp-content/uploads/2021/03/Website-Main-Logo-1.svg",
12
- description: "",
11
+ logo: "https://prod-repzo-media-service.s3.us-east-1.amazonaws.com/repzo/image/2022/12/18/3f73de7d-1920-4786-90db-57c76d18acci-SAP_EBS_JO.png",
12
+ description:
13
+ "SAP Jordan. We provide real value to SMEs by understanding their business and driving their vision forward with SAP Business One",
13
14
  disabled: false,
14
15
  JSONSchema: {
15
16
  title: "SAP Integration Settings",
@@ -29,11 +30,89 @@ let commandEvent = {
29
30
  format: "email",
30
31
  title: "Email in case of error",
31
32
  },
33
+ GroupCode: {
34
+ type: "string",
35
+ format: "string",
36
+ title: "Customers GroupCode",
37
+ },
32
38
  warehouseDefaultUpdateDate: {
33
39
  type: "string",
34
40
  format: "date",
35
41
  title: "Warehouse: Default Update Date",
36
42
  },
43
+ DepartmentCode: {
44
+ type: "string",
45
+ format: "string",
46
+ title: "Invoice/Return Department Code",
47
+ },
48
+ return_reason: {
49
+ type: "string",
50
+ format: "string",
51
+ title: "Return Reason Array",
52
+ },
53
+ SalPersCode: {
54
+ type: "string",
55
+ format: "string",
56
+ title: "Default Sales Person Code For Sales Orders",
57
+ },
58
+ SalesPersonCode: {
59
+ type: "string",
60
+ format: "string",
61
+ title: "Default Sales Person Code For Transfer",
62
+ },
63
+ invoices: {
64
+ type: "object",
65
+ title: "Invoices",
66
+ required: ["createInvoiceHook", "createReturnInvoiceHook"],
67
+ properties: {
68
+ createInvoiceHook: {
69
+ type: "boolean",
70
+ title: "Live Sync Invoices from Repzo to SAP",
71
+ default: false,
72
+ },
73
+ createReturnInvoiceHook: {
74
+ type: "boolean",
75
+ title: "Live Sync Return Invoice from Repzo to SAP",
76
+ default: false,
77
+ },
78
+ },
79
+ },
80
+ payments: {
81
+ type: "object",
82
+ title: "Payments",
83
+ required: ["createPaymentHook"],
84
+ properties: {
85
+ createPaymentHook: {
86
+ type: "boolean",
87
+ title: "Live Sync Payments from Repzo to SAP",
88
+ default: false,
89
+ },
90
+ },
91
+ },
92
+ proformas: {
93
+ type: "object",
94
+ title: "Sales Orders",
95
+ required: ["createApprovedProformaHook"],
96
+ properties: {
97
+ createApprovedProformaHook: {
98
+ type: "boolean",
99
+ title: "Live Sync Approved Sales Orders from Repzo to SAP",
100
+ default: false,
101
+ },
102
+ },
103
+ },
104
+ transfers: {
105
+ type: "object",
106
+ title: "Transfers",
107
+ required: ["createApprovedTransferHook"],
108
+ properties: {
109
+ createApprovedTransferHook: {
110
+ type: "boolean",
111
+ title: "Live Sync Approved Transfers from Repzo to SAP",
112
+ default: false,
113
+ },
114
+ },
115
+ },
37
116
  },
38
117
  },
39
118
  options_JSONSchema: {
@@ -46,6 +125,41 @@ let commandEvent = {
46
125
  type: "string",
47
126
  format: "date",
48
127
  },
128
+ bench_time_channel: {
129
+ title: "Bench Time: Channels",
130
+ type: "string",
131
+ format: "date-time",
132
+ },
133
+ bench_time_payment_term: {
134
+ title: "Bench Time: Payment Terms",
135
+ type: "string",
136
+ format: "date-time",
137
+ },
138
+ bench_time_product: {
139
+ title: "Bench Time: Products",
140
+ type: "string",
141
+ format: "date-time",
142
+ },
143
+ bench_time_product_disabled: {
144
+ title: "Bench Time: Inactive Products",
145
+ type: "string",
146
+ format: "date-time",
147
+ },
148
+ bench_time_price_list: {
149
+ title: "Bench Time: Price List",
150
+ type: "string",
151
+ format: "date-time",
152
+ },
153
+ bench_time_client: {
154
+ title: "Bench Time: Clients",
155
+ type: "string",
156
+ format: "date-time",
157
+ },
158
+ bench_time_disabled_client: {
159
+ title: "Bench Time: Inactive Clients",
160
+ type: "string",
161
+ format: "date-time",
162
+ },
49
163
  },
50
164
  },
51
165
  app_settings: {
@@ -67,31 +181,177 @@ let commandEvent = {
67
181
  description: "",
68
182
  _id: "6391a268db71ef64357195dd",
69
183
  },
184
+ {
185
+ command: "warehouse",
186
+ name: "Sync Warehouse",
187
+ description: "Sync Warehouses From SAP to Repzo",
188
+ _id: "6391c42a1b0f4f7a30e40f40",
189
+ },
190
+ {
191
+ command: "rep",
192
+ name: "Sync Representatives",
193
+ description: "Sync Representatives From SAP to Repzo",
194
+ _id: "639715c2bee5dd4b6b11e129",
195
+ },
196
+ {
197
+ command: "tax",
198
+ name: "Sync Taxes",
199
+ description: "Sync Taxes From SAP to Repzo",
200
+ _id: "639715c2bee5dd4b6b11e12a",
201
+ },
202
+ {
203
+ command: "tag",
204
+ name: "Sync Area Tags",
205
+ description: "Sync Area Tags From SAP to Repzo",
206
+ _id: "639715c2bee5dd4b6b11e12b",
207
+ },
208
+ {
209
+ command: "measureunit",
210
+ name: "Sync Measure Units",
211
+ description: "Sync Measure Units From SAP to Repzo",
212
+ _id: "639817eaedafde008af0ad0e",
213
+ },
214
+ {
215
+ command: "measureunit_family",
216
+ name: "Sync Measure Units Family",
217
+ description: "Sync Measure Units Family From SAP to Repzo",
218
+ _id: "63982d09edafde008af0f698",
219
+ },
220
+ {
221
+ command: "category",
222
+ name: "Sync Product Category",
223
+ description: "Sync Product Categories From SAP to Repzo",
224
+ _id: "63984085edafde008af2f689",
225
+ },
226
+ {
227
+ command: "channel",
228
+ name: "Sync Client's Channels",
229
+ description: "Sync Client's Channels From SAP to Repzo",
230
+ _id: "63984085edafde008af2f689",
231
+ },
232
+ {
233
+ command: "payment_term",
234
+ name: "Sync Payments Term",
235
+ description: "Sync Payments Term From SAP to Repzo",
236
+ _id: "63984085edafde008af2f68a",
237
+ },
238
+ {
239
+ command: "bank",
240
+ name: "Sync Banks",
241
+ description: "Sync Banks From SAP to Repzo",
242
+ _id: "63986018333b84929c538570",
243
+ },
244
+ {
245
+ command: "product",
246
+ name: "Sync Products",
247
+ description: "Sync Active Products From SAP to Repzo",
248
+ _id: "63987139333b84929c53a293",
249
+ },
250
+ {
251
+ command: "disabled_product",
252
+ name: "Sync Inactive Products",
253
+ description: "Sync Inactive Products From SAP to Repzo",
254
+ _id: "6399714d0242db686d496466",
255
+ },
256
+ {
257
+ command: "price_list",
258
+ name: "Sync Price Lists",
259
+ description: "Sync Price Lists From SAP to Repzo",
260
+ _id: "639972d6e8a1cfdd26deaa7e",
261
+ },
262
+ {
263
+ command: "client",
264
+ name: "Sync Clients",
265
+ description: "Sync Clients From SAP to Repzo",
266
+ _id: "63997615e8a1cfdd26ded7d1",
267
+ },
268
+ {
269
+ command: "disabled_client",
270
+ name: "Sync Inactive Clients",
271
+ description: "Sync Inactive Clients From SAP to Repzo",
272
+ _id: "639ac554e157f1c63770c1bc",
273
+ },
274
+ {
275
+ command: "adjust_inventory",
276
+ name: "Adjust Inventories",
277
+ description: "Adjust Inventories From SAP to Repzo",
278
+ _id: "639ac56fe157f1c63770c2eb",
279
+ },
280
+ ],
281
+ actions: [
282
+ {
283
+ action: "create_invoice",
284
+ name: "Sync Invoices",
285
+ description: "Sync Invoices From Repzo to SAP",
286
+ _id: "639ebeacdbba64d7af94520c",
287
+ },
288
+ {
289
+ action: "create_return_invoice",
290
+ name: "Sync Return Invoices",
291
+ description: "Sync Return Invoices From Repzo to SAP",
292
+ _id: "639ebeacdbba64d7af94520d",
293
+ },
294
+ {
295
+ action: "create_proforma",
296
+ name: "Sync Approved Sales Orders",
297
+ description: "Sync Approved Sales Orders From Repzo to SAP",
298
+ _id: "639ebeacdbba64d7af94520e",
299
+ },
300
+ {
301
+ action: "create_payment",
302
+ name: "Sync Paymants",
303
+ description: "Sync Paymants From Repzo to SAP",
304
+ _id: "639ebeacdbba64d7af94520f",
305
+ },
306
+ {
307
+ action: "create_transfer",
308
+ name: "Sync Approved Transfers",
309
+ description: "Sync Approved Transfers From Repzo to SAP",
310
+ _id: "639ebeacdbba64d7af945210",
311
+ },
70
312
  ],
71
- actions: [],
72
313
  createdAt: "2022-12-08T08:38:00.915Z",
73
- updatedAt: "2022-12-08T09:42:49.236Z",
314
+ updatedAt: "2022-12-18T10:55:16.858Z",
74
315
  __v: 0,
75
316
  },
76
- company_namespace: ["unisap"],
317
+ company_namespace: ["unipaljo"],
77
318
  formData: {
78
- repzoApiKey: "L98_Pc8qZG2R5hZIIMjxLQNUgUzT3_0aX2BuLvkyh74",
319
+ invoices: {
320
+ createInvoiceHook: false,
321
+ createReturnInvoiceHook: false,
322
+ },
323
+ payments: {
324
+ createPaymentHook: false,
325
+ },
326
+ proformas: {
327
+ createApprovedProformaHook: false,
328
+ },
329
+ transfers: {
330
+ createApprovedTransferHook: false,
331
+ },
79
332
  sapHostUrl: "http://unipal.b1pro.com:8083/api",
80
- errorEmail: "maram.alshen@repzoapp.com",
81
- serviceApiKey: "awdas",
82
333
  warehouseDefaultUpdateDate: "2015-01-01",
334
+ DepartmentCode: "D2",
335
+ return_reason:
336
+ '[{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"}]',
337
+ SalPersCode: "111",
338
+ SalesPersonCode: "111",
339
+ repzoApiKey: "mUOvoIBiv9uIg4ur7-nVdVP4m21EXto4EnlgWgDqP2c",
340
+ },
341
+ options_formData: {
342
+ bench_time_warehouse: "2022-12-18",
343
+ bench_time_rep: "2022-12-18T12:53:37.966Z",
83
344
  },
84
- options_formData: {},
85
- createdAt: "2022-12-08T08:50:06.903Z",
86
- updatedAt: "2022-12-08T09:43:21.620Z",
345
+ createdAt: "2022-12-18T12:47:49.096Z",
346
+ updatedAt: "2022-12-18T12:53:54.089Z",
87
347
  __v: 0,
88
348
  },
89
349
  end_of_day: "04:00",
90
- nameSpace: ["unisap"],
350
+ nameSpace: ["unipaljo"],
91
351
  timezone: "Asia/Amman",
92
352
  meta: "",
93
353
  env: "staging",
94
- sync_id: "47c9c804-e136-4d54-928a-000001",
354
+ sync_id: "f925b24a-1984-40e0-bec3-300a6071cbd6",
95
355
  command: "rep",
96
356
  };
97
357
  Commands(commandEvent);