test: fixed asset movement tests
- set cwip account in company to avoid value missing - removed unused statement - removed trailing spaces
This commit is contained in:
parent
8f1a3aef2e
commit
867939fcae
@ -103,7 +103,6 @@ class TestPOSClosingEntry(unittest.TestCase):
|
|||||||
pos_inv2.submit()
|
pos_inv2.submit()
|
||||||
|
|
||||||
pcv_doc = make_closing_entry_from_opening(opening_entry)
|
pcv_doc = make_closing_entry_from_opening(opening_entry)
|
||||||
payment = pcv_doc.payment_reconciliation[0]
|
|
||||||
|
|
||||||
for d in pcv_doc.payment_reconciliation:
|
for d in pcv_doc.payment_reconciliation:
|
||||||
if d.mode_of_payment == 'Cash':
|
if d.mode_of_payment == 'Cash':
|
||||||
|
@ -15,6 +15,7 @@ from erpnext.stock.doctype.purchase_receipt.test_purchase_receipt import make_pu
|
|||||||
|
|
||||||
class TestAssetMovement(unittest.TestCase):
|
class TestAssetMovement(unittest.TestCase):
|
||||||
def setUp(self):
|
def setUp(self):
|
||||||
|
frappe.db.set_value("Company", "_Test Company", "capital_work_in_progress_account", "CWIP Account - _TC")
|
||||||
create_asset_data()
|
create_asset_data()
|
||||||
make_location()
|
make_location()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user