taxtank-core 0.31.38 → 0.31.40
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/esm2020/lib/forms/transaction/allocation-rule-transaction.form.mjs +5 -1
- package/esm2020/lib/forms/transaction/allocation-rule.form.mjs +5 -4
- package/esm2020/lib/models/transaction/allocation-rule.mjs +1 -1
- package/fesm2015/taxtank-core.mjs +7 -3
- package/fesm2015/taxtank-core.mjs.map +1 -1
- package/fesm2020/taxtank-core.mjs +7 -3
- package/fesm2020/taxtank-core.mjs.map +1 -1
- package/lib/forms/transaction/allocation-rule-transaction.form.d.ts +1 -0
- package/lib/forms/transaction/allocation-rule.form.d.ts +1 -0
- package/package.json +1 -1
|
@@ -22820,6 +22820,9 @@ class AllocationRuleTransactionForm extends AbstractForm {
|
|
|
22820
22820
|
get isSplit() {
|
|
22821
22821
|
return this.get('amountPercent').enabled;
|
|
22822
22822
|
}
|
|
22823
|
+
isPersonal() {
|
|
22824
|
+
return this.get('tankType').value === TankTypeEnum.PERSONAL;
|
|
22825
|
+
}
|
|
22823
22826
|
addChildTransactionForm() {
|
|
22824
22827
|
this.childTransactionsArray.push(new UntypedFormGroup({
|
|
22825
22828
|
chartAccounts: new UntypedFormControl(null, Validators.required),
|
|
@@ -22964,6 +22967,9 @@ class AllocationRuleForm extends AbstractForm {
|
|
|
22964
22967
|
}
|
|
22965
22968
|
return super.submit(data);
|
|
22966
22969
|
}
|
|
22970
|
+
isSplittable() {
|
|
22971
|
+
return this.get('type').value === AllocationRuleTypeEnum.EXPENSE || this.transactionFormGroup.isPersonal();
|
|
22972
|
+
}
|
|
22967
22973
|
listenEvents() {
|
|
22968
22974
|
this.listenTankTypeChanges();
|
|
22969
22975
|
this.listenTypeChanges();
|
|
@@ -23046,9 +23052,7 @@ class AllocationRuleForm extends AbstractForm {
|
|
|
23046
23052
|
this.transactionFormGroup.get('business').enable({ emitEvent: false });
|
|
23047
23053
|
if (this.isGST) {
|
|
23048
23054
|
this.transactionFormGroup.get('isGST').enable({ emitEvent: false });
|
|
23049
|
-
|
|
23050
|
-
this.transactionFormGroup.get('isGST').setValue(true);
|
|
23051
|
-
}
|
|
23055
|
+
this.transactionFormGroup.get('isGST').setValue(true);
|
|
23052
23056
|
}
|
|
23053
23057
|
break;
|
|
23054
23058
|
}
|