Skip to content

Commit

Permalink
Merge pull request #2325 from resilient-tech/version-15-hotfix
Browse files Browse the repository at this point in the history
chore: release v15
  • Loading branch information
vorasmit authored Jul 2, 2024
2 parents 9122136 + 13950d8 commit 24e65d6
Show file tree
Hide file tree
Showing 15 changed files with 8,627 additions and 21,383 deletions.
10 changes: 5 additions & 5 deletions india_compliance/gst_india/client_scripts/company.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ set_gstin_options_and_status(DOCTYPE);

frappe.ui.form.off(DOCTYPE, "make_default_tax_template");
frappe.ui.form.on(DOCTYPE, {
onload(frm){
frm.fields_dict.bank_details_for_printing.grid.fields_map.autofield.ignore_validation = 1
frm.fields_dict.registration_details_for_printing.grid.fields_map.autofield.ignore_validation = 1
refresh(frm){
frm.fields_dict.bank_details_for_printing.grid.fields_map.print_label.ignore_validation = 1
frm.fields_dict.registration_details_for_printing.grid.fields_map.print_label.ignore_validation = 1
},
setup(frm) {
erpnext.company.set_custom_query(frm, [
Expand All @@ -24,13 +24,13 @@ frappe.ui.form.on(DOCTYPE, {
{ root_type: "Liability" },
]);

frm.set_query("autofield", "bank_details_for_printing", (_, cdt, cdn) => {
frm.set_query("print_label", "bank_details_for_printing", (_, cdt, cdn) => {
return {
query: "india_compliance.gst_india.overrides.company.get_default_print_options",
params : {for_bank : 1}
}
});
frm.set_query("autofield", "registration_details_for_printing", (_, cdt, cdn) => {
frm.set_query("print_label", "registration_details_for_printing", (_, cdt, cdn) => {
return {
query: "india_compliance.gst_india.overrides.company.get_default_print_options",
params : {for_bank : 0}
Expand Down
Loading

0 comments on commit 24e65d6

Please sign in to comment.