taxtank-core 0.32.33 → 0.32.36

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';
@@ -50,6 +50,6 @@ export declare abstract class AbstractForm<Model> extends UntypedFormGroup {
50
50
  /**
51
51
  * upgraded version of patchValue to skip duplicated changes
52
52
  */
53
- patchField(name: string, value: any, distinctUntilChanged?: boolean): void;
53
+ patchField(name: string, value: any): void;
54
54
  fieldChanged(name: string): boolean;
55
55
  }
@@ -49,8 +49,10 @@ export declare class SoleInvoice extends SoleInvoiceBase {
49
49
  isDraft(): boolean;
50
50
  isCancelled(): boolean;
51
51
  isPending(): boolean;
52
- isPaid(): boolean;
52
+ isAllocated(): boolean;
53
53
  isPaidCash(): boolean;
54
+ isPaid(): boolean;
55
+ isEditable(): boolean;
54
56
  isOverdue(): boolean;
55
57
  isUnpaid(): boolean;
56
58
  /**
@@ -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.33",
3
+ "version": "0.32.36",
4
4
  "private": false,
5
5
  "peerDependencies": {
6
6
  "@angular/compiler": "^16.2.12",