taxtank-core 0.31.38 → 0.31.39
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 +4 -1
- package/esm2020/lib/models/transaction/allocation-rule.mjs +1 -1
- package/fesm2015/taxtank-core.mjs +6 -0
- package/fesm2015/taxtank-core.mjs.map +1 -1
- package/fesm2020/taxtank-core.mjs +6 -0
- 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();
|