taxtank-core 0.28.8-3 → 0.28.8-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 +5 -1
- package/bundles/taxtank-core.umd.js.map +1 -1
- package/esm2015/lib/forms/bank/bank-account/bank-account-import.form.js +2 -2
- package/esm2015/lib/forms/loan/loan.form.js +5 -1
- package/fesm2015/taxtank-core.js +5 -1
- package/fesm2015/taxtank-core.js.map +1 -1
- package/package.json +1 -1
|
@@ -16989,6 +16989,10 @@
|
|
|
16989
16989
|
* For vehicle loans term has a maximum value depended of repayment frequency
|
|
16990
16990
|
*/
|
|
16991
16991
|
LoanForm.prototype.updateTermValidation = function () {
|
|
16992
|
+
// no need terms for bank loans
|
|
16993
|
+
if (!!this.loan.bankAccount) {
|
|
16994
|
+
return;
|
|
16995
|
+
}
|
|
16992
16996
|
var currentRepaymentFrequency = this.get('repaymentFrequency').value;
|
|
16993
16997
|
// term validation depends on selected repayment frequency, so can not validate when frequency is empty
|
|
16994
16998
|
// repaymentType is required field, so we don't need to clear validation
|
|
@@ -17531,7 +17535,7 @@
|
|
|
17531
17535
|
if (bankAccount.isLoan()) {
|
|
17532
17536
|
// Attach bank account to loan for LoanForm's logic
|
|
17533
17537
|
// @TODO Alex/Vik: we should use separated API for bank accounts and loans
|
|
17534
|
-
var loan = classTransformer.plainToClass(Loan, Object.assign(bankAccount.loan, { bankAccount:
|
|
17538
|
+
var loan = classTransformer.plainToClass(Loan, Object.assign(bankAccount.loan, { bankAccount: { accountId: bankAccount.accountId } }));
|
|
17535
17539
|
_this.addControl('loan', new LoanForm(loan));
|
|
17536
17540
|
}
|
|
17537
17541
|
// basiq account import form should be disabled (unchecked) by default
|