taxtank-core 0.32.35 → 0.32.38

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.
@@ -36,7 +36,7 @@ export declare class Collection<Model extends AbstractModel> implements Iterable
36
36
  groupBy(path?: string): CollectionDictionary<this>;
37
37
  indexBy(path?: string): Dictionary<Model>;
38
38
  filter(callback: (item: Model) => boolean): this;
39
- filterBy(path: string, values?: any): this;
39
+ filterBy(path: string, values: any): this;
40
40
  filterByRange(path: string, from: any, to: any): this;
41
41
  filterByFinancialYear(pathFrom: string, pathTo?: string, financialYear?: FinancialYear): this;
42
42
  find(callback: (item: Model) => boolean): Model | null;
@@ -18,6 +18,7 @@ export declare class TransactionCollection extends ExportableCollection<Transact
18
18
  constructor(transactions?: Transaction[], depreciations?: Depreciation[]);
19
19
  getSoleTransactions(): this;
20
20
  get amount(): number;
21
+ getFindAndMatch(allocations: TransactionAllocationCollection): this;
21
22
  getUnallocated(allocations: TransactionAllocationCollection): TransactionCollection;
22
23
  getUnallocatedAmount(allocations: TransactionAllocationCollection): number;
23
24
  /**
@@ -0,0 +1,4 @@
1
+ export declare enum ChartAccountsUnallocatableListEnum {
2
+ HOME_OFFICE_WORK_HOURS = 103,
3
+ HOME_OFFICE_SOLE_HOURS = 888
4
+ }
@@ -5,6 +5,7 @@ export * from './chart-accounts-heading-tax-deductible.enum';
5
5
  export * from './chart-accounts-heading-taxable.enum';
6
6
  export * from './chart-accounts-heading-vehicle-list.enum';
7
7
  export * from './chart-accounts-list.enum';
8
+ export * from './chart-accounts-unallocatable-list.enum';
8
9
  export * from './chart-accounts-meta-field-list.enum';
9
10
  export * from './chart-accounts-meta-field-type.enum';
10
11
  export * from './chart-accounts-salary-adjustments-list.enum';
@@ -1,5 +1,5 @@
1
1
  import { AbstractForm } from '../abstract.form';
2
- import { ClientIncomeTypes } from '../../models/client/client-income-types';
2
+ import { ClientIncomeTypes } from '../../models';
3
3
  export declare class ClientIncomeTypesForm extends AbstractForm<ClientIncomeTypes> {
4
4
  private clientIncomeTypes;
5
5
  constructor(clientIncomeTypes?: ClientIncomeTypes);
@@ -71,6 +71,7 @@ export declare class Transaction extends TransactionBase implements Expense {
71
71
  */
72
72
  getMetaFieldValue(field: ChartAccountsMetaFieldListEnum): number;
73
73
  isCash(): boolean;
74
+ canFindAndMatch(allocations: TransactionAllocationCollection): boolean;
74
75
  /**
75
76
  * Create Depreciation instance based on Transaction
76
77
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "taxtank-core",
3
- "version": "0.32.35",
3
+ "version": "0.32.38",
4
4
  "private": false,
5
5
  "peerDependencies": {
6
6
  "@angular/compiler": "^16.2.12",