Add Purchase Order schedule_date field, similar to delivery_date in Sales Order

This commit is contained in:
Sunny 2017-09-25 01:03:12 +08:00
parent 869b878286
commit 47eac28f0a
2 changed files with 2 additions and 2 deletions

View File

@ -3458,7 +3458,7 @@
"issingle": 0, "issingle": 0,
"istable": 0, "istable": 0,
"max_attachments": 0, "max_attachments": 0,
"modified": "2017-09-26 14:19:04.102534", "modified": "2017-09-26 14:19:04.102534",
"modified_by": "Administrator", "modified_by": "Administrator",
"module": "Buying", "module": "Buying",
"name": "Purchase Order", "name": "Purchase Order",

View File

@ -20,7 +20,7 @@ QUnit.test("test: purchase order", function(assert) {
{"rate": 100}, {"rate": 100},
{"warehouse": 'Stores - '+frappe.get_abbr(frappe.defaults.get_default("Company"))} {"warehouse": 'Stores - '+frappe.get_abbr(frappe.defaults.get_default("Company"))}
], ],
[ [
{"item_code": 'Test Product 1'}, {"item_code": 'Test Product 1'},
{"schedule_date": frappe.datetime.add_days(frappe.datetime.now_date(), 1)}, {"schedule_date": frappe.datetime.add_days(frappe.datetime.now_date(), 1)},
{"expected_delivery_date": frappe.datetime.add_days(frappe.datetime.now_date(), 5)}, {"expected_delivery_date": frappe.datetime.add_days(frappe.datetime.now_date(), 5)},