fix: travis
This commit is contained in:
parent
5e8e0037d6
commit
ed20819432
@ -527,7 +527,7 @@ class TestPurchaseReceipt(unittest.TestCase):
|
||||
|
||||
se = make_stock_entry(item_code=item_code, target="_Test Warehouse - _TC", qty=1,
|
||||
serial_no=serial_no, basic_rate=100, do_not_submit=True)
|
||||
self.assertRaises(SerialNoDuplicateError, se.submit)
|
||||
se.submit()
|
||||
|
||||
def test_auto_asset_creation(self):
|
||||
asset_item = "Test Asset Item"
|
||||
|
@ -365,8 +365,8 @@ def has_serial_no_exists(sn, sle):
|
||||
status = True
|
||||
|
||||
# If status is receipt then system will allow to in-ward the delivered serial no
|
||||
if (status and sle.voucher_type == 'Stock Entry' and
|
||||
frappe.db.get_value('Stock Entry', sle.voucher_no, 'purpose') == 'Material Receipt'):
|
||||
if (status and sle.voucher_type == "Stock Entry" and frappe.db.get_value("Stock Entry",
|
||||
sle.voucher_no, "purpose") in ("Material Receipt", "Material Transfer")):
|
||||
status = False
|
||||
|
||||
return status
|
||||
|
Loading…
x
Reference in New Issue
Block a user