taxtank-core 0.21.1 → 0.21.4
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/bundles/taxtank-core.umd.js +17 -9
- package/bundles/taxtank-core.umd.js.map +1 -1
- package/esm2015/lib/forms/bank/bank-account/bank-account-add-manual.form.js +3 -2
- package/esm2015/lib/forms/register/register-client.form.js +3 -9
- package/esm2015/lib/forms/register/register-firm.form.js +4 -1
- package/esm2015/lib/functions/mat-options-functions.js +4 -1
- package/esm2015/lib/models/bank/bank-account.js +7 -1
- package/fesm2015/taxtank-core.js +15 -9
- package/fesm2015/taxtank-core.js.map +1 -1
- package/lib/forms/register/register-client.form.d.ts +3 -2
- package/lib/forms/register/register-firm.form.d.ts +1 -0
- package/lib/models/bank/bank-account.d.ts +4 -0
- package/package.json +1 -1
|
@@ -3378,6 +3378,12 @@
|
|
|
3378
3378
|
BankAccount.prototype.isPropertyTank = function () {
|
|
3379
3379
|
return this.tankType === exports.TankTypeEnum.PROPERTY;
|
|
3380
3380
|
};
|
|
3381
|
+
/**
|
|
3382
|
+
* check if bank account related to sole tank
|
|
3383
|
+
*/
|
|
3384
|
+
BankAccount.prototype.isSoleTank = function () {
|
|
3385
|
+
return this.tankType === exports.TankTypeEnum.SOLE;
|
|
3386
|
+
};
|
|
3381
3387
|
/**
|
|
3382
3388
|
* Get Bank account property by id
|
|
3383
3389
|
* @param id Id of property
|
|
@@ -14791,6 +14797,9 @@
|
|
|
14791
14797
|
}
|
|
14792
14798
|
|
|
14793
14799
|
function compareMatOptions(option, value) {
|
|
14800
|
+
if (!option) {
|
|
14801
|
+
return false;
|
|
14802
|
+
}
|
|
14794
14803
|
return option.id === value.id;
|
|
14795
14804
|
}
|
|
14796
14805
|
function displayMatOptions(option) {
|
|
@@ -14978,7 +14987,7 @@
|
|
|
14978
14987
|
currentBalance: new forms.FormControl(null, forms.Validators.required),
|
|
14979
14988
|
accountNumber: new forms.FormControl(null, [forms.Validators.required, forms.Validators.pattern(BankAccountAddManualForm.accountNumberPattern)]),
|
|
14980
14989
|
tankType: new forms.FormControl(null, forms.Validators.required),
|
|
14981
|
-
}) || this;
|
|
14990
|
+
}, classTransformer.plainToClass(BankAccount, {})) || this;
|
|
14982
14991
|
_this.connection = connection;
|
|
14983
14992
|
_this.listenEvents();
|
|
14984
14993
|
return _this;
|
|
@@ -15259,18 +15268,13 @@
|
|
|
15259
15268
|
referenceCode: new forms.FormControl(referenceCode)
|
|
15260
15269
|
}) || this;
|
|
15261
15270
|
}
|
|
15262
|
-
RegisterClientForm.prototype.submit = function () {
|
|
15271
|
+
RegisterClientForm.prototype.submit = function (data) {
|
|
15272
|
+
if (data === void 0) { data = {}; }
|
|
15273
|
+
return _super.prototype.submit.call(this, { password: this.get('password').submit().password });
|
|
15263
15274
|
var formValue = _super.prototype.submit.call(this);
|
|
15264
15275
|
if (!formValue) {
|
|
15265
15276
|
return null;
|
|
15266
15277
|
}
|
|
15267
|
-
return {
|
|
15268
|
-
firstName: this.value.firstName,
|
|
15269
|
-
lastName: this.value.lastName,
|
|
15270
|
-
email: this.value.email,
|
|
15271
|
-
password: this.value.password.password,
|
|
15272
|
-
referenceCode: this.value.referenceCode
|
|
15273
|
-
};
|
|
15274
15278
|
};
|
|
15275
15279
|
return RegisterClientForm;
|
|
15276
15280
|
}(AbstractForm));
|
|
@@ -15288,6 +15292,10 @@
|
|
|
15288
15292
|
_this.firmType = firmType;
|
|
15289
15293
|
return _this;
|
|
15290
15294
|
}
|
|
15295
|
+
RegisterFirmForm.prototype.submit = function (data) {
|
|
15296
|
+
if (data === void 0) { data = {}; }
|
|
15297
|
+
return _super.prototype.submit.call(this, { owner: this.get('owner').submit() });
|
|
15298
|
+
};
|
|
15291
15299
|
return RegisterFirmForm;
|
|
15292
15300
|
}(AbstractForm));
|
|
15293
15301
|
|