Merge pull request #1949 from anandpdoshi/anand-july-17

Fix in Stock Entry test case
This commit is contained in:
Anand Doshi
2014-07-17 12:37:42 +05:30

View File

@@ -664,7 +664,7 @@ class TestStockEntry(unittest.TestCase):
def test_serial_no_not_exists(self): def test_serial_no_not_exists(self):
self._clear_stock_account_balance() self._clear_stock_account_balance()
frappe.db.sql("delete from `tabSerial No` where name in ('ABCD', 'EFGH')") frappe.db.sql("delete from `tabSerial No` where name in ('ABCD', 'EFGH')")
make_serialized_item() make_serialized_item(target_warehouse="_Test Warehouse 1 - _TC")
se = frappe.copy_doc(test_records[0]) se = frappe.copy_doc(test_records[0])
se.purpose = "Material Issue" se.purpose = "Material Issue"
se.get("mtn_details")[0].item_code = "_Test Serialized Item With Series" se.get("mtn_details")[0].item_code = "_Test Serialized Item With Series"