repzo-sap-absjo 1.0.5 → 1.0.7

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