@lendi/integrations-transform 1.1.6 → 1.1.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.
|
@@ -219,7 +219,7 @@ var selfEmploymentIncomeMapping = {
|
|
|
219
219
|
interest: 'Addback.@Interest',
|
|
220
220
|
lease: 'Addback.@Lease',
|
|
221
221
|
nonRecurringExpenses: 'Addback.@NonRecurringExpenses',
|
|
222
|
-
other: 'Addback.@
|
|
222
|
+
other: 'Addback.OtherAddback[0].@Amount',
|
|
223
223
|
salary: 'Addback.@Salary',
|
|
224
224
|
superannuationExcess: 'Addback.@SuperannuationExcess'
|
|
225
225
|
},
|
|
@@ -239,6 +239,9 @@ function generateIncomeBusinessDetails(data) {
|
|
|
239
239
|
if (key === 'addback') {
|
|
240
240
|
for (var _c = 0, _d = Object.entries(value); _c < _d.length; _c++) {
|
|
241
241
|
var _e = _d[_c], addbackKey = _e[0], addbackValue = _e[1];
|
|
242
|
+
if (addbackKey === 'other') {
|
|
243
|
+
(0, lodash_1.set)(income, 'Addback.OtherAddback[0].@Description', 'other');
|
|
244
|
+
}
|
|
242
245
|
(0, lodash_1.set)(income, addbackMapping[addbackKey], addbackValue);
|
|
243
246
|
}
|
|
244
247
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lendi/integrations-transform",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.8",
|
|
4
4
|
"description": "Library for kafka event data transforming",
|
|
5
5
|
"author": "Integrations <integrations@lendi.com.au>",
|
|
6
6
|
"homepage": "https://bitbucket.org/lendi-dev/integrations-shared-packages#readme",
|