# Conflicts: # erpnext/stock/doctype/purchase_receipt/test_purchase_receipt.py
This commit is contained in:
parent
ea83e2b45f
commit
9f5111809d
@ -324,18 +324,7 @@ class TestPurchaseReceipt(unittest.TestCase):
|
|||||||
|
|
||||||
pr1.submit()
|
pr1.submit()
|
||||||
self.assertRaises(frappe.ValidationError, pr2.submit)
|
self.assertRaises(frappe.ValidationError, pr2.submit)
|
||||||
|
frappe.db.rollback()
|
||||||
pr1.cancel()
|
|
||||||
se.cancel()
|
|
||||||
se1.cancel()
|
|
||||||
se2.cancel()
|
|
||||||
se3.cancel()
|
|
||||||
po.reload()
|
|
||||||
pr2.load_from_db()
|
|
||||||
pr2.cancel()
|
|
||||||
|
|
||||||
po.load_from_db()
|
|
||||||
po.cancel()
|
|
||||||
|
|
||||||
def test_serial_no_supplier(self):
|
def test_serial_no_supplier(self):
|
||||||
pr = make_purchase_receipt(item_code="_Test Serialized Item With Series", qty=1)
|
pr = make_purchase_receipt(item_code="_Test Serialized Item With Series", qty=1)
|
||||||
@ -1040,7 +1029,7 @@ class TestPurchaseReceipt(unittest.TestCase):
|
|||||||
'account': srbnb_account,
|
'account': srbnb_account,
|
||||||
'voucher_detail_no': pr.items[1].name
|
'voucher_detail_no': pr.items[1].name
|
||||||
}, pluck="name")
|
}, pluck="name")
|
||||||
|
|
||||||
# check if the entries are not merged into one
|
# check if the entries are not merged into one
|
||||||
# seperate entries should be made since voucher_detail_no is different
|
# seperate entries should be made since voucher_detail_no is different
|
||||||
self.assertEqual(len(item_one_gl_entry), 1)
|
self.assertEqual(len(item_one_gl_entry), 1)
|
||||||
|
Loading…
Reference in New Issue
Block a user