mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-28 17:34:47 +00:00
[bean] [mandatory] fixes in test cases
This commit is contained in:
@@ -55,6 +55,7 @@ class TestPurchaseOrder(unittest.TestCase):
|
||||
self.assertEquals(pi[0]["doctype"], "Purchase Invoice")
|
||||
self.assertEquals(len(pi), len(test_records[0]))
|
||||
|
||||
pi[0].bill_no = "NA"
|
||||
webnotes.bean(pi).insert()
|
||||
|
||||
def test_subcontracting(self):
|
||||
|
||||
@@ -39,8 +39,8 @@ class TestPurchaseOrder(unittest.TestCase):
|
||||
po[0]["naming_series"] = "_T-Purchase Order-"
|
||||
|
||||
for doc in po:
|
||||
if doc.parentfield=="purchase_order_items":
|
||||
doc.schedule_date = "2013-04-12"
|
||||
if doc.get("item_code"):
|
||||
doc["schedule_date"] = "2013-04-12"
|
||||
|
||||
webnotes.bean(po).insert()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user