correct field name

This commit is contained in:
Sunny
2017-09-26 17:03:37 +08:00
parent b387b3cca0
commit c6f25ba996
3 changed files with 4 additions and 4 deletions

View File

@@ -228,7 +228,7 @@ def update_item(obj, target, source_parent):
@frappe.whitelist()
def make_purchase_order(source_name, target_doc=None):
def postprocess(source, target_doc):
target_doc.schedule_Date = add_days(nowdate(), 1)
target_doc.schedule_date = add_days(nowdate(), 1)
set_missing_values(source, target_doc)
doclist = get_mapped_doc("Material Request", source_name, {
@@ -288,7 +288,7 @@ def make_purchase_order_based_on_supplier(source_name, target_doc=None):
def postprocess(source, target_doc):
target_doc.supplier = source_name
target_doc.schedule_Date = add_days(nowdate(), 1)
target_doc.schedule_date = add_days(nowdate(), 1)
target_doc.set("items", [d for d in target_doc.get("items")
if d.get("item_code") in supplier_items and d.get("qty") > 0])