fix customer and well form

This commit is contained in:
aminhashemi92 2025-09-14 11:44:03 +03:30
parent 3b61931bf0
commit 4df61c8a01
3 changed files with 12 additions and 3 deletions

View file

@ -459,7 +459,8 @@
'id_national_code': customer.national_code,
'id_card_number': customer.card_number,
'id_account_number': customer.account_number,
'id_address': customer.address
'id_address': customer.address,
'id_bank_name': customer.bank_name
};
// Loop through fields for easier maintenance
@ -471,6 +472,11 @@
$('#exampleModalLabel').text('ویرایش کاربر');
$('.data-submit').text('ویرایش');
// Ensure select value is applied (for some browsers/plugins)
if (customer.bank_name !== undefined && customer.bank_name !== null) {
$('#id_bank_name').val(customer.bank_name);
}
// Open modal
$('#add-new-record').offcanvas('show');
} else {