changed from read only to hidden
This commit is contained in:
parent
b4692a022b
commit
2e5f70368b
|
|
@ -87,14 +87,14 @@ function setup_checkbox_exclusivity(frm) {
|
|||
}
|
||||
|
||||
function toggle_field_readonly(frm) {
|
||||
// Если выбран "İl Ərzində", поля 501.1 и 501.2 должны быть read-only
|
||||
// Если выбран "İl Ərzində", поля 501.1 и 501.2 должны быть скрыты
|
||||
const is_il_erzinde = frm.doc.il_erzinde;
|
||||
|
||||
// Для əlavə 2 (taxable assets) - поле 501.1
|
||||
if (frm.fields_dict.elave_2 && frm.fields_dict.elave_2.grid) {
|
||||
frm.fields_dict.elave_2.grid.update_docfield_property(
|
||||
'hesabatilininəvvəlinəəsasvəsaitlərinqalıqdəyəri',
|
||||
'read_only',
|
||||
'hidden',
|
||||
is_il_erzinde ? 1 : 0
|
||||
);
|
||||
}
|
||||
|
|
@ -103,7 +103,7 @@ function toggle_field_readonly(frm) {
|
|||
if (frm.fields_dict.elave_1 && frm.fields_dict.elave_1.grid) {
|
||||
frm.fields_dict.elave_1.grid.update_docfield_property(
|
||||
'hesabatilininəvvəlinəəsasvəsaitlərinqalıqdəyərimanatla5012',
|
||||
'read_only',
|
||||
'hidden',
|
||||
is_il_erzinde ? 1 : 0
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue