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.
@@ -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();