Merge pull request #23422 from marination/dialog-filters

chore: Add Filter Group to dialogs
This commit is contained in:
Marica 2020-09-29 13:17:29 +05:30 committed by GitHub
commit 202303e088
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -480,7 +480,7 @@ erpnext.utils.update_child_items = function(opts) {
callback: r => {
if(!r.exc) {
if (this.doc.conversion_factor == r.message.conversion_factor) return;
const docname = this.doc.docname;
dialog.fields_dict.trans_items.df.data.some(doc => {
if (doc.docname == docname) {
@ -677,6 +677,7 @@ erpnext.utils.map_current_doc = function(opts) {
date_field: opts.date_field || undefined,
setters: opts.setters,
get_query: opts.get_query,
add_filters_group: 1,
action: function(selections, args) {
let values = selections;
if(values.length === 0){