Skip to content

Commit

Permalink
fix: do not set options for non Autocomplete field
Browse files Browse the repository at this point in the history
  • Loading branch information
ljain112 committed Sep 20, 2024
1 parent 79f56df commit 18408e2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions india_compliance/gst_india/client_scripts/party.js
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ async function set_gstin_options(frm) {

frm._gstin_options_set_for = frm.doc.name;
const field = frm.get_field("gstin");
if (!field || field.df.fieldtype != "Autocomplete") return;
field.df.ignore_validation = true;
field.set_data(await india_compliance.get_gstin_options(frm.doc.name, frm.doctype));
}
Expand Down

0 comments on commit 18408e2

Please sign in to comment.