Skip to content

Commit

Permalink
Reuse LAST_YEAR
Browse files Browse the repository at this point in the history
  • Loading branch information
akariv committed May 23, 2024
1 parent 83e8ea0 commit d87df84
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const budgetDisclaimer = '<br/><strong>' +
'שינויים בתקציב עשויים לנבוע ממעבר של השירות לצורות הפעלה שונות (שאינן הליך מכרזי) או משינויים במבנה ארגוני (כגון איחוד שירותים) או פערים בין מועד הפעילות למועד התשלום, ואינם מעידים בהכרח על שינויים באספקת השירות בפועל' +
'</strong>';

const LAST_YEAR = 2023;
export const LAST_YEAR = 2023;

export const chartTemplates: any[] = [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { DomSanitizer } from '@angular/platform-browser';
import { tableDefs } from './tables';
import { BudgetKeyItemService } from '../../../budgetkey-item.service';
import { PlatformService } from 'projects/budgetkey/src/app/common-components/platform.service';
import { LAST_YEAR } from '../item-social-service-gov-unit/charts';

@Component({
selector: 'app-item-social-service',
Expand Down Expand Up @@ -34,7 +35,7 @@ export class ItemSocialServiceComponent implements OnInit {
];
this.item.breadcrumbs = [this.item.office, this.item.unit, this.item.subunit, this.item.subsubunit].filter(x => !!x).join(' / ');
this.item.catalog_number = parseInt(this.item.catalog_number, 10) || null;
const budget = this.item.manualBudget.sort((a: any, b: any) => a.year - b.year).filter((x: any) => x.year <= 2023);
const budget = this.item.manualBudget.sort((a: any, b: any) => a.year - b.year).filter((x: any) => x.year <= LAST_YEAR);
const beneficiaries = this.item.beneficiaries.sort((a: any, b: any) => a.year - b.year);
this.budget_chart = {
layout: {
Expand Down

0 comments on commit d87df84

Please sign in to comment.