Allow add loan charge in future date (#1644)

Co-authored-by: Jose Alberto Hernandez <alberto@MacBook-Pro.local>
This commit is contained in:
José Alberto Hernández
2023-01-15 22:39:29 -06:00
committed by GitHub
co-authored by Jose Alberto Hernandez
parent a56347d400
commit 57a55a18a9
5 changed files with 18 additions and 9 deletions
@@ -67,7 +67,7 @@ export class AddLoanChargeComponent implements OnInit {
* Creates the Loan Charge form.
*/
ngOnInit() {
this.maxDate = this.settingsService.businessDate;
this.maxDate = this.settingsService.maxFutureDate;
this.createLoanChargeForm();
this.loanChargeForm.controls.chargeId.valueChanges.subscribe(chargeId => {
const chargeDetails = this.loanChargeOptions.find(option => {