[fixes] for tests

This commit is contained in:
Rushabh Mehta 2017-03-14 21:29:55 +05:30
parent 131866a11a
commit 4f3da42b75
2 changed files with 2 additions and 1 deletions

View File

@ -1047,7 +1047,7 @@ def create_sales_invoice(**args):
si = frappe.new_doc("Sales Invoice")
args = frappe._dict(args)
if args.posting_date:
si.set_posting_date = 1
si.set_posting_time = 1
si.posting_date = args.posting_date or nowdate()
si.company = args.company or "_Test Company"

View File

@ -447,6 +447,7 @@ class TestDeliveryNote(unittest.TestCase):
self.assertEqual(dn1.status, "Completed")
dn2 = make_delivery_note(so.name)
dn2.set_posting_time = 1
dn2.posting_time = "08:00"
dn2.get("items")[0].qty = 4
dn2.submit()