taxtank-core 0.30.99 → 0.30.101
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/esm2020/lib/collections/bank-transaction.collection.mjs +3 -2
- package/esm2020/lib/collections/collection.mjs +3 -2
- package/esm2020/lib/collections/depreciation.collection.mjs +4 -2
- package/esm2020/lib/collections/transaction/transaction.collection.mjs +1 -1
- package/esm2020/lib/collections/vehicle/vehicle-logbook.collection.mjs +3 -2
- package/esm2020/lib/db/Models/transaction/transaction-base.mjs +4 -3
- package/esm2020/lib/forms/sole/sole-business-loss.form.mjs +3 -2
- package/esm2020/lib/forms/transaction/transaction-base.form.mjs +4 -3
- package/esm2020/lib/forms/transaction/work/work-expense.form.mjs +3 -2
- package/esm2020/lib/models/property/property.mjs +3 -2
- package/esm2020/lib/models/report/my-tax/my-tax-rent/my-tax-rent.mjs +3 -2
- package/esm2020/lib/models/report/property/property-report-item.mjs +4 -3
- package/esm2020/lib/models/report/vehicle-expense/vehicle-expense.mjs +4 -3
- package/esm2020/lib/models/sole/sole-invoice.mjs +4 -3
- package/esm2020/lib/models/transaction/transaction.mjs +2 -2
- package/esm2020/lib/models/vehicle/logbook-period.mjs +4 -3
- package/esm2020/lib/models/vehicle/vehicle-claim.mjs +4 -3
- package/esm2020/public-api.mjs +1 -2
- package/fesm2015/taxtank-core.mjs +63 -72
- package/fesm2015/taxtank-core.mjs.map +1 -1
- package/fesm2020/taxtank-core.mjs +63 -72
- package/fesm2020/taxtank-core.mjs.map +1 -1
- package/lib/collections/bank-transaction.collection.d.ts +1 -1
- package/lib/collections/depreciation.collection.d.ts +2 -2
- package/lib/forms/transaction/transaction-base.form.d.ts +1 -1
- package/lib/models/report/my-tax/my-tax-rent/my-tax-rent.d.ts +1 -1
- package/lib/models/report/property/property-report-item.d.ts +2 -2
- package/lib/models/report/vehicle-expense/vehicle-expense.d.ts +1 -1
- package/lib/models/transaction/transaction.d.ts +1 -1
- package/package.json +1 -1
- package/public-api.d.ts +0 -1
- package/esm2020/lib/functions/round-to.mjs +0 -10
- package/lib/functions/round-to.d.ts +0 -6
|
@@ -16,7 +16,7 @@ export declare class BankTransactionCollection extends Collection<BankTransactio
|
|
|
16
16
|
/**
|
|
17
17
|
* Difference between total bank transactions amount and sum of allocations for passed bank transactions
|
|
18
18
|
*/
|
|
19
|
-
getUnallocatedAmount(allocations: TransactionAllocationCollection):
|
|
19
|
+
getUnallocatedAmount(allocations: TransactionAllocationCollection): any;
|
|
20
20
|
/**
|
|
21
21
|
* get date of the last transaction
|
|
22
22
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { TankTypeEnum } from '../db/Enums/tank-type.enum';
|
|
2
2
|
import { Collection } from './collection';
|
|
3
|
-
import { Depreciation } from '../models
|
|
4
|
-
import { DepreciationCapitalProject } from '../models
|
|
3
|
+
import { Depreciation } from '../models';
|
|
4
|
+
import { DepreciationCapitalProject } from '../models';
|
|
5
5
|
import { TransactionCollection } from './transaction';
|
|
6
6
|
import { ChartAccountsCategoryEnum } from '../db/Enums';
|
|
7
7
|
import { VehicleClaim } from '../models';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AbstractControl } from '@angular/forms';
|
|
2
2
|
import { AbstractForm } from '../abstract.form';
|
|
3
|
-
import { TransactionBase } from '../../db/Models
|
|
3
|
+
import { TransactionBase } from '../../db/Models';
|
|
4
4
|
/**
|
|
5
5
|
* @TODO refactor, move specific fields like property in separated forms
|
|
6
6
|
* @TODO remove useless getters
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { TransactionCollection } from '../../../../collections';
|
|
2
|
-
import { DepreciationCollection } from '../../../../collections
|
|
2
|
+
import { DepreciationCollection } from '../../../../collections';
|
|
3
3
|
import { TaxSummary } from '../../../tax-summary/tax-summary';
|
|
4
4
|
import { TaxSummarySection } from '../../../tax-summary/tax-summary-section';
|
|
5
5
|
export declare class MyTaxRent {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Property } from '../../property
|
|
1
|
+
import { Property } from '../../property';
|
|
2
2
|
import { ChartAccounts } from '../../chart-accounts';
|
|
3
|
-
import { AbstractModel } from '../../../db/Models
|
|
3
|
+
import { AbstractModel } from '../../../db/Models';
|
|
4
4
|
/**
|
|
5
5
|
* Class with property transactions report entities
|
|
6
6
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Vehicle expense for logbook section
|
|
3
3
|
*/
|
|
4
|
-
import { AbstractModel } from '../../../db/Models
|
|
4
|
+
import { AbstractModel } from '../../../db/Models';
|
|
5
5
|
export declare class VehicleExpense extends AbstractModel {
|
|
6
6
|
description: string;
|
|
7
7
|
amount: number;
|
|
@@ -4,7 +4,7 @@ import { TransactionOperationEnum } from '../../db/Enums/transaction-operation.e
|
|
|
4
4
|
import { Property } from '../property';
|
|
5
5
|
import { TransactionReceipt } from './transaction-receipt';
|
|
6
6
|
import { ChartAccounts } from '../chart-accounts';
|
|
7
|
-
import { IncomeSource } from '../income-source
|
|
7
|
+
import { IncomeSource } from '../income-source';
|
|
8
8
|
import { TransactionMetaField } from './transaction-meta-field';
|
|
9
9
|
import { Loan } from '../loan';
|
|
10
10
|
import { TransactionAllocation } from './transaction-allocation';
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -197,7 +197,6 @@ export * from './lib/functions/enum-to-list';
|
|
|
197
197
|
export * from './lib/functions/get-doc-icon';
|
|
198
198
|
export * from './lib/functions/mat-options-functions';
|
|
199
199
|
export * from './lib/functions/mat-sort-options';
|
|
200
|
-
export * from './lib/functions/round-to';
|
|
201
200
|
export * from './lib/functions/tax-review-filter-predicate';
|
|
202
201
|
export * from './lib/functions/array';
|
|
203
202
|
/**
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Function which round value to the provided decimals
|
|
3
|
-
* @param value to be rounded
|
|
4
|
-
* @param decimals: amount of decimals
|
|
5
|
-
*/
|
|
6
|
-
export function roundTo(value, decimals = 2) {
|
|
7
|
-
const multiplier = Math.pow(10, decimals);
|
|
8
|
-
return Math.round((value * 100) * multiplier) / multiplier;
|
|
9
|
-
}
|
|
10
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicm91bmQtdG8uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy90dC1jb3JlL3NyYy9saWIvZnVuY3Rpb25zL3JvdW5kLXRvLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOzs7O0dBSUc7QUFDSCxNQUFNLFVBQVUsT0FBTyxDQUFDLEtBQWEsRUFBRSxRQUFRLEdBQUcsQ0FBQztJQUNqRCxNQUFNLFVBQVUsR0FBVyxJQUFJLENBQUMsR0FBRyxDQUFDLEVBQUUsRUFBRSxRQUFRLENBQUMsQ0FBQztJQUNsRCxPQUFPLElBQUksQ0FBQyxLQUFLLENBQUMsQ0FBQyxLQUFLLEdBQUcsR0FBRyxDQUFDLEdBQUcsVUFBVSxDQUFDLEdBQUcsVUFBVSxDQUFDO0FBQzdELENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEZ1bmN0aW9uIHdoaWNoIHJvdW5kIHZhbHVlIHRvIHRoZSBwcm92aWRlZCBkZWNpbWFsc1xuICogQHBhcmFtIHZhbHVlIHRvIGJlIHJvdW5kZWRcbiAqIEBwYXJhbSBkZWNpbWFsczogYW1vdW50IG9mIGRlY2ltYWxzXG4gKi9cbmV4cG9ydCBmdW5jdGlvbiByb3VuZFRvKHZhbHVlOiBudW1iZXIsIGRlY2ltYWxzID0gMik6IG51bWJlciB7XG4gIGNvbnN0IG11bHRpcGxpZXI6IG51bWJlciA9IE1hdGgucG93KDEwLCBkZWNpbWFscyk7XG4gIHJldHVybiBNYXRoLnJvdW5kKCh2YWx1ZSAqIDEwMCkgKiBtdWx0aXBsaWVyKSAvIG11bHRpcGxpZXI7XG59XG4iXX0=
|