Fix charge payment method edition (#1738)
Co-authored-by: Jose Alberto Hernandez <alberto@MacBook-Pro.local>
This commit is contained in:
co-authored by
Jose Alberto Hernandez
parent
bf700cc100
commit
30c1085b45
+1
-1
@@ -65,7 +65,7 @@ export class ApproveLoanComponent implements OnInit {
|
||||
*/
|
||||
setApproveLoanForm() {
|
||||
this.approveLoanForm = this.formBuilder.group({
|
||||
'approvedOnDate': [this.loanData.approvalDate && new Date(this.loanData.approvalDate), Validators.required],
|
||||
'approvedOnDate': [this.settingsService.businessDate, Validators.required],
|
||||
'expectedDisbursementDate': [''],
|
||||
'approvedLoanAmount': [this.loanData.approvalAmount, Validators.required],
|
||||
'note': ['']
|
||||
|
||||
@@ -54,7 +54,7 @@ export class DisburseComponent implements OnInit {
|
||||
* and initialize with the required values
|
||||
*/
|
||||
ngOnInit() {
|
||||
this.maxDate = this.settingsService.businessDate;
|
||||
this.maxDate = this.settingsService.maxFutureDate;
|
||||
this.createDisbursementLoanForm();
|
||||
this.setDisbursementLoanDetails();
|
||||
}
|
||||
|
||||
@@ -149,8 +149,7 @@ export class EditChargeComponent implements OnInit {
|
||||
submit() {
|
||||
const charges = this.chargeForm.getRawValue();
|
||||
charges.locale = this.settingsService.language.code;
|
||||
charges.chargePaymentMode = this.chargeData.chargePaymentMode.id;
|
||||
if(charges.taxGroupId.value===''){
|
||||
if (charges.taxGroupId.value === '') {
|
||||
delete charges.taxGroupId;
|
||||
}
|
||||
this.productsService.updateCharge(this.chargeData.id.toString(), charges)
|
||||
|
||||
Reference in New Issue
Block a user