repzo-sap-absjo 1.0.6 → 1.0.8

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 (80) hide show
  1. package/changelog.md +4 -0
  2. package/lib/actions/create_invoice.d.ts +13 -19
  3. package/lib/actions/create_invoice.js +216 -336
  4. package/lib/actions/create_payment.d.ts +1 -4
  5. package/lib/actions/create_payment.js +125 -171
  6. package/lib/actions/create_proforma.d.ts +1 -4
  7. package/lib/actions/create_proforma.js +165 -268
  8. package/lib/actions/create_return_invoice.d.ts +1 -4
  9. package/lib/actions/create_return_invoice.js +177 -295
  10. package/lib/actions/create_transfer.d.ts +1 -4
  11. package/lib/actions/create_transfer.js +143 -198
  12. package/lib/actions/index.js +15 -23
  13. package/lib/commands/adjust_inventory.d.ts +2 -4
  14. package/lib/commands/adjust_inventory.js +160 -290
  15. package/lib/commands/bank.d.ts +2 -4
  16. package/lib/commands/bank.js +157 -279
  17. package/lib/commands/basic.js +47 -66
  18. package/lib/commands/category.d.ts +1 -3
  19. package/lib/commands/category.js +104 -178
  20. package/lib/commands/channel.d.ts +1 -3
  21. package/lib/commands/channel.js +117 -198
  22. package/lib/commands/client.d.ts +32 -34
  23. package/lib/commands/client.js +244 -404
  24. package/lib/commands/client_disabled.d.ts +1 -3
  25. package/lib/commands/client_disabled.js +94 -163
  26. package/lib/commands/index.d.ts +11 -15
  27. package/lib/commands/index.js +60 -60
  28. package/lib/commands/join.js +66 -192
  29. package/lib/commands/measureunit.d.ts +14 -19
  30. package/lib/commands/measureunit.js +191 -289
  31. package/lib/commands/measureunit_family.d.ts +8 -10
  32. package/lib/commands/measureunit_family.js +138 -250
  33. package/lib/commands/payment_term.d.ts +1 -3
  34. package/lib/commands/payment_term.js +123 -202
  35. package/lib/commands/price_list.d.ts +15 -15
  36. package/lib/commands/price_list.js +327 -571
  37. package/lib/commands/product.d.ts +30 -32
  38. package/lib/commands/product.js +243 -425
  39. package/lib/commands/product_disabled.d.ts +1 -3
  40. package/lib/commands/product_disabled.js +94 -164
  41. package/lib/commands/rep.js +141 -221
  42. package/lib/commands/tag.js +109 -174
  43. package/lib/commands/tax.js +112 -177
  44. package/lib/commands/warehouse.d.ts +1 -3
  45. package/lib/commands/warehouse.js +119 -207
  46. package/lib/index.d.ts +12 -21
  47. package/lib/test/actions/create_invoice.js +188 -193
  48. package/lib/test/actions/create_payment.js +107 -112
  49. package/lib/test/actions/create_proforma.js +216 -220
  50. package/lib/test/actions/create_return_invoice.js +200 -205
  51. package/lib/test/actions/create_transfer.js +115 -120
  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 +327 -328
  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 +353 -355
  58. package/lib/test/commands/client_disabled.js +90 -90
  59. package/lib/test/commands/join.js +327 -328
  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 -90
  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 +344 -346
  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 +60 -83
  71. package/lib/util.d.ts +19 -70
  72. package/lib/util.js +144 -170
  73. package/package.json +1 -1
  74. package/src/actions/create_invoice.ts +35 -0
  75. package/src/actions/create_payment.ts +35 -0
  76. package/src/actions/create_proforma.ts +35 -0
  77. package/src/actions/create_return_invoice.ts +35 -0
  78. package/src/actions/create_transfer.ts +34 -0
  79. package/src/commands/price_list.ts +40 -4
  80. package/src/test/commands/price_list.ts +263 -13
@@ -1,366 +1,364 @@
1
1
  import { Commands } from "../../index.js";
2
2
  let commandEvent = {
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
- },
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: "SAP Jordan. We provide real value to SMEs by understanding their business and driving their vision forward with SAP Business One",
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
+ },
78
116
  },
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
- },
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
+ bench_time_channel: {
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
+ },
90
163
  },
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
- },
164
+ app_settings: {
165
+ repo: "",
166
+ serviceEndPoint: "",
167
+ _id: "6391a268db71ef64357195db",
102
168
  },
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
- },
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",
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",
169
+ app_category: "6249fa8466312f76e595634a",
170
+ commands: [
171
+ {
172
+ command: "basic",
173
+ name: "Full Sync",
174
+ description: "",
175
+ _id: "6391a268db71ef64357195dc",
176
+ },
177
+ {
178
+ command: "join",
179
+ name: "Join",
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,
249
315
  },
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",
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,
330
+ },
331
+ sapHostUrl: "http://unipal.b1pro.com:8083/api",
332
+ warehouseDefaultUpdateDate: "2015-01-01",
333
+ DepartmentCode: "D2",
334
+ 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"}]',
335
+ SalPersCode: "111",
336
+ SalesPersonCode: "111",
337
+ repzoApiKey: "mUOvoIBiv9uIg4ur7-nVdVP4m21EXto4EnlgWgDqP2c",
305
338
  },
306
- {
307
- action: "create_transfer",
308
- name: "Sync Approved Transfers",
309
- description: "Sync Approved Transfers From Repzo to SAP",
310
- _id: "639ebeacdbba64d7af945210",
339
+ options_formData: {
340
+ bench_time_warehouse: "2022-12-19",
341
+ bench_time_rep: "2022-12-18T13:23:48.551Z",
342
+ bench_time_tax: "2022-12-19T09:43:54.043Z",
343
+ bench_time_tag: "2022-12-19T09:50:34.259Z",
344
+ bench_time_measureunit: "2022-12-18T13:33:17.486Z",
345
+ bench_time_measureunit_family: "2022-12-18T13:33:46.625Z",
346
+ bench_time_category: "2022-12-18T13:33:56.471Z",
347
+ bench_time_bank: "2022-12-19T07:10:24.145Z",
348
+ bench_time_product: "2022-12-19T09:51:21.325Z",
349
+ bench_time_product_disabled: "2022-12-19T10:10:17.766Z",
350
+ bench_time_price_list: "2022-12-19T10:11:01.510Z",
311
351
  },
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-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",
352
+ createdAt: "2022-12-18T12:47:49.096Z",
353
+ updatedAt: "2022-12-19T10:18:42.543Z",
354
+ __v: 0,
353
355
  },
354
- createdAt: "2022-12-18T12:47:49.096Z",
355
- updatedAt: "2022-12-19T10:18:42.543Z",
356
- __v: 0,
357
- },
358
- end_of_day: "04:00",
359
- nameSpace: ["unisap"],
360
- timezone: "Asia/Amman",
361
- meta: "",
362
- env: "staging",
363
- sync_id: "16103518-29e0-47b6-95ee-feb1f2c51a6e",
364
- command: "client",
356
+ end_of_day: "04:00",
357
+ nameSpace: ["unisap"],
358
+ timezone: "Asia/Amman",
359
+ meta: "",
360
+ env: "staging",
361
+ sync_id: "16103518-29e0-47b6-95ee-feb1f2c51a6e",
362
+ command: "client",
365
363
  };
366
364
  Commands(commandEvent);