taxtank-core 0.28.9 → 0.28.10
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 +44 -0
- package/bundles/taxtank-core.umd.js.map +1 -1
- package/esm2015/lib/models/endpoint/endpoints.const.js +2 -1
- package/esm2015/lib/models/report/depreciation/index.js +4 -0
- package/esm2015/lib/models/report/index.js +6 -0
- package/esm2015/lib/models/report/property/index.js +4 -0
- package/esm2015/lib/models/report/sole/index.js +2 -0
- package/esm2015/lib/models/report/sole/sole-business/sole-business-loss-report.js +18 -0
- package/esm2015/lib/services/http/sole/index.js +2 -1
- package/esm2015/lib/services/http/sole/sole-business-loss/sole-business-loss.service.js +21 -0
- package/esm2015/public-api.js +2 -8
- package/fesm2015/taxtank-core.js +36 -1
- package/fesm2015/taxtank-core.js.map +1 -1
- package/lib/models/report/depreciation/index.d.ts +3 -0
- package/lib/models/report/index.d.ts +5 -0
- package/lib/models/report/property/index.d.ts +3 -0
- package/lib/models/report/sole/index.d.ts +1 -0
- package/lib/models/report/sole/sole-business/sole-business-loss-report.d.ts +25 -0
- package/lib/services/http/sole/index.d.ts +1 -0
- package/lib/services/http/sole/sole-business-loss/sole-business-loss.service.d.ts +11 -0
- package/package.json +1 -1
- package/public-api.d.ts +1 -7
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './sole-business/sole-business-loss-report';
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { SoleBusinessLoss } from '../../../sole';
|
|
2
|
+
import { TransactionCollection } from '../../../../collections/transaction/transaction.collection';
|
|
3
|
+
import { DepreciationCollection } from '../../../../collections/depreciation.collection';
|
|
4
|
+
import { AbstractModel } from '../../../../db/Models/abstract-model';
|
|
5
|
+
/**
|
|
6
|
+
* Class with business loss details
|
|
7
|
+
* https://taxtank.atlassian.net/wiki/spaces/TAXTANK/pages/4641357930/Rules+when+a+business+makes+a+loss+Tax+Summary
|
|
8
|
+
*/
|
|
9
|
+
export declare class SoleBusinessLossReport extends AbstractModel {
|
|
10
|
+
/**
|
|
11
|
+
* Business prior year losses
|
|
12
|
+
*/
|
|
13
|
+
openBalance: number;
|
|
14
|
+
/**
|
|
15
|
+
* Net income reduced by the opening balance amount, that will be carried over to the next year, if it is positive
|
|
16
|
+
*/
|
|
17
|
+
closeBalance: number;
|
|
18
|
+
/**
|
|
19
|
+
* Net income reduced by the opening balance amount
|
|
20
|
+
*/
|
|
21
|
+
taxableIncome: number;
|
|
22
|
+
netIncome: number;
|
|
23
|
+
constructor(loss: SoleBusinessLoss, transactions: TransactionCollection, depreciations: DepreciationCollection);
|
|
24
|
+
calculateTaxableIncome(): number;
|
|
25
|
+
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export * from './sole-business/sole-business.service';
|
|
2
2
|
export * from './sole-business-activity/sole-business-activity.service';
|
|
3
|
+
export * from './sole-business-loss/sole-business-loss.service';
|
|
3
4
|
export * from './sole-contact/sole-contact.service';
|
|
4
5
|
export * from './sole-depreciation-method/sole-depreciation-method.service';
|
|
5
6
|
export * from './sole-details/sole-details.service';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { RestService } from '../../rest/rest.service';
|
|
2
|
+
import { SoleBusinessLoss as SoleBusinessLossBase } from '../../../../db/Models/sole/sole-business-loss';
|
|
3
|
+
import { SoleBusinessLoss } from '../../../../models';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class SoleBusinessLossService extends RestService<SoleBusinessLossBase, SoleBusinessLoss> {
|
|
6
|
+
modelClass: typeof SoleBusinessLoss;
|
|
7
|
+
url: string;
|
|
8
|
+
isHydra: boolean;
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SoleBusinessLossService, never>;
|
|
10
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<SoleBusinessLossService>;
|
|
11
|
+
}
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -245,13 +245,7 @@ export * from './lib/models/property/property-sale';
|
|
|
245
245
|
export * from './lib/models/property/property-subscription';
|
|
246
246
|
export * from './lib/models/property/property-valuation';
|
|
247
247
|
export * from './lib/models/registration-invite/registration-invite';
|
|
248
|
-
export * from './lib/models/report
|
|
249
|
-
export * from './lib/models/report/depreciation/depreciation-report-item';
|
|
250
|
-
export * from './lib/models/report/depreciation/depreciation-lvp-asset-type.enum';
|
|
251
|
-
export * from './lib/models/report/my-tax';
|
|
252
|
-
export * from './lib/models/report/property/property-report-item';
|
|
253
|
-
export * from './lib/models/report/property/property-report-item-transaction';
|
|
254
|
-
export * from './lib/models/report/vehicle-expense/vehicle-expense';
|
|
248
|
+
export * from './lib/models/report';
|
|
255
249
|
export * from './lib/models/service-subscription/module-url-list.const';
|
|
256
250
|
export * from './lib/models/service-subscription/service-payment';
|
|
257
251
|
export * from './lib/models/service-subscription/service-price';
|