mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-04 04:39:11 +00:00
fix(test): test cases fixed
This commit is contained in:
@@ -12,7 +12,7 @@ from frappe.custom.doctype.property_setter.property_setter import make_property_
|
|||||||
|
|
||||||
class AccountsSettings(Document):
|
class AccountsSettings(Document):
|
||||||
def on_update(self):
|
def on_update(self):
|
||||||
pass
|
frappe.clear_cache()
|
||||||
|
|
||||||
def validate(self):
|
def validate(self):
|
||||||
self.validate_stale_days()
|
self.validate_stale_days()
|
||||||
|
|||||||
@@ -350,8 +350,9 @@ class TestPurchaseReceipt(unittest.TestCase):
|
|||||||
'location_name': 'Test Location'
|
'location_name': 'Test Location'
|
||||||
}).insert()
|
}).insert()
|
||||||
|
|
||||||
|
set_perpetual_inventory(1, "_Test Company")
|
||||||
pr = make_purchase_receipt(cost_center=cost_center)
|
pr = make_purchase_receipt(cost_center=cost_center)
|
||||||
set_perpetual_inventory(1, pr.company)
|
|
||||||
stock_in_hand_account = get_inventory_account(pr.company, pr.get("items")[0].warehouse)
|
stock_in_hand_account = get_inventory_account(pr.company, pr.get("items")[0].warehouse)
|
||||||
gl_entries = get_gl_entries("Purchase Receipt", pr.name)
|
gl_entries = get_gl_entries("Purchase Receipt", pr.name)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user