[fixes] for tests
This commit is contained in:
parent
131866a11a
commit
4f3da42b75
@ -1047,7 +1047,7 @@ def create_sales_invoice(**args):
|
|||||||
si = frappe.new_doc("Sales Invoice")
|
si = frappe.new_doc("Sales Invoice")
|
||||||
args = frappe._dict(args)
|
args = frappe._dict(args)
|
||||||
if args.posting_date:
|
if args.posting_date:
|
||||||
si.set_posting_date = 1
|
si.set_posting_time = 1
|
||||||
si.posting_date = args.posting_date or nowdate()
|
si.posting_date = args.posting_date or nowdate()
|
||||||
|
|
||||||
si.company = args.company or "_Test Company"
|
si.company = args.company or "_Test Company"
|
||||||
|
|||||||
@ -447,6 +447,7 @@ class TestDeliveryNote(unittest.TestCase):
|
|||||||
self.assertEqual(dn1.status, "Completed")
|
self.assertEqual(dn1.status, "Completed")
|
||||||
|
|
||||||
dn2 = make_delivery_note(so.name)
|
dn2 = make_delivery_note(so.name)
|
||||||
|
dn2.set_posting_time = 1
|
||||||
dn2.posting_time = "08:00"
|
dn2.posting_time = "08:00"
|
||||||
dn2.get("items")[0].qty = 4
|
dn2.get("items")[0].qty = 4
|
||||||
dn2.submit()
|
dn2.submit()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user