taxtank-core 0.32.41 → 0.32.44

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.
Files changed (24) hide show
  1. package/esm2022/lib/collections/bank-account.collection.mjs +7 -11
  2. package/esm2022/lib/collections/bank-transaction.collection.mjs +2 -3
  3. package/esm2022/lib/collections/transaction/transaction.collection.mjs +2 -3
  4. package/esm2022/lib/db/Json/chart-accounts/chart-accounts-value.json +22 -0
  5. package/esm2022/lib/db/Json/holding/holding-type-exchange.json +11 -11
  6. package/esm2022/lib/db/Models/property/property-valuation.mjs +1 -1
  7. package/esm2022/lib/models/bank/bank-account.mjs +5 -3
  8. package/esm2022/lib/models/bank/bank-transaction.mjs +2 -2
  9. package/esm2022/lib/models/property/property-valuation.mjs +5 -1
  10. package/esm2022/lib/models/sole/sole-invoice.mjs +8 -6
  11. package/esm2022/lib/models/transaction/transaction-allocation.mjs +2 -2
  12. package/esm2022/lib/models/transaction/transaction.mjs +2 -2
  13. package/esm2022/lib/services/http/bank/bank-account/bank-account.service.mjs +5 -1
  14. package/fesm2022/taxtank-core.mjs +148 -115
  15. package/fesm2022/taxtank-core.mjs.map +1 -1
  16. package/lib/collections/bank-account.collection.d.ts +2 -2
  17. package/lib/collections/bank-transaction.collection.d.ts +3 -6
  18. package/lib/collections/transaction/transaction.collection.d.ts +1 -1
  19. package/lib/db/Models/property/property-valuation.d.ts +2 -0
  20. package/lib/models/bank/bank-account.d.ts +1 -1
  21. package/lib/models/property/property-valuation.d.ts +2 -0
  22. package/lib/models/transaction/transaction-allocation.d.ts +1 -1
  23. package/lib/services/http/bank/bank-account/bank-account.service.d.ts +1 -0
  24. package/package.json +1 -1
