diff --git a/src/app/accounting/accounting.component.html b/src/app/accounting/accounting.component.html index 5f1ef8ad1..7dae7a9c2 100644 --- a/src/app/accounting/accounting.component.html +++ b/src/app/accounting/accounting.component.html @@ -2,55 +2,71 @@ -
+
- - + + -

{{"labels.heading.Frequent Postings" | translate}}

-

{{"labels.text.These are predefined postings" | translate}}

+

{{"labels.heading.Frequent Postings" | translate}}

+ + + + +

{{"labels.text.These are predefined postings" | translate}}

- - + + -

{{"labels.heading.Create Journal Entries" | translate}}

-

{{"labels.text.Manual journal entry transactions recorded in a journal" | translate}}

+

{{"labels.heading.Create Journal Entries" | translate}}

+ + + + +

{{"labels.text.Manual journal entry transactions recorded in a journal" | translate}}

- - + + -

{{"labels.heading.Search Journal Entries" | translate}}

-

{{"labels.text.Advanced search option for journal entries" | translate}}

+

{{"labels.heading.Search Journal Entries" | translate}}

+ + + + +

{{"labels.text.Advanced search option for journal entries" | translate}}

- - + + -

{{"labels.heading.Accounts Linked to Financial Activities" | translate}}

-

{{"labels.text.List of Financial Activities and GL Account Mappings" | translate}}

+

{{"labels.heading.Accounts Linked to Financial Activities" | translate}}

+ + +

{{"labels.text.List of Financial Activities and GL Account Mappings" | translate}}

- - + + -

{{"labels.heading.Migrate Opening Balances (Office-wise)" | translate}}

-

{{"labels.text.Set or update office-level opening balances for GL accounts" | translate}}

+

{{"labels.heading.Migrate Opening Balances (Office-wise)" | translate}}

+ + +

{{"labels.text.Set or update office-level opening balances for GL accounts" | translate}}

@@ -63,47 +79,59 @@
- - + + -

{{"labels.heading.Chart of Accounts" | translate}}

-

{{"labels.text.List of accounts used by the organization" | translate}}

+

{{"labels.heading.Chart of Accounts" | translate}}

+ + + + +

{{"labels.text.List of accounts used by the organization" | translate}}

- - + + -

{{"labels.heading.Closing Entries" | translate}}

-

{{"labels.text.Journal entries made at the end of accounting period" | translate}}

+

{{"labels.heading.Closing Entries" | translate}}

+ + +

{{"labels.text.Journal entries made at the end of accounting period" | translate}}

- - + + -

{{"labels.heading.Accounting Rules" | translate}}

-

{{"labels.text.List of all accounting rules" | translate}}

+

{{"labels.heading.Accounting Rules" | translate}}

+ + +

{{"labels.text.List of all accounting rules" | translate}}

- - + + -

{{"labels.heading.Accruals" | translate}}

-

{{"labels.text.Accrues income, expenses and liabilities" | translate}}

+

{{"labels.heading.Accruals" | translate}}

+ + +

{{"labels.text.Accrues income, expenses and liabilities" | translate}}

- - + + -

{{"labels.heading.Provisioning Entries" | translate}}

-

{{"labels.text.Create provisioning entries" | translate}}

+

{{"labels.heading.Provisioning Entries" | translate}}

+ + +

{{"labels.text.Create provisioning entries" | translate}}

diff --git a/src/app/accounting/accounting.component.ts b/src/app/accounting/accounting.component.ts index 104c2088b..8dedf2608 100644 --- a/src/app/accounting/accounting.component.ts +++ b/src/app/accounting/accounting.component.ts @@ -1,10 +1,10 @@ /** Angular Imports */ -import { Component, OnInit, TemplateRef, ElementRef, ViewChild, AfterViewInit } from '@angular/core'; +import { AfterViewInit, Component, ElementRef, OnInit, TemplateRef, ViewChild } from '@angular/core'; import { Router } from '@angular/router'; /** Custom Services */ -import { PopoverService } from '../configuration-wizard/popover/popover.service'; import { ConfigurationWizardService } from '../configuration-wizard/configuration-wizard.service'; +import { PopoverService } from '../configuration-wizard/popover/popover.service'; /** * Accounting component. @@ -36,6 +36,8 @@ export class AccountingComponent implements OnInit, AfterViewInit { @ViewChild('createJournalEntries') createJournalEntries: ElementRef; /* Template for popover on Create Journal Entries */ @ViewChild('templateCreateJournalEntries') templateCreateJournalEntries: TemplateRef; + // Initialize an array of 10 boolean values, all set to false + arrowBooleans: boolean[] = new Array(10).fill(false); /** * @param {Router} router Router. @@ -55,6 +57,7 @@ export class AccountingComponent implements OnInit, AfterViewInit { * @param target HTMLElement | ElementRef. * @param position String. * @param backdrop Boolean. + * @param arrowNumber - The index of the boolean value to toggle. */ showPopover(template: TemplateRef, target: HTMLElement | ElementRef, position: string, backdrop: boolean): void { setTimeout(() => this.popoverService.open(template, target, position, backdrop, {}), 200); @@ -177,4 +180,9 @@ export class AccountingComponent implements OnInit, AfterViewInit { this.router.navigate(['/accounting/closing-entries']); } + arrowBooleansToggle(arrowNumber:number) { + // Toggle the boolean value at the given index + this.arrowBooleans[arrowNumber] = !this.arrowBooleans[arrowNumber]; + } + }