taxtank-core 2.1.19 → 2.1.20

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.
@@ -4702,6 +4702,10 @@ class ChartSerie {
4702
4702
  }
4703
4703
 
4704
4704
  class ChartData {
4705
+ constructor() {
4706
+ this.visible = true;
4707
+ // zones?: Array<{ value?: number, dashStyle: 'Solid' | 'Dash' }> = [];
4708
+ }
4705
4709
  }
4706
4710
  __decorate([
4707
4711
  Type(() => ChartSerie)
@@ -11013,7 +11017,7 @@ class BankAccountChartData {
11013
11017
  * set value of pie chart data
11014
11018
  */
11015
11019
  getBalancePieChartData() {
11016
- return this.bankAccounts.map((bankAccount) => ({
11020
+ return this.bankAccounts.map((bankAccount) => plainToClass(ChartData, {
11017
11021
  name: bankAccount.accountName,
11018
11022
  data: Math.abs(bankAccount.currentBalance)
11019
11023
  }));
@@ -11022,13 +11026,13 @@ class BankAccountChartData {
11022
11026
  * set value of bar chart data
11023
11027
  */
11024
11028
  getBalanceBarChartData() {
11025
- return [{
11029
+ return [plainToClass(ChartData, {
11026
11030
  name: 'Balance',
11027
11031
  data: this.bankAccounts.map((bankAccount) => ({
11028
11032
  label: bankAccount.accountName,
11029
11033
  value: bankAccount.currentBalance
11030
11034
  }))
11031
- }];
11035
+ })];
11032
11036
  }
11033
11037
  }
11034
11038
 
@@ -21962,11 +21966,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.10", ngImpo
21962
21966
  * Service to handle Property transactions report items data (get income / expense report items, e.t.c.)
21963
21967
  */
21964
21968
  class PropertyTransactionReportService {
21965
- constructor(propertyService, transactionService, depreciationService, chartAccountsService) {
21966
- this.propertyService = propertyService;
21967
- this.transactionService = transactionService;
21968
- this.depreciationService = depreciationService;
21969
- this.chartAccountsService = chartAccountsService;
21969
+ constructor() {
21970
+ this.propertyService = inject(PropertyService);
21971
+ this.transactionService = inject(TransactionService);
21972
+ this.depreciationService = inject(DepreciationService);
21973
+ this.chartAccountsService = inject(ChartAccountsService);
21970
21974
  }
21971
21975
  /**
21972
21976
  * Get collection of report items based on transactions & depreciations
@@ -22009,7 +22013,7 @@ class PropertyTransactionReportService {
22009
22013
  getDepreciations() {
22010
22014
  return this.depreciationService.get().pipe(map((depreciations) => depreciations.getByChartAccountsCategories(CHART_ACCOUNTS_CATEGORIES.property)));
22011
22015
  }
22012
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.10", ngImport: i0, type: PropertyTransactionReportService, deps: [{ token: PropertyService }, { token: TransactionService }, { token: DepreciationService }, { token: ChartAccountsService }], target: i0.ɵɵFactoryTarget.Injectable }); }
22016
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.10", ngImport: i0, type: PropertyTransactionReportService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
22013
22017
  static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.10", ngImport: i0, type: PropertyTransactionReportService, providedIn: 'root' }); }
22014
22018
  }
22015
22019
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.10", ngImport: i0, type: PropertyTransactionReportService, decorators: [{
@@ -22017,7 +22021,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.10", ngImpo
22017
22021
  args: [{
22018
22022
  providedIn: 'root'
22019
22023
  }]
22020
- }], ctorParameters: () => [{ type: PropertyService }, { type: TransactionService }, { type: DepreciationService }, { type: ChartAccountsService }] });
22024
+ }] });
22021
22025
 
22022
22026
  class CurrentFirmBranchService {
22023
22027
  constructor() {