Datepickers using max date with business date

This commit is contained in:
Jose Alberto Hernandez
2022-07-28 17:06:39 +02:00
committed by Arnold Gálovics
parent 753791a078
commit a4b266080b
132 changed files with 268 additions and 42 deletions
@@ -49,6 +49,7 @@ export class CreateClosureComponent implements OnInit {
* Creates the accounting closure form.
*/
ngOnInit() {
this.maxDate = this.settingsService.businessDate;
this.createAccountingClosureForm();
}
@@ -63,6 +63,7 @@ export class CreateJournalEntryComponent implements OnInit {
* Creates the journal entry form.
*/
ngOnInit() {
this.maxDate = this.settingsService.businessDate;
this.createJournalEntryForm();
}
@@ -71,6 +71,7 @@ export class FrequentPostingsComponent implements OnInit {
* Creates the frequent postings form and sets the affected gl entry form array.
*/
ngOnInit() {
this.maxDate = this.settingsService.businessDate;
this.createFrequentPostingsForm();
this.setAffectedGLEntryForm();
}
@@ -64,6 +64,7 @@ export class MigrateOpeningBalancesComponent implements OnInit {
* Creates the opening balances form. (initially retrieves gl accounts on the basis of specified office)
*/
ngOnInit() {
this.maxDate = this.settingsService.businessDate;
this.createOpeningBalancesForm();
}
@@ -42,6 +42,7 @@ export class PeriodicAccrualsComponent implements OnInit {
* Creates periodic accruals form.
*/
ngOnInit() {
this.maxDate = this.settingsService.businessDate;
this.createPeriodicAccrualsForm();
}
@@ -42,6 +42,7 @@ export class CreateProvisioningEntryComponent implements OnInit {
* Creates the provisioning entry form.
*/
ngOnInit() {
this.maxDate = this.settingsService.businessDate;
this.createProvisioningEntryForm();
}
@@ -133,6 +133,7 @@ export class SearchJournalEntryComponent implements OnInit, AfterViewInit {
* Sets filtered offices and gl accounts for autocomplete and journal entries table.
*/
ngOnInit() {
this.maxDate = this.settingsService.businessDate;
this.setFilteredOffices();
this.setFilteredGlAccounts();
this.getJournalEntries();