chore: add comment
This commit is contained in:
parent
a73ad6759d
commit
0b9a850a17
@ -566,6 +566,7 @@ def make_delivery_note(source_name, target_doc=None, skip_item_mapping=False):
|
|||||||
|
|
||||||
if not skip_item_mapping:
|
if not skip_item_mapping:
|
||||||
def condition(doc):
|
def condition(doc):
|
||||||
|
# make_mapped_doc sets js `args` into `frappe.flags.args`
|
||||||
if frappe.flags.args and frappe.flags.args.delivery_dates:
|
if frappe.flags.args and frappe.flags.args.delivery_dates:
|
||||||
if cstr(doc.delivery_date) not in frappe.flags.args.delivery_dates:
|
if cstr(doc.delivery_date) not in frappe.flags.args.delivery_dates:
|
||||||
return False
|
return False
|
||||||
|
Loading…
Reference in New Issue
Block a user