taxtank-core 1.0.61 → 1.0.63
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 +16 -7
- 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();
|
@@ -9355,7 +9356,7 @@ class ChartAccountsCollection extends Collection {
|
|
9355
9356
|
// @TODO Alex: implement general initial sorting solution in parent class
|
9356
9357
|
this.items.sort((a, b) => {
|
9357
9358
|
if (a.isPersonal() && b.isPersonal()) {
|
9358
|
-
return a.name > b.name ? 1 : -1;
|
9359
|
+
return a.name.toLowerCase() > b.name.toLowerCase() ? 1 : -1;
|
9359
9360
|
}
|
9360
9361
|
return 0;
|
9361
9362
|
});
|
@@ -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) {
|