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,222 +1,227 @@
1
1
  import { Actions } from "../../index.js";
2
- Actions({
2
+ Actions(
3
+ {
3
4
  version: "2.0",
4
5
  routeKey: "POST /actions",
5
6
  rawPath: "/actions",
6
7
  rawQueryString: "app=repzo-sap-absjo&action=create_return_invoice",
7
8
  headers: {
8
- action_sync_id: "Actions-0000002",
9
- accept: "*/*",
10
- "accept-encoding": "gzip, deflate",
11
- "content-length": "3658",
12
- "content-type": "application/json",
13
- host: "staging.marketplace.api.repzo.me",
14
- "svix-id": "msg_29I1By29ETyPiZ4SNrc99KIg7D6",
15
- "svix-signature": "v1,OkktM+dibxzeb0M6383POFjBr7DX14HECpBIh17FQnU=",
16
- "svix-timestamp": "1652785653",
17
- "user-agent": "Svix-Webhooks/1.4",
18
- "x-amzn-trace-id": "Root=1-628381f6-0b2c6f346d2eb5d207b582ee",
19
- "x-forwarded-for": "52.215.16.239",
20
- "x-forwarded-port": "443",
21
- "x-forwarded-proto": "https",
9
+ action_sync_id: "Actions-0000002",
10
+ accept: "*/*",
11
+ "accept-encoding": "gzip, deflate",
12
+ "content-length": "3658",
13
+ "content-type": "application/json",
14
+ host: "staging.marketplace.api.repzo.me",
15
+ "svix-id": "msg_29I1By29ETyPiZ4SNrc99KIg7D6",
16
+ "svix-signature": "v1,OkktM+dibxzeb0M6383POFjBr7DX14HECpBIh17FQnU=",
17
+ "svix-timestamp": "1652785653",
18
+ "user-agent": "Svix-Webhooks/1.4",
19
+ "x-amzn-trace-id": "Root=1-628381f6-0b2c6f346d2eb5d207b582ee",
20
+ "x-forwarded-for": "52.215.16.239",
21
+ "x-forwarded-port": "443",
22
+ "x-forwarded-proto": "https",
22
23
  },
23
24
  queryStringParameters: {
24
- action: "create_return_invoice",
25
- app: "repzo-sap-absjo",
25
+ action: "create_return_invoice",
26
+ app: "repzo-sap-absjo",
26
27
  },
27
28
  requestContext: {
28
- accountId: "478266140170",
29
- apiId: "ulkb1ikop2",
30
- domainName: "staging.marketplace.api.repzo.me",
31
- domainPrefix: "staging",
32
- http: {
33
- method: "POST",
34
- path: "/actions",
35
- protocol: "HTTP/1.1",
36
- sourceIp: "52.215.16.239",
37
- userAgent: "Svix-Webhooks/1.4",
38
- },
39
- requestId: "SRE-ejb6IAMEPWQ=",
40
- routeKey: "POST /actions",
41
- stage: "$default",
42
- time: "17/May/2022:11:07:34 +0000",
43
- timeEpoch: 1652785654069,
29
+ accountId: "478266140170",
30
+ apiId: "ulkb1ikop2",
31
+ domainName: "staging.marketplace.api.repzo.me",
32
+ domainPrefix: "staging",
33
+ http: {
34
+ method: "POST",
35
+ path: "/actions",
36
+ protocol: "HTTP/1.1",
37
+ sourceIp: "52.215.16.239",
38
+ userAgent: "Svix-Webhooks/1.4",
39
+ },
40
+ requestId: "SRE-ejb6IAMEPWQ=",
41
+ routeKey: "POST /actions",
42
+ stage: "$default",
43
+ time: "17/May/2022:11:07:34 +0000",
44
+ timeEpoch: 1652785654069,
44
45
  },
45
46
  body: JSON.stringify({
46
- __v: 0,
47
- _id: "639ebfa7637f0245185a2de4",
48
- authorization: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0aW1lem9uZSI6IkFzaWEvUml5YWRoIiwidXNlcm5hbWUiOiJ1bmlwYWxqbzE1NyIsIm5hbWUiOiJESVNUUklCVVRFUiBEaWFhIEFidSBzaGFyZWViIiwic2NvcGUiOiJyZXAiLCJuYW1lU3BhY2UiOlsidW5pcGFsam8iXSwidGVhbSI6W10sImlkZW50aWZpZXIiOjEwNzQsImlkIjoiNjI2Njc3OTJiNzM4ODg4ZDg1ZGY5MTUyIiwiYXBwX2NvZGUiOiJyZXB6b19wcm8iLCJjb3VudHJ5X2NvZGUiOlsiSk8iXSwicGVybWFTdHJpbmciOiJ2dnYwdnZ2dnYwdnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2MHZ2dnZ2dnYwMDAwdjB2MHZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2djB2dnZ2djB2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2djB2MHZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2IiwiaWF0IjoxNjcxMzQ3ODQ5LCJleHAiOjE2NzEzOTEwNDl9.bh1tiS0XyjiQspt9nMiFNMrkcTojgwKF1hAAgh4v1fI",
49
- business_day: "2022-12-18",
50
- client_id: "639ae371b4dc172fc5039b40",
51
- client_name: "MCE_المؤسسة الاستهلاكية العسكرية",
52
- comment: "",
53
- company_namespace: ["unisap"],
54
- consumption: {
55
- _id: "639ebfba462a9df7c259ffeb",
56
- remainder: 15120,
57
- status: "unconsumed",
58
- },
59
- createdAt: "2022-12-18T07:22:34.876Z",
60
- creator: {
61
- _id: "6395af8076a399e2b1315687",
62
- name: "DISTRIBUTER Diaa Abu shareeb",
63
- rep: "6395af8076a399e2b1315687",
64
- type: "rep",
65
- },
66
- currency: "JOD",
67
- deductionFixed: 0,
68
- deductionRatio: 0,
69
- delivery_date: null,
70
- discount_amount: 0,
71
- due_date: "2023-03-18",
72
- geo_tag: {
73
- _id: "639ebfba462a9df7c259ffe8",
74
- coordinates: [35.74179, 32.1129259],
75
- type: "Point",
76
- },
77
- is_void: false,
78
- issue_date: "2022-12-18",
79
- items: [],
80
- latest: true,
81
- origin_warehouse: "6391cca5ca8b3e4981aa36e5",
82
- overwriteTaxExempt: false,
83
- payment_charge: 0,
84
- pre_discount_amount: 0,
85
- pre_subtotal: 0,
86
- pre_tax_amount: 0,
87
- pre_taxable_subtotal: 0,
88
- pre_total: 0,
89
- processable: true,
90
- promotions: [],
91
- return_discount_amount: 0,
92
- return_items: [
93
- {
94
- _id: "639ebfba462a9df7c259ffec",
95
- applicable_promotions: [],
96
- base_unit_qty: -68,
97
- class: "return",
98
- company_namespace: [],
99
- discount_value: 0,
100
- discounted_price: 218,
101
- general_promotions: [],
102
- gross_value: 222,
103
- isAdditional: false,
104
- line_total: -15120,
105
- line_total_without_modifiers: -15120,
106
- measureunit: {
107
- _id: "63981c98bee5dd4b6b12e4c5",
108
- company_namespace: [],
109
- disabled: false,
110
- factor: 1,
111
- name: "PC",
112
- parent: "63981c32e9f3eafb51d7f0af",
113
- },
114
- modifiers_groups: [],
115
- modifiers_tax_total: 0,
116
- modifiers_total: 0,
117
- modifiers_total_before_tax: 0,
118
- note: "",
119
- overwritePrice: null,
120
- price: 218,
121
- qty: -68,
122
- return_reason: "62b074c0a066173bd1c1ea0d",
123
- tax: {
124
- _id: "639715dbbee5dd4b6b11e674",
125
- disabled: false,
126
- name: "امانات ضريبة المبيعات %2",
127
- rate: 0.02,
128
- type: "additive",
129
- },
130
- tax_amount: 4,
131
- tax_total: -296,
132
- tax_total_without_modifiers: -296,
133
- total_before_tax: -14824,
134
- total_before_tax_without_modifiers: -14824,
135
- used_promotions: [],
136
- variant: {
137
- _id: "6398a562e8a1cfdd26dc5e37",
138
- listed_price: 0,
139
- product_id: "6398a562e8a1cfdd26dc5e35",
140
- product_name: "Heinz Tomato Paste Tetra Pack (12M) 6X8X135gm",
141
- variant_id: "6398a562e8a1cfdd26dc5e37",
142
- variant_name: "010-HEI-HE0156",
143
- },
144
- },
145
- ],
146
- return_serial_number: {
147
- _id: "639ebfba462a9df7c259ffe9",
148
- count: 155,
149
- formatted: "RTN-1074-155",
150
- identifier: "1074",
151
- },
152
- return_subtotal: 14824,
153
- return_tax_amount: 296,
154
- return_taxable_subtotal: 14824,
155
- return_total: 15120,
156
- route: null,
157
- serial_number: {
158
- _id: "639ebfba462a9df7c259ffe7",
159
- count: 155,
160
- formatted: "INV-1074-155",
161
- identifier: "1074",
47
+ __v: 0,
48
+ _id: "639ebfa7637f0245185a2de4",
49
+ authorization:
50
+ "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0aW1lem9uZSI6IkFzaWEvUml5YWRoIiwidXNlcm5hbWUiOiJ1bmlwYWxqbzE1NyIsIm5hbWUiOiJESVNUUklCVVRFUiBEaWFhIEFidSBzaGFyZWViIiwic2NvcGUiOiJyZXAiLCJuYW1lU3BhY2UiOlsidW5pcGFsam8iXSwidGVhbSI6W10sImlkZW50aWZpZXIiOjEwNzQsImlkIjoiNjI2Njc3OTJiNzM4ODg4ZDg1ZGY5MTUyIiwiYXBwX2NvZGUiOiJyZXB6b19wcm8iLCJjb3VudHJ5X2NvZGUiOlsiSk8iXSwicGVybWFTdHJpbmciOiJ2dnYwdnZ2dnYwdnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2MHZ2dnZ2dnYwMDAwdjB2MHZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2djB2dnZ2djB2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2djB2MHZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2IiwiaWF0IjoxNjcxMzQ3ODQ5LCJleHAiOjE2NzEzOTEwNDl9.bh1tiS0XyjiQspt9nMiFNMrkcTojgwKF1hAAgh4v1fI",
51
+ business_day: "2022-12-18",
52
+ client_id: "639ae371b4dc172fc5039b40",
53
+ client_name: "MCE_المؤسسة الاستهلاكية العسكرية",
54
+ comment: "",
55
+ company_namespace: ["unisap"],
56
+ consumption: {
57
+ _id: "639ebfba462a9df7c259ffeb",
58
+ remainder: 15120,
59
+ status: "unconsumed",
60
+ },
61
+ createdAt: "2022-12-18T07:22:34.876Z",
62
+ creator: {
63
+ _id: "6395af8076a399e2b1315687",
64
+ name: "DISTRIBUTER Diaa Abu shareeb",
65
+ rep: "6395af8076a399e2b1315687",
66
+ type: "rep",
67
+ },
68
+ currency: "JOD",
69
+ deductionFixed: 0,
70
+ deductionRatio: 0,
71
+ delivery_date: null,
72
+ discount_amount: 0,
73
+ due_date: "2023-03-18",
74
+ geo_tag: {
75
+ _id: "639ebfba462a9df7c259ffe8",
76
+ coordinates: [35.74179, 32.1129259],
77
+ type: "Point",
78
+ },
79
+ is_void: false,
80
+ issue_date: "2022-12-18",
81
+ items: [],
82
+ latest: true,
83
+ origin_warehouse: "6391cca5ca8b3e4981aa36e5",
84
+ overwriteTaxExempt: false,
85
+ payment_charge: 0,
86
+ pre_discount_amount: 0,
87
+ pre_subtotal: 0,
88
+ pre_tax_amount: 0,
89
+ pre_taxable_subtotal: 0,
90
+ pre_total: 0,
91
+ processable: true,
92
+ promotions: [],
93
+ return_discount_amount: 0,
94
+ return_items: [
95
+ {
96
+ _id: "639ebfba462a9df7c259ffec",
97
+ applicable_promotions: [],
98
+ base_unit_qty: -68,
99
+ class: "return",
100
+ company_namespace: [],
101
+ discount_value: 0,
102
+ discounted_price: 218,
103
+ general_promotions: [],
104
+ gross_value: 222,
105
+ isAdditional: false,
106
+ line_total: -15120,
107
+ line_total_without_modifiers: -15120,
108
+ measureunit: {
109
+ _id: "63981c98bee5dd4b6b12e4c5",
110
+ company_namespace: [],
111
+ disabled: false,
112
+ factor: 1,
113
+ name: "PC",
114
+ parent: "63981c32e9f3eafb51d7f0af",
115
+ },
116
+ modifiers_groups: [],
117
+ modifiers_tax_total: 0,
118
+ modifiers_total: 0,
119
+ modifiers_total_before_tax: 0,
120
+ note: "",
121
+ overwritePrice: null,
122
+ price: 218,
123
+ qty: -68,
124
+ return_reason: "62b074c0a066173bd1c1ea0d",
125
+ tax: {
126
+ _id: "639715dbbee5dd4b6b11e674",
127
+ disabled: false,
128
+ name: "امانات ضريبة المبيعات %2",
129
+ rate: 0.02,
130
+ type: "additive",
131
+ },
132
+ tax_amount: 4,
133
+ tax_total: -296,
134
+ tax_total_without_modifiers: -296,
135
+ total_before_tax: -14824,
136
+ total_before_tax_without_modifiers: -14824,
137
+ used_promotions: [],
138
+ variant: {
139
+ _id: "6398a562e8a1cfdd26dc5e37",
140
+ listed_price: 0,
141
+ product_id: "6398a562e8a1cfdd26dc5e35",
142
+ product_name: "Heinz Tomato Paste Tetra Pack (12M) 6X8X135gm",
143
+ variant_id: "6398a562e8a1cfdd26dc5e37",
144
+ variant_name: "010-HEI-HE0156",
145
+ },
162
146
  },
163
- shipping_charge: 0,
164
- shipping_price: 0,
165
- shipping_tax: 0,
166
- signature: null,
167
- status: "paid",
168
- subtotal: -14824,
169
- sync_id: "a34651d8-c586-415b-8914-91da62aeaa3f",
170
- tax_amount: -296,
171
- tax_exempt: false,
172
- taxable_subtotal: -14824,
173
- taxes: {
174
- "امانات ضريبة المبيعات %2": {
175
- name: "امانات ضريبة المبيعات %2",
176
- rate: 0.02,
177
- total: -296,
178
- type: "additive",
179
- },
147
+ ],
148
+ return_serial_number: {
149
+ _id: "639ebfba462a9df7c259ffe9",
150
+ count: 155,
151
+ formatted: "RTN-1074-155",
152
+ identifier: "1074",
153
+ },
154
+ return_subtotal: 14824,
155
+ return_tax_amount: 296,
156
+ return_taxable_subtotal: 14824,
157
+ return_total: 15120,
158
+ route: null,
159
+ serial_number: {
160
+ _id: "639ebfba462a9df7c259ffe7",
161
+ count: 155,
162
+ formatted: "INV-1074-155",
163
+ identifier: "1074",
164
+ },
165
+ shipping_charge: 0,
166
+ shipping_price: 0,
167
+ shipping_tax: 0,
168
+ signature: null,
169
+ status: "paid",
170
+ subtotal: -14824,
171
+ sync_id: "a34651d8-c586-415b-8914-91da62aeaa3f",
172
+ tax_amount: -296,
173
+ tax_exempt: false,
174
+ taxable_subtotal: -14824,
175
+ taxes: {
176
+ "امانات ضريبة المبيعات %2": {
177
+ name: "امانات ضريبة المبيعات %2",
178
+ rate: 0.02,
179
+ total: -296,
180
+ type: "additive",
180
181
  },
181
- teams: [],
182
- time: 1671348150444,
183
- total: -15120,
184
- totalDeductedTax: 0,
185
- totalDeduction: 0,
186
- totalDeductionBeforeTax: 0,
187
- total_with_charges: -15120,
188
- transaction_processed: true,
189
- updatedAt: "2022-12-18T07:22:34.998Z",
190
- version: 2,
182
+ },
183
+ teams: [],
184
+ time: 1671348150444,
185
+ total: -15120,
186
+ totalDeductedTax: 0,
187
+ totalDeduction: 0,
188
+ totalDeductionBeforeTax: 0,
189
+ total_with_charges: -15120,
190
+ transaction_processed: true,
191
+ updatedAt: "2022-12-18T07:22:34.998Z",
192
+ version: 2,
191
193
  }),
192
194
  isBase64Encoded: false,
193
- }, {
195
+ },
196
+ {
194
197
  app_id: "",
195
198
  repzoEndPoint: "",
196
199
  serviceEndPoint: "",
197
200
  env: "staging",
198
201
  data: {
199
- invoices: {
200
- createInvoiceHook: false,
201
- createReturnInvoiceHook: false,
202
- },
203
- payments: {
204
- createPaymentHook: false,
205
- },
206
- proformas: {
207
- createApprovedProformaHook: false,
208
- },
209
- transfer: {
210
- createApprovedTransferHook: false,
211
- },
212
- repzoApiKey: "L98_Pc8qZG2R5hZIIMjxLQNUgUzT3_0aX2BuLvkyh74",
213
- sapHostUrl: "http://unipal.b1pro.com:8083/api",
214
- errorEmail: "maram.alshen@repzoapp.com",
215
- serviceApiKey: "awdas",
216
- warehouseDefaultUpdateDate: "2015-01-01",
217
- DepartmentCode: "D2",
218
- 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"}]',
219
- SalPersCode: "111",
220
- SalesPersonCode: "111",
202
+ invoices: {
203
+ createInvoiceHook: false,
204
+ createReturnInvoiceHook: false,
205
+ },
206
+ payments: {
207
+ createPaymentHook: false,
208
+ },
209
+ proformas: {
210
+ createApprovedProformaHook: false,
211
+ },
212
+ transfer: {
213
+ createApprovedTransferHook: false,
214
+ },
215
+ repzoApiKey: "L98_Pc8qZG2R5hZIIMjxLQNUgUzT3_0aX2BuLvkyh74",
216
+ sapHostUrl: "http://unipal.b1pro.com:8083/api",
217
+ errorEmail: "maram.alshen@repzoapp.com",
218
+ serviceApiKey: "awdas",
219
+ warehouseDefaultUpdateDate: "2015-01-01",
220
+ DepartmentCode: "D2",
221
+ return_reason:
222
+ '[{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"}]',
223
+ SalPersCode: "111",
224
+ SalesPersonCode: "111",
221
225
  },
222
- });
226
+ }
227
+ );