repzo-sap-absjo 1.0.8 → 1.0.9
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.
- package/lib/actions/create_invoice.d.ts +19 -13
- package/lib/actions/create_invoice.js +363 -214
- package/lib/actions/create_payment.d.ts +4 -1
- package/lib/actions/create_payment.js +200 -125
- package/lib/actions/create_proforma.d.ts +4 -1
- package/lib/actions/create_proforma.js +290 -165
- package/lib/actions/create_return_invoice.d.ts +4 -1
- package/lib/actions/create_return_invoice.js +321 -177
- package/lib/actions/create_transfer.d.ts +4 -1
- package/lib/actions/create_transfer.js +220 -143
- package/lib/actions/index.js +23 -15
- package/lib/commands/adjust_inventory.d.ts +4 -2
- package/lib/commands/adjust_inventory.js +290 -160
- package/lib/commands/bank.d.ts +4 -2
- package/lib/commands/bank.js +279 -157
- package/lib/commands/basic.js +66 -47
- package/lib/commands/category.d.ts +3 -1
- package/lib/commands/category.js +178 -104
- package/lib/commands/channel.d.ts +3 -1
- package/lib/commands/channel.js +198 -117
- package/lib/commands/client.d.ts +34 -32
- package/lib/commands/client.js +404 -244
- package/lib/commands/client_disabled.d.ts +3 -1
- package/lib/commands/client_disabled.js +163 -94
- package/lib/commands/index.d.ts +15 -11
- package/lib/commands/index.js +60 -60
- package/lib/commands/join.js +192 -66
- package/lib/commands/measureunit.d.ts +19 -14
- package/lib/commands/measureunit.js +289 -191
- package/lib/commands/measureunit_family.d.ts +10 -8
- package/lib/commands/measureunit_family.js +250 -138
- package/lib/commands/payment_term.d.ts +3 -1
- package/lib/commands/payment_term.js +202 -123
- package/lib/commands/price_list.d.ts +15 -15
- package/lib/commands/price_list.js +612 -326
- package/lib/commands/product.d.ts +32 -30
- package/lib/commands/product.js +425 -243
- package/lib/commands/product_disabled.d.ts +3 -1
- package/lib/commands/product_disabled.js +164 -94
- package/lib/commands/rep.js +221 -141
- package/lib/commands/tag.js +174 -109
- package/lib/commands/tax.js +177 -112
- package/lib/commands/warehouse.d.ts +3 -1
- package/lib/commands/warehouse.js +207 -119
- package/lib/index.d.ts +21 -12
- package/lib/test/actions/create_invoice.js +193 -188
- package/lib/test/actions/create_payment.js +112 -107
- package/lib/test/actions/create_proforma.js +220 -216
- package/lib/test/actions/create_return_invoice.js +205 -200
- package/lib/test/actions/create_transfer.js +120 -115
- package/lib/test/commands/adjust_inventory.js +90 -90
- package/lib/test/commands/bank.js +90 -90
- package/lib/test/commands/basic.js +328 -327
- package/lib/test/commands/category.js +90 -90
- package/lib/test/commands/channel.js +90 -90
- package/lib/test/commands/client.js +355 -353
- package/lib/test/commands/client_disabled.js +90 -90
- package/lib/test/commands/join.js +328 -327
- package/lib/test/commands/measureunit.js +90 -90
- package/lib/test/commands/measureunit_family.js +90 -90
- package/lib/test/commands/payment_term.js +90 -90
- package/lib/test/commands/price_list.js +337 -334
- package/lib/test/commands/product.js +90 -90
- package/lib/test/commands/product_disabled.js +90 -90
- package/lib/test/commands/rep.js +346 -344
- package/lib/test/commands/tag.js +90 -90
- package/lib/test/commands/tax.js +90 -90
- package/lib/test/commands/warehouse.js +90 -90
- package/lib/types.d.ts +83 -60
- package/lib/util.d.ts +70 -19
- package/lib/util.js +170 -144
- package/package.json +1 -1
- package/src/actions/create_invoice.ts +4 -13
- package/src/actions/create_payment.ts +4 -13
- package/src/actions/create_proforma.ts +28 -40
- package/src/actions/create_return_invoice.ts +4 -16
- package/src/actions/create_transfer.ts +24 -36
package/lib/test/commands/rep.js
CHANGED
|
@@ -1,355 +1,357 @@
|
|
|
1
1
|
import { Commands } from "../../index.js";
|
|
2
2
|
let commandEvent = {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
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: "639f0bf52070c5be595e955c",
|
|
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://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",
|
|
14
|
+
disabled: false,
|
|
15
|
+
JSONSchema: {
|
|
16
|
+
title: "SAP Integration Settings",
|
|
17
|
+
type: "object",
|
|
18
|
+
required: ["repzoApiKey", "sapHostUrl"],
|
|
19
|
+
properties: {
|
|
20
|
+
repzoApiKey: {
|
|
21
|
+
type: "string",
|
|
22
|
+
title: "Repzo API KEY",
|
|
23
|
+
},
|
|
24
|
+
sapHostUrl: {
|
|
25
|
+
type: "string",
|
|
26
|
+
title: "SAP Host Url",
|
|
27
|
+
},
|
|
28
|
+
errorEmail: {
|
|
29
|
+
type: "string",
|
|
30
|
+
format: "email",
|
|
31
|
+
title: "Email in case of error",
|
|
32
|
+
},
|
|
33
|
+
GroupCode: {
|
|
34
|
+
type: "string",
|
|
35
|
+
format: "string",
|
|
36
|
+
title: "Customers GroupCode",
|
|
37
|
+
},
|
|
38
|
+
warehouseDefaultUpdateDate: {
|
|
39
|
+
type: "string",
|
|
40
|
+
format: "date",
|
|
41
|
+
title: "Warehouse: Default Update Date",
|
|
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
|
+
},
|
|
116
78
|
},
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
title: "Bench Time: Channels",
|
|
129
|
-
type: "string",
|
|
130
|
-
format: "date-time",
|
|
131
|
-
},
|
|
132
|
-
bench_time_payment_term: {
|
|
133
|
-
title: "Bench Time: Payment Terms",
|
|
134
|
-
type: "string",
|
|
135
|
-
format: "date-time",
|
|
136
|
-
},
|
|
137
|
-
bench_time_product: {
|
|
138
|
-
title: "Bench Time: Products",
|
|
139
|
-
type: "string",
|
|
140
|
-
format: "date-time",
|
|
141
|
-
},
|
|
142
|
-
bench_time_product_disabled: {
|
|
143
|
-
title: "Bench Time: Inactive Products",
|
|
144
|
-
type: "string",
|
|
145
|
-
format: "date-time",
|
|
146
|
-
},
|
|
147
|
-
bench_time_price_list: {
|
|
148
|
-
title: "Bench Time: Price List",
|
|
149
|
-
type: "string",
|
|
150
|
-
format: "date-time",
|
|
151
|
-
},
|
|
152
|
-
bench_time_client: {
|
|
153
|
-
title: "Bench Time: Clients",
|
|
154
|
-
type: "string",
|
|
155
|
-
format: "date-time",
|
|
156
|
-
},
|
|
157
|
-
bench_time_disabled_client: {
|
|
158
|
-
title: "Bench Time: Inactive Clients",
|
|
159
|
-
type: "string",
|
|
160
|
-
format: "date-time",
|
|
161
|
-
},
|
|
162
|
-
},
|
|
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
|
+
},
|
|
163
90
|
},
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
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
|
+
},
|
|
168
102
|
},
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
description: "",
|
|
181
|
-
_id: "6391a268db71ef64357195dd",
|
|
182
|
-
},
|
|
183
|
-
{
|
|
184
|
-
command: "warehouse",
|
|
185
|
-
name: "Sync Warehouse",
|
|
186
|
-
description: "Sync Warehouses From SAP to Repzo",
|
|
187
|
-
_id: "6391c42a1b0f4f7a30e40f40",
|
|
188
|
-
},
|
|
189
|
-
{
|
|
190
|
-
command: "rep",
|
|
191
|
-
name: "Sync Representatives",
|
|
192
|
-
description: "Sync Representatives From SAP to Repzo",
|
|
193
|
-
_id: "639715c2bee5dd4b6b11e129",
|
|
194
|
-
},
|
|
195
|
-
{
|
|
196
|
-
command: "tax",
|
|
197
|
-
name: "Sync Taxes",
|
|
198
|
-
description: "Sync Taxes From SAP to Repzo",
|
|
199
|
-
_id: "639715c2bee5dd4b6b11e12a",
|
|
200
|
-
},
|
|
201
|
-
{
|
|
202
|
-
command: "tag",
|
|
203
|
-
name: "Sync Area Tags",
|
|
204
|
-
description: "Sync Area Tags From SAP to Repzo",
|
|
205
|
-
_id: "639715c2bee5dd4b6b11e12b",
|
|
206
|
-
},
|
|
207
|
-
{
|
|
208
|
-
command: "measureunit",
|
|
209
|
-
name: "Sync Measure Units",
|
|
210
|
-
description: "Sync Measure Units From SAP to Repzo",
|
|
211
|
-
_id: "639817eaedafde008af0ad0e",
|
|
212
|
-
},
|
|
213
|
-
{
|
|
214
|
-
command: "measureunit_family",
|
|
215
|
-
name: "Sync Measure Units Family",
|
|
216
|
-
description: "Sync Measure Units Family From SAP to Repzo",
|
|
217
|
-
_id: "63982d09edafde008af0f698",
|
|
218
|
-
},
|
|
219
|
-
{
|
|
220
|
-
command: "category",
|
|
221
|
-
name: "Sync Product Category",
|
|
222
|
-
description: "Sync Product Categories From SAP to Repzo",
|
|
223
|
-
_id: "63984085edafde008af2f689",
|
|
224
|
-
},
|
|
225
|
-
{
|
|
226
|
-
command: "channel",
|
|
227
|
-
name: "Sync Client's Channels",
|
|
228
|
-
description: "Sync Client's Channels From SAP to Repzo",
|
|
229
|
-
_id: "63984085edafde008af2f689",
|
|
230
|
-
},
|
|
231
|
-
{
|
|
232
|
-
command: "payment_term",
|
|
233
|
-
name: "Sync Payments Term",
|
|
234
|
-
description: "Sync Payments Term From SAP to Repzo",
|
|
235
|
-
_id: "63984085edafde008af2f68a",
|
|
236
|
-
},
|
|
237
|
-
{
|
|
238
|
-
command: "bank",
|
|
239
|
-
name: "Sync Banks",
|
|
240
|
-
description: "Sync Banks From SAP to Repzo",
|
|
241
|
-
_id: "63986018333b84929c538570",
|
|
242
|
-
},
|
|
243
|
-
{
|
|
244
|
-
command: "product",
|
|
245
|
-
name: "Sync Products",
|
|
246
|
-
description: "Sync Active Products From SAP to Repzo",
|
|
247
|
-
_id: "63987139333b84929c53a293",
|
|
248
|
-
},
|
|
249
|
-
{
|
|
250
|
-
command: "disabled_product",
|
|
251
|
-
name: "Sync Inactive Products",
|
|
252
|
-
description: "Sync Inactive Products From SAP to Repzo",
|
|
253
|
-
_id: "6399714d0242db686d496466",
|
|
254
|
-
},
|
|
255
|
-
{
|
|
256
|
-
command: "price_list",
|
|
257
|
-
name: "Sync Price Lists",
|
|
258
|
-
description: "Sync Price Lists From SAP to Repzo",
|
|
259
|
-
_id: "639972d6e8a1cfdd26deaa7e",
|
|
260
|
-
},
|
|
261
|
-
{
|
|
262
|
-
command: "client",
|
|
263
|
-
name: "Sync Clients",
|
|
264
|
-
description: "Sync Clients From SAP to Repzo",
|
|
265
|
-
_id: "63997615e8a1cfdd26ded7d1",
|
|
266
|
-
},
|
|
267
|
-
{
|
|
268
|
-
command: "disabled_client",
|
|
269
|
-
name: "Sync Inactive Clients",
|
|
270
|
-
description: "Sync Inactive Clients From SAP to Repzo",
|
|
271
|
-
_id: "639ac554e157f1c63770c1bc",
|
|
272
|
-
},
|
|
273
|
-
{
|
|
274
|
-
command: "adjust_inventory",
|
|
275
|
-
name: "Adjust Inventories",
|
|
276
|
-
description: "Adjust Inventories From SAP to Repzo",
|
|
277
|
-
_id: "639ac56fe157f1c63770c2eb",
|
|
278
|
-
},
|
|
279
|
-
],
|
|
280
|
-
actions: [
|
|
281
|
-
{
|
|
282
|
-
action: "create_invoice",
|
|
283
|
-
name: "Sync Invoices",
|
|
284
|
-
description: "Sync Invoices From Repzo to SAP",
|
|
285
|
-
_id: "639ebeacdbba64d7af94520c",
|
|
286
|
-
},
|
|
287
|
-
{
|
|
288
|
-
action: "create_return_invoice",
|
|
289
|
-
name: "Sync Return Invoices",
|
|
290
|
-
description: "Sync Return Invoices From Repzo to SAP",
|
|
291
|
-
_id: "639ebeacdbba64d7af94520d",
|
|
292
|
-
},
|
|
293
|
-
{
|
|
294
|
-
action: "create_proforma",
|
|
295
|
-
name: "Sync Approved Sales Orders",
|
|
296
|
-
description: "Sync Approved Sales Orders From Repzo to SAP",
|
|
297
|
-
_id: "639ebeacdbba64d7af94520e",
|
|
298
|
-
},
|
|
299
|
-
{
|
|
300
|
-
action: "create_payment",
|
|
301
|
-
name: "Sync Paymants",
|
|
302
|
-
description: "Sync Paymants From Repzo to SAP",
|
|
303
|
-
_id: "639ebeacdbba64d7af94520f",
|
|
304
|
-
},
|
|
305
|
-
{
|
|
306
|
-
action: "create_transfer",
|
|
307
|
-
name: "Sync Approved Transfers",
|
|
308
|
-
description: "Sync Approved Transfers From Repzo to SAP",
|
|
309
|
-
_id: "639ebeacdbba64d7af945210",
|
|
310
|
-
},
|
|
311
|
-
],
|
|
312
|
-
createdAt: "2022-12-08T08:38:00.915Z",
|
|
313
|
-
updatedAt: "2022-12-18T10:55:16.858Z",
|
|
314
|
-
__v: 0,
|
|
315
|
-
},
|
|
316
|
-
company_namespace: ["unipaljo"],
|
|
317
|
-
formData: {
|
|
318
|
-
invoices: {
|
|
319
|
-
createInvoiceHook: false,
|
|
320
|
-
createReturnInvoiceHook: false,
|
|
321
|
-
},
|
|
322
|
-
payments: {
|
|
323
|
-
createPaymentHook: false,
|
|
324
|
-
},
|
|
325
|
-
proformas: {
|
|
326
|
-
createApprovedProformaHook: false,
|
|
327
|
-
},
|
|
328
|
-
transfers: {
|
|
329
|
-
createApprovedTransferHook: false,
|
|
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
|
+
},
|
|
330
114
|
},
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
115
|
+
},
|
|
116
|
+
},
|
|
117
|
+
},
|
|
118
|
+
options_JSONSchema: {
|
|
119
|
+
title: "SAP Integration Optional Settings",
|
|
120
|
+
type: "object",
|
|
121
|
+
required: [],
|
|
122
|
+
properties: {
|
|
123
|
+
bench_time_warehouse: {
|
|
124
|
+
title: "Bench Time: Warehouse",
|
|
125
|
+
type: "string",
|
|
126
|
+
format: "date",
|
|
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
|
+
},
|
|
163
|
+
},
|
|
164
|
+
},
|
|
165
|
+
app_settings: {
|
|
166
|
+
repo: "",
|
|
167
|
+
serviceEndPoint: "",
|
|
168
|
+
_id: "6391a268db71ef64357195db",
|
|
169
|
+
},
|
|
170
|
+
app_category: "6249fa8466312f76e595634a",
|
|
171
|
+
commands: [
|
|
172
|
+
{
|
|
173
|
+
command: "basic",
|
|
174
|
+
name: "Full Sync",
|
|
175
|
+
description: "",
|
|
176
|
+
_id: "6391a268db71ef64357195dc",
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
command: "join",
|
|
180
|
+
name: "Join",
|
|
181
|
+
description: "",
|
|
182
|
+
_id: "6391a268db71ef64357195dd",
|
|
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",
|
|
338
231
|
},
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
232
|
+
{
|
|
233
|
+
command: "payment_term",
|
|
234
|
+
name: "Sync Payments Term",
|
|
235
|
+
description: "Sync Payments Term From SAP to Repzo",
|
|
236
|
+
_id: "63984085edafde008af2f68a",
|
|
342
237
|
},
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
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
|
+
},
|
|
312
|
+
],
|
|
313
|
+
createdAt: "2022-12-08T08:38:00.915Z",
|
|
314
|
+
updatedAt: "2022-12-18T10:55:16.858Z",
|
|
315
|
+
__v: 0,
|
|
316
|
+
},
|
|
317
|
+
company_namespace: ["unipaljo"],
|
|
318
|
+
formData: {
|
|
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
|
+
},
|
|
332
|
+
sapHostUrl: "http://unipal.b1pro.com:8083/api",
|
|
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",
|
|
346
344
|
},
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
345
|
+
createdAt: "2022-12-18T12:47:49.096Z",
|
|
346
|
+
updatedAt: "2022-12-18T12:53:54.089Z",
|
|
347
|
+
__v: 0,
|
|
348
|
+
},
|
|
349
|
+
end_of_day: "04:00",
|
|
350
|
+
nameSpace: ["unipaljo"],
|
|
351
|
+
timezone: "Asia/Amman",
|
|
352
|
+
meta: "",
|
|
353
|
+
env: "staging",
|
|
354
|
+
sync_id: "f925b24a-1984-40e0-bec3-300a6071cbd6",
|
|
355
|
+
command: "rep",
|
|
354
356
|
};
|
|
355
357
|
Commands(commandEvent);
|