Skip to content

Commit

Permalink
fix: Label for applicable dimension table
Browse files Browse the repository at this point in the history
(cherry picked from commit 8c13f70)
  • Loading branch information
deepeshgarg007 authored and mergify[bot] committed Nov 15, 2022
1 parent b7ff5fb commit cbc8b2d
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,6 @@

frappe.ui.form.on('Accounting Dimension Filter', {
refresh: function(frm, cdt, cdn) {
if (frm.doc.accounting_dimension) {
frm.set_df_property('dimensions', 'label', frm.doc.accounting_dimension, cdn, 'dimension_value');
}

let help_content =
`<table class="table table-bordered" style="background-color: var(--scrollbar-track-color);">
<tr><td>
Expand Down Expand Up @@ -68,6 +64,7 @@ frappe.ui.form.on('Accounting Dimension Filter', {
frm.clear_table("dimensions");
let row = frm.add_child("dimensions");
row.accounting_dimension = frm.doc.accounting_dimension;
frm.fields_dict["dimensions"].grid.update_docfield_property("dimension_value", "label", frm.doc.accounting_dimension);
frm.refresh_field("dimensions");
frm.trigger('setup_filters');
},
Expand Down

0 comments on commit cbc8b2d

Please sign in to comment.