Merge pull request #23422 from marination/dialog-filters
chore: Add Filter Group to dialogs
This commit is contained in:
commit
202303e088
@ -480,7 +480,7 @@ erpnext.utils.update_child_items = function(opts) {
|
|||||||
callback: r => {
|
callback: r => {
|
||||||
if(!r.exc) {
|
if(!r.exc) {
|
||||||
if (this.doc.conversion_factor == r.message.conversion_factor) return;
|
if (this.doc.conversion_factor == r.message.conversion_factor) return;
|
||||||
|
|
||||||
const docname = this.doc.docname;
|
const docname = this.doc.docname;
|
||||||
dialog.fields_dict.trans_items.df.data.some(doc => {
|
dialog.fields_dict.trans_items.df.data.some(doc => {
|
||||||
if (doc.docname == docname) {
|
if (doc.docname == docname) {
|
||||||
@ -677,6 +677,7 @@ erpnext.utils.map_current_doc = function(opts) {
|
|||||||
date_field: opts.date_field || undefined,
|
date_field: opts.date_field || undefined,
|
||||||
setters: opts.setters,
|
setters: opts.setters,
|
||||||
get_query: opts.get_query,
|
get_query: opts.get_query,
|
||||||
|
add_filters_group: 1,
|
||||||
action: function(selections, args) {
|
action: function(selections, args) {
|
||||||
let values = selections;
|
let values = selections;
|
||||||
if(values.length === 0){
|
if(values.length === 0){
|
||||||
|
Loading…
Reference in New Issue
Block a user