taxtank-core 1.0.63 → 1.0.65
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 +21 -6
- package/fesm2022/taxtank-core.mjs.map +1 -1
- package/package.json +1 -1
- package/src/lib/db/Models/chart-accounts/chart-accounts.d.ts +3 -2
- package/src/lib/services/http/chart-accounts/chart-accounts-depreciations/chart-accounts-depreciations.service.d.ts +5 -1
@@ -253,7 +253,8 @@ let ChartAccountsMetaField$1 = class ChartAccountsMetaField extends AbstractMode
|
|
253
253
|
let ChartAccountsValue$1 = class ChartAccountsValue extends AbstractModel {
|
254
254
|
};
|
255
255
|
|
256
|
-
let ChartAccounts$1 = class ChartAccounts extends
|
256
|
+
let ChartAccounts$1 = class ChartAccounts extends ObservableModel {
|
257
|
+
static { this.className = 'ChartAccounts'; }
|
257
258
|
};
|
258
259
|
|
259
260
|
let DepreciationCapitalProject$1 = class DepreciationCapitalProject extends ObservableModel {
|
@@ -12557,14 +12558,19 @@ var BudgetMessagesEnum;
|
|
12557
12558
|
* Service to work with depreciation chart accounts
|
12558
12559
|
*/
|
12559
12560
|
class ChartAccountsDepreciationService extends RestService$1 {
|
12560
|
-
constructor() {
|
12561
|
-
super(
|
12561
|
+
constructor(environment) {
|
12562
|
+
super(environment);
|
12563
|
+
this.environment = environment;
|
12562
12564
|
this.endpointUri = 'chart-accounts-depreciations';
|
12563
12565
|
this.modelClass = ChartAccountsDepreciation;
|
12564
12566
|
this.collectionClass = Collection;
|
12565
12567
|
this.disabledMethods = ['postBatch', 'putBatch', 'deleteBatch'];
|
12568
|
+
this.listenEvents();
|
12569
|
+
}
|
12570
|
+
listenEvents() {
|
12571
|
+
this.listenCSE(ChartAccounts, this.refreshCache, ['delete']);
|
12566
12572
|
}
|
12567
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.2", ngImport: i0, type: ChartAccountsDepreciationService, deps:
|
12573
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.2", ngImport: i0, type: ChartAccountsDepreciationService, deps: [{ token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
12568
12574
|
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.2", ngImport: i0, type: ChartAccountsDepreciationService, providedIn: 'root' }); }
|
12569
12575
|
}
|
12570
12576
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.2", ngImport: i0, type: ChartAccountsDepreciationService, decorators: [{
|
@@ -12572,7 +12578,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.2", ngImpor
|
|
12572
12578
|
args: [{
|
12573
12579
|
providedIn: 'root'
|
12574
12580
|
}]
|
12575
|
-
}]
|
12581
|
+
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
12582
|
+
type: Inject,
|
12583
|
+
args: ['environment']
|
12584
|
+
}] }] });
|
12576
12585
|
|
12577
12586
|
/**
|
12578
12587
|
* Chart accounts service
|
@@ -12588,7 +12597,8 @@ class ChartAccountsService extends RestService$1 {
|
|
12588
12597
|
this.listenEvents();
|
12589
12598
|
}
|
12590
12599
|
listenEvents() {
|
12591
|
-
|
12600
|
+
// @TODO remove, it should work the other way around
|
12601
|
+
this.listenCSE(ChartAccountsDepreciation, this.refreshCache, ['post', 'put']);
|
12592
12602
|
}
|
12593
12603
|
/**
|
12594
12604
|
* Get list of chart accounts headings by catogory with chart accounts inside
|
@@ -25342,6 +25352,11 @@ class HoldingTradeForm extends AbstractForm {
|
|
25342
25352
|
this.controlsChanges(['quantity', 'price', 'fee']).subscribe(([quantity, price, fee]) => {
|
25343
25353
|
this.purchaseValue = quantity * price + fee;
|
25344
25354
|
});
|
25355
|
+
this.controlsChanges(['category']).subscribe(() => {
|
25356
|
+
if (!this.model.id) {
|
25357
|
+
this.get('holdingType').reset();
|
25358
|
+
}
|
25359
|
+
});
|
25345
25360
|
}
|
25346
25361
|
submit(data = {}, includeDisabledFields = false) {
|
25347
25362
|
return super.submit(data, includeDisabledFields);
|