taxtank-core 0.33.23 → 0.33.25
Sign up to get free protection for your applications and to get access to all the features.
- package/esm2022/src/lib/collections/report/income-expense/transaction-report-item.collection.mjs +1 -4
- package/esm2022/src/lib/collections/transaction/transaction.collection.mjs +7 -7
- package/esm2022/src/lib/models/financial-year/months.const.mjs +2 -2
- package/esm2022/src/lib/models/report/income-expense/transaction-report-item.mjs +6 -7
- package/esm2022/src/lib/models/tax-summary/report-item.mjs +3 -4
- package/esm2022/src/lib/models/tax-summary/tax-summary-section.mjs +2 -2
- package/esm2022/src/lib/models/transaction/transaction.mjs +8 -2
- package/esm2022/src/lib/models/user/user.mjs +2 -2
- package/fesm2022/taxtank-core.mjs +20 -18
- package/fesm2022/taxtank-core.mjs.map +1 -1
- package/package.json +1 -1
- package/src/lib/collections/report/income-expense/transaction-report-item.collection.d.ts +0 -1
- package/src/lib/collections/transaction/transaction.collection.d.ts +2 -2
- package/src/lib/models/report/income-expense/transaction-report-item.d.ts +0 -1
- package/src/lib/models/tax-summary/report-item.d.ts +2 -4
- package/src/lib/models/tax-summary/tax-summary-section.d.ts +1 -1
- package/src/lib/models/transaction/transaction.d.ts +2 -0
package/package.json
CHANGED
@@ -3,6 +3,5 @@ import { TransactionReportItem } from '../../../models/report';
|
|
3
3
|
import { TransactionCollection } from '../../transaction';
|
4
4
|
export declare class TransactionReportItemCollection extends Collection<TransactionReportItem> {
|
5
5
|
static fromTransactions(transactions: TransactionCollection, priorTransactions: TransactionCollection): TransactionReportItemCollection;
|
6
|
-
get months(): number[];
|
7
6
|
sumBy(path: string, abs?: boolean): number;
|
8
7
|
}
|
@@ -17,7 +17,6 @@ export declare class TransactionCollection extends TransactionBaseCollection<Tra
|
|
17
17
|
*/
|
18
18
|
constructor(transactions?: Transaction[], depreciations?: Depreciation[]);
|
19
19
|
getSoleTransactions(): this;
|
20
|
-
get amount(): number;
|
21
20
|
getFindAndMatch(allocations: TransactionAllocationCollection): this;
|
22
21
|
getUnallocated(allocations: TransactionAllocationCollection): TransactionCollection;
|
23
22
|
getUnallocatedAmount(allocations: TransactionAllocationCollection): number;
|
@@ -25,9 +24,10 @@ export declare class TransactionCollection extends TransactionBaseCollection<Tra
|
|
25
24
|
* get date of the last transaction
|
26
25
|
*/
|
27
26
|
getLastTransactionDate(): Date;
|
27
|
+
get amount(): number;
|
28
28
|
get claimAmount(): number;
|
29
|
-
get grossClaimAmount(): number;
|
30
29
|
get grossAmount(): number;
|
30
|
+
get grossClaimAmount(): number;
|
31
31
|
getByChartAccountsCategories(categories: ChartAccountsCategoryEnum[]): TransactionCollection;
|
32
32
|
/**
|
33
33
|
* Get transactions by month
|
@@ -1,8 +1,6 @@
|
|
1
|
-
import { TaxReturnCategory } from '../../db/Models
|
1
|
+
import { AbstractModel, TaxReturnCategory } from '../../db/Models';
|
2
2
|
import { ReportItemDetails } from './report-item-details';
|
3
|
-
import { ReportItemCollection } from '../../collections
|
4
|
-
import { AbstractModel } from '../../db/Models/abstract-model';
|
5
|
-
import { Collection } from '../../collections/collection';
|
3
|
+
import { Collection, ReportItemCollection } from '../../collections';
|
6
4
|
/**
|
7
5
|
* @Todo no base model - should be generated on backend side
|
8
6
|
* Used in tax summary reports to show amounts relating to a tax return category entity and details of what this
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { TaxSummarySectionEnum } from '../../db/Enums/tax-summary-section.enum';
|
2
|
-
import { ReportItemCollection } from '../../collections
|
2
|
+
import { ReportItemCollection } from '../../collections';
|
3
3
|
/**
|
4
4
|
* Base class for each sections of Tax Summary report, contains common properties/methods
|
5
5
|
* See also TaxSummary model
|
@@ -81,6 +81,8 @@ export declare class Transaction extends TransactionBase implements Expense {
|
|
81
81
|
* Total transaction amount including taxes and other additional amounts
|
82
82
|
*/
|
83
83
|
get grossAmount(): number;
|
84
|
+
get grossAmountWithoutGst(): number;
|
85
|
+
get grossClaimAmountWithoutGst(): number;
|
84
86
|
/**
|
85
87
|
* @TODO vik confusing logic demanded by Nicole, we need a better ux to fix it
|
86
88
|
* netAmount matches received payment (bankTransaction amount), includes gst and salary included adjustments
|