@@ -30,9 +30,10 @@ export declare class BankAccountCollection extends Collection<BankAccount> {
30
30
  */
31
31
  getByPropertiesIds(ids: number[]): BankAccountCollection;
32
32
  /**
33
+ * @TODO feature functionality allow to work with shared accounts
33
34
  * get collection of active bank accounts
34
35
  */
35
- getActiveBankAccounts(): BankAccountCollection;
36
+ getActive(): BankAccountCollection;
36
37
  /**
37
38
  * get reduction of loan (reduction of principle) percentage
38
39
  */
@@ -76,7 +77,6 @@ export declare class BankAccountCollection extends Collection<BankAccount> {
76
77
  getLVR(property: Property): number;
77
78
  /**
78
79
  * @TODO Alex/Vik: maybe we should get it from jwtToken or think about some localStorageService?
79
- * get own bankAccounts active for current financial year
80
80
  */
81
81
  getOwn(): this;
82
82
  getActiveLoanAccountsByProperties(ids: number[]): BankAccountCollection;
@@ -1,10 +1,7 @@
1
- import { BankTransaction } from '../models/bank/bank-transaction';
2
- import { MonthNumberEnum } from '../models/financial-year/month-number.enum';
3
- import { IncomeSource } from '../models/income-source/income-source';
4
- import { BankAccount } from '../models/bank/bank-account';
1
+ import { BankAccount, BankTransaction, IncomeSource, MonthNumberEnum } from '../models';
5
2
  import { Collection } from './collection';
6
3
  import { CollectionDictionary } from './collection-dictionary';
7
- import { TransactionAllocationCollection } from './transaction/transaction-allocation.collection';
4
+ import { TransactionAllocationCollection } from './transaction';
8
5
  /**
9
6
  * Collection of bank transactions.
10
7
  * IMPORTANT: Create this collection based on bank transactions from TransactionAllocationService
@@ -16,7 +13,7 @@ export declare class BankTransactionCollection extends Collection<BankTransactio
16
13
  /**
17
14
  * Difference between total bank transactions amount and sum of allocations for passed bank transactions
18
15
  */
19
- getUnallocatedAmount(allocations: TransactionAllocationCollection): any;
16
+ getUnallocatedAmount(allocations: TransactionAllocationCollection): number;
20
17
  getAllocatedAmount(allocations: TransactionAllocationCollection): number;
21
18
  /**
22
19
  * get date of the last transaction
@@ -6,7 +6,7 @@ import { ExportableCollection } from '../exportable.collection';
6
6
  import { ExportCell } from '../../models/export/export-cell';
7
7
  import { Collection } from '../collection';
8
8
  import { ChartData } from '../../models/chart/chart-data';
9
- import { Depreciation } from '../../models/depreciation/depreciation';
9
+ import { Depreciation } from '../../models';
10
10
  import { SoleInvoiceCollection } from '../sole';
11
11
  import { CollectionDictionary } from '../collection-dictionary';
12
12
  /**
@@ -1,6 +1,7 @@
1
1
  import { Property } from './property';
2
2
  import { PropertyDocument } from '../document/property-document';
3
3
  import { ObservableModel } from '../observable-model';
4
+ import { PropertyCategoryMovement } from './property-category-movement';
4
5
  export declare class PropertyValuation extends ObservableModel {
5
6
  date?: Date;
6
7
  marketValue?: number;
@@ -9,4 +10,5 @@ export declare class PropertyValuation extends ObservableModel {
9
10
  updatedAt?: Date;
10
11
  property?: Property;
11
12
  document?: PropertyDocument;
13
+ categoryMovement?: PropertyCategoryMovement;
12
14
  }
@@ -77,7 +77,7 @@ export declare class BankAccount extends BankAccountBase {
77
77
  getPropertyBalanceAmount(propertyId: number): number;
78
78
  getMonthlyRepaymentAmount(propertyId: number): number;
79
79
  /**
80
- * Check if bank account is active (has 'active' status or hasn't been paid out/refinanced)
80
+ * Check if bank account is active for current financial year (has 'active' status or hasn't been paid out/refinanced)
81
81
  */
82
82
  isActive(): boolean;
83
83
  /**
@@ -1,8 +1,10 @@
1
1
  import { PropertyValuation as PropertyValuationBase } from '../../db/Models/property/property-valuation';
2
2
  import { PropertyDocument } from './property-document';
3
+ import { PropertyCategoryMovement } from './property-category-movement';
3
4
  export declare class PropertyValuation extends PropertyValuationBase {
4
5
  date: Date;
5
6
  document: PropertyDocument;
7
+ categoryMovement: PropertyCategoryMovement;
6
8
  get financialYear(): number;
7
9
  isCurrentYear(): boolean;
8
10
  }
@@ -1,5 +1,5 @@
1
1
  import { TransactionAllocation as TransactionAllocationBase } from '../../db/Models/transaction/transaction-allocation';
2
- import { BankTransaction } from '../bank/bank-transaction';
2
+ import { BankTransaction } from '../bank';
3
3
  import { Transaction } from './transaction';
4
4
  export declare class TransactionAllocation extends TransactionAllocationBase {
5
5
  bankTransaction: BankTransaction;
@@ -20,6 +20,7 @@ export declare class BankAccountService extends RestService<BankAccountBase, Ban
20
20
  collectionClass: typeof BankAccountCollection;
21
21
  disabledMethods: RestMethod[];
22
22
  constructor(http: HttpClient, eventDispatcherService: EventDispatcherService, sseService: SseService, environment: any);
23
+ getActive(): Observable<BankAccountCollection>;
23
24
  /**
24
25
  * Listen system notifications and update cache when got basiq notification received
25
26
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "taxtank-core",
3
- "version": "0.32.41",
3
+ "version": "0.32.44",
4
4
  "private": false,
5
5
  "peerDependencies": {
6
6
  "@angular/compiler": "^16.2.12",