taxtank-core 0.28.59 → 0.28.61
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.
- package/bundles/taxtank-core.umd.js +36 -11
- package/bundles/taxtank-core.umd.js.map +1 -1
- package/esm2015/lib/collections/transaction/transaction.collection.js +4 -2
- package/esm2015/lib/models/transaction/transaction.js +13 -5
- package/esm2015/lib/services/http/firm/client-invite/client-invite.service.js +13 -1
- package/esm2015/lib/services/transaction/transaction-calculation.service.js +5 -5
- package/fesm2015/taxtank-core.js +31 -9
- package/fesm2015/taxtank-core.js.map +1 -1
- package/lib/models/transaction/transaction.d.ts +6 -0
- package/lib/services/http/firm/client-invite/client-invite.service.d.ts +4 -0
- package/lib/services/transaction/transaction-calculation.service.d.ts +1 -1
- package/package.json +1 -1
|
@@ -51,6 +51,7 @@ export declare class Transaction extends TransactionBase implements Expense, IRe
|
|
|
51
51
|
isVehicleTransaction(): boolean;
|
|
52
52
|
/**
|
|
53
53
|
* Get net amount (clean amount after all deductions)
|
|
54
|
+
* @TODO Alex: remove, this.amount should be netAmount actually
|
|
54
55
|
*/
|
|
55
56
|
getNetAmount(): number;
|
|
56
57
|
/**
|
|
@@ -99,4 +100,9 @@ export declare class Transaction extends TransactionBase implements Expense, IRe
|
|
|
99
100
|
* Get transaction unallocated amount
|
|
100
101
|
*/
|
|
101
102
|
getUnallocatedAmount(allocations: TransactionAllocationCollection): number;
|
|
103
|
+
/**
|
|
104
|
+
* Total transaction amount including taxes and other additional amounts
|
|
105
|
+
* @TODO Alex: refactor everything related to amounts
|
|
106
|
+
*/
|
|
107
|
+
get grossAmount(): number;
|
|
102
108
|
}
|
|
@@ -8,6 +8,10 @@ export declare class ClientInviteService extends RestService<ClientInviteBase, C
|
|
|
8
8
|
url: string;
|
|
9
9
|
modelClass: typeof ClientInvite;
|
|
10
10
|
listenEvents(): void;
|
|
11
|
+
/**
|
|
12
|
+
* Get clients from the different endpoints depending on whether the current user is a client or an employee
|
|
13
|
+
*/
|
|
14
|
+
get(fromEmployee?: boolean): Observable<ClientInvite[]>;
|
|
11
15
|
/**
|
|
12
16
|
* Import employees for firm from CSV file
|
|
13
17
|
* @param file
|
|
@@ -7,7 +7,7 @@ import { CollectionDictionary } from '../../collections/collection-dictionary';
|
|
|
7
7
|
import { BankTransactionCollection } from '../../collections/bank-transaction.collection';
|
|
8
8
|
import * as i0 from "@angular/core";
|
|
9
9
|
/**
|
|
10
|
-
* @TODO move to
|
|
10
|
+
* @TODO Alex: refactor, move methods to collections and models, remove this service
|
|
11
11
|
*/
|
|
12
12
|
export declare class TransactionCalculationService {
|
|
13
13
|
/**
|