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
@@ -67,6 +67,7 @@ export class AddLoanChargeComponent implements OnInit {
* Creates the Loan Charge form.
*/
ngOnInit() {
this.maxDate = this.settingsService.businessDate;
this.createLoanChargeForm();
this.loanChargeForm.controls.chargeId.valueChanges.subscribe(chargeId => {
const chargeDetails = this.loanChargeOptions.find(option => {
@@ -45,6 +45,7 @@ export class AssignLoanOfficerComponent implements OnInit {
* Creates the assign officer form.
*/
ngOnInit() {
this.maxDate = this.settingsService.businessDate;
this.createassignOfficerForm();
this.loanOfficers = this.dataObject.loanOfficerOptions;
}
@@ -45,6 +45,7 @@ export class CloseAsRescheduledComponent implements OnInit {
* Creates the close form.
*/
ngOnInit() {
this.maxDate = this.settingsService.businessDate;
this.createCloseForm();
}
@@ -55,6 +55,7 @@ export class CreateGuarantorComponent implements OnInit, AfterViewInit {
}
ngOnInit() {
this.maxDate = this.settingsService.businessDate;
this.createNewGuarantorForm();
this.setNewGuarantorDetailsForm();
this.buildDependencies();
@@ -43,6 +43,7 @@ export class DisburseLoanAccountComponent implements OnInit {
private settingsService: SettingsService) { }
ngOnInit() {
this.maxDate = this.settingsService.businessDate;
this.setDisbursementToSavingsForm();
}
@@ -54,6 +54,7 @@ export class DisburseComponent implements OnInit {
* and initialize with the required values
*/
ngOnInit() {
this.maxDate = this.settingsService.businessDate;
this.createDisbursementLoanForm();
this.setDisbursementLoanDetails();
}
@@ -39,6 +39,7 @@ export class ForeclosureComponent implements OnInit {
}
ngOnInit() {
this.maxDate = this.settingsService.businessDate;
this.createforeclosureForm();
this.onChanges();
}
@@ -46,6 +46,7 @@ export class LoanRescheduleComponent implements OnInit {
}
ngOnInit() {
this.maxDate = this.settingsService.businessDate;
this.codes = this.dataObject.rescheduleReasons;
this.setRescheduleLoanForm();
}
@@ -46,6 +46,7 @@ export class LoansAccountCloseComponent implements OnInit {
* Creates the close form.
*/
ngOnInit() {
this.maxDate = this.settingsService.businessDate;
this.createCloseForm();
}
@@ -53,6 +53,7 @@ export class MakeRepaymentComponent implements OnInit {
* and initialize with the required values
*/
ngOnInit() {
this.maxDate = this.settingsService.businessDate;
this.createRepaymentLoanForm();
this.setRepaymentLoanDetails();
}
@@ -58,6 +58,7 @@ export class PrepayLoanComponent implements OnInit {
* and initialize with the required values
*/
ngOnInit() {
this.maxDate = this.settingsService.businessDate;
this.createprepayLoanForm();
this.setPrepayLoanDetails();
}
@@ -53,6 +53,7 @@ export class RecoveryRepaymentComponent implements OnInit {
* and initialize with the required values
*/
ngOnInit() {
this.maxDate = this.settingsService.businessDate;
this.createRecoveryRepaymentLoanForm();
this.setRecoveryRepaymentLoanDetails();
}
@@ -44,6 +44,7 @@ export class RejectLoanComponent implements OnInit {
}
ngOnInit() {
this.maxDate = this.settingsService.businessDate;
this.setRejectLoanForm();
}
@@ -42,6 +42,7 @@ export class WaiveInterestComponent implements OnInit {
private route: ActivatedRoute) { }
ngOnInit() {
this.maxDate = this.settingsService.businessDate;
this.setLoanInterestForm();
}
@@ -49,6 +49,7 @@ export class WithdrawnByClientComponent implements OnInit {
* and initialize with the required values
*/
ngOnInit() {
this.maxDate = this.settingsService.businessDate;
this.createWithdrawnByClientLoanForm();
}
@@ -45,6 +45,7 @@ export class WriteOffPageComponent implements OnInit {
private settingsService: SettingsService) { }
ngOnInit() {
this.maxDate = this.settingsService.businessDate;
this.setWriteOffForm();
}