From 2e5f70368b5e119fe1623ff732c5007cc7d9a7ff Mon Sep 17 00:00:00 2001 From: Ali <010109ali@gmail.com> Date: Fri, 12 Dec 2025 16:02:34 +0400 Subject: [PATCH] changed from read only to hidden --- .../doctype/property_tax_return/property_tax_return.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/taxes_az/taxes_az/doctype/property_tax_return/property_tax_return.js b/taxes_az/taxes_az/doctype/property_tax_return/property_tax_return.js index 9f0d6f4..de36f1b 100644 --- a/taxes_az/taxes_az/doctype/property_tax_return/property_tax_return.js +++ b/taxes_az/taxes_az/doctype/property_tax_return/property_tax_return.js @@ -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 ); }