taxtank-core 0.32.72 → 0.32.74

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.
@@ -5,4 +5,5 @@ export declare class TransactionAllocation extends AbstractModel {
5
5
  amount?: number;
6
6
  bankTransaction?: BankTransaction;
7
7
  transaction?: Transaction;
8
+ isAutoAllocated?: boolean;
8
9
  }
@@ -18,6 +18,7 @@ export declare abstract class TransactionBase extends ObservableModel {
18
18
  isGST?: boolean;
19
19
  claimPercent?: number;
20
20
  sharedClaimPercent?: number;
21
+ get gstCoefficient(): number;
21
22
  get claimRatio(): number;
22
23
  get tankType(): TankTypeEnum;
23
24
  /**
@@ -4,6 +4,9 @@ import { UntypedFormArray } from '@angular/forms';
4
4
  import { AllocationRuleTransactionForm } from './allocation-rule-transaction.form';
5
5
  import { ChartAccountsCategoryEnum } from '../../db/Enums';
6
6
  import { IEventListener } from '../../interfaces';
7
+ /**
8
+ * @TODO move aux methods like isSplittable/isTaxFieldHidden/etc (used in view with ngIf) to properties to improve perf
9
+ */
7
10
  export declare class AllocationRuleForm extends AbstractForm<AllocationRule> implements IEventListener {
8
11
  private isGST;
9
12
  chartAccountsCategories: ChartAccountsCategoryEnum[];
@@ -30,4 +30,5 @@ export declare class AllocationGroup extends AbstractModel {
30
30
  * user can edit/delete (via redo all) transaction only for allocate and find and match operations
31
31
  */
32
32
  isTransactionChangeable(): boolean;
33
+ get isAutoAllocated(): boolean;
33
34
  }
@@ -24,5 +24,5 @@ export declare class AllocationRuleTransaction extends AllocationRuleTransaction
24
24
  /**
25
25
  * Create Transaction instance based on passed bank transaction and rule transaction
26
26
  */
27
- toTransaction(bankTransaction: BankTransaction): Transaction;
27
+ toTransaction(bankTransaction?: BankTransaction): Transaction;
28
28
  }
@@ -97,4 +97,5 @@ export declare class Transaction extends TransactionBase implements Expense {
97
97
  * user's choice and transform amount, but there are exceptions like advance (negative or positive amount)
98
98
  */
99
99
  ignoreSign(): boolean;
100
+ setParent(transaction: Transaction): void;
100
101
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "taxtank-core",
3
- "version": "0.32.72",
3
+ "version": "0.32.74",
4
4
  "private": false,
5
5
  "peerDependencies": {
6
6
  "@angular/compiler": "^16.2.12",