taxtank-core 1.0.62 → 1.0.64
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/fesm2022/taxtank-core.mjs +20 -6
- package/fesm2022/taxtank-core.mjs.map +1 -1
- package/package.json +1 -1
- package/src/lib/db/Models/chart-accounts/chart-accounts-depreciation.d.ts +3 -2
- package/src/lib/db/Models/depreciation/depreciation.d.ts +1 -0
- package/src/lib/services/http/chart-accounts/chart-accounts.service.d.ts +5 -1
@@ -240,7 +240,8 @@ let BankTransaction$1 = class BankTransaction extends ObservableModel {
|
|
240
240
|
let Bank$1 = class Bank extends AbstractModel {
|
241
241
|
};
|
242
242
|
|
243
|
-
let ChartAccountsDepreciation$1 = class ChartAccountsDepreciation extends
|
243
|
+
let ChartAccountsDepreciation$1 = class ChartAccountsDepreciation extends ObservableModel {
|
244
|
+
static { this.className = 'ChartAccountsDepreciation'; }
|
244
245
|
};
|
245
246
|
|
246
247
|
let ChartAccountsHeading$1 = class ChartAccountsHeading extends AbstractModel {
|
@@ -6835,7 +6836,7 @@ class Depreciation extends Depreciation$1 {
|
|
6835
6836
|
&& !this.isSBPCalculation()
|
6836
6837
|
&& this.isDiminishing()
|
6837
6838
|
&& !this.isWrittenOff()
|
6838
|
-
&& this.currentYearForecast.openBalance <= Depreciation.lowValuePoolThreshold;
|
6839
|
+
&& (this.currentYearForecast.openBalance <= Depreciation.lowValuePoolThreshold || this.manualLvp);
|
6839
6840
|
}
|
6840
6841
|
isSBP() {
|
6841
6842
|
return this.isAsset() && this.isSBPCalculation() && !this.isWrittenOff();
|
@@ -12577,12 +12578,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.2", ngImpor
|
|
12577
12578
|
* Chart accounts service
|
12578
12579
|
*/
|
12579
12580
|
class ChartAccountsService extends RestService$1 {
|
12580
|
-
constructor() {
|
12581
|
-
super(
|
12581
|
+
constructor(environment) {
|
12582
|
+
super(environment);
|
12583
|
+
this.environment = environment;
|
12582
12584
|
this.endpointUri = 'chart-accounts';
|
12583
12585
|
this.modelClass = ChartAccounts;
|
12584
12586
|
this.collectionClass = ChartAccountsCollection;
|
12585
12587
|
this.disabledMethods = ['postBatch', 'putBatch', 'deleteBatch'];
|
12588
|
+
this.listenEvents();
|
12589
|
+
}
|
12590
|
+
listenEvents() {
|
12591
|
+
this.listenCSE(ChartAccountsDepreciation, this.refreshCache, ['post', 'put', 'delete']);
|
12586
12592
|
}
|
12587
12593
|
/**
|
12588
12594
|
* Get list of chart accounts headings by catogory with chart accounts inside
|
@@ -12605,7 +12611,7 @@ class ChartAccountsService extends RestService$1 {
|
|
12605
12611
|
return headings;
|
12606
12612
|
}));
|
12607
12613
|
}
|
12608
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.2", ngImport: i0, type: ChartAccountsService, deps:
|
12614
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.2", ngImport: i0, type: ChartAccountsService, deps: [{ token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
12609
12615
|
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.2", ngImport: i0, type: ChartAccountsService, providedIn: 'root' }); }
|
12610
12616
|
}
|
12611
12617
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.2", ngImport: i0, type: ChartAccountsService, decorators: [{
|
@@ -12613,7 +12619,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.2", ngImpor
|
|
12613
12619
|
args: [{
|
12614
12620
|
providedIn: 'root'
|
12615
12621
|
}]
|
12616
|
-
}]
|
12622
|
+
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
12623
|
+
type: Inject,
|
12624
|
+
args: ['environment']
|
12625
|
+
}] }] });
|
12617
12626
|
|
12618
12627
|
var ChartAccountsMessagesEnum;
|
12619
12628
|
(function (ChartAccountsMessagesEnum) {
|
@@ -25333,6 +25342,11 @@ class HoldingTradeForm extends AbstractForm {
|
|
25333
25342
|
this.controlsChanges(['quantity', 'price', 'fee']).subscribe(([quantity, price, fee]) => {
|
25334
25343
|
this.purchaseValue = quantity * price + fee;
|
25335
25344
|
});
|
25345
|
+
this.controlsChanges(['category']).subscribe(() => {
|
25346
|
+
if (!this.model.id) {
|
25347
|
+
this.get('holdingType').reset();
|
25348
|
+
}
|
25349
|
+
});
|
25336
25350
|
}
|
25337
25351
|
submit(data = {}, includeDisabledFields = false) {
|
25338
25352
|
return super.submit(data, includeDisabledFields);
|