fix: bind reload handler to rüb field in single declaration
Event and checks referenced a non-existent hesabatdövrü field, so selecting year + quarter never triggered populate_declaration_tables. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
c42e7518b9
commit
5c007ef408
|
|
@ -28,7 +28,7 @@ frappe.ui.form.on('Single declaration related to salaried and non-salaried work'
|
|||
reload_hisse_1_data(frm);
|
||||
},
|
||||
|
||||
hesabatdövrü: function(frm) {
|
||||
rüb: function(frm) {
|
||||
reload_hisse_1_data(frm);
|
||||
},
|
||||
|
||||
|
|
@ -63,7 +63,7 @@ frappe.ui.form.on('Single declaration related to salaried and non-salaried work'
|
|||
});
|
||||
|
||||
function reload_hisse_1_data(frm) {
|
||||
if (!frm.doc.il || !frm.doc.hesabatdövrü) {
|
||||
if (!frm.doc.il || !frm.doc.rüb) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
@ -81,7 +81,7 @@ function reload_hisse_1_data(frm) {
|
|||
args: {
|
||||
company: company,
|
||||
year: frm.doc.il,
|
||||
quarter: frm.doc.hesabatdövrü
|
||||
quarter: frm.doc.rüb
|
||||
},
|
||||
callback: function(r) {
|
||||
frappe.dom.unfreeze();
|
||||
|
|
|
|||
Loading…
Reference in New Issue