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

@@ -118,7 +118,7 @@ class TestPurchaseOrder(unittest.TestCase):
"company": "_Test Company",
"supplier" : "_Test Supplier",
"is_subcontracted" : "No",
"schedule_Date": add_days(nowdate(), 1),
"schedule_date": add_days(nowdate(), 1),
"currency" : frappe.db.get_value("Company", "_Test Company", "default_currency"),
"conversion_factor" : 1,
"items" : get_same_items(),

View File

@@ -104,7 +104,7 @@ def get_list_context(context=None):
def make_purchase_order(source_name, target_doc=None):
def set_missing_values(source, target):
target.ignore_pricing_rule = 1
target.schedule_Date = add_days(nowdate(), 1)
target.schedule_date = add_days(nowdate(), 1)
target.run_method("set_missing_values")
target.run_method("get_schedule_dates")
target.run_method("calculate_taxes_and_totals")