mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-24 15:39:20 +00:00
@@ -826,6 +826,18 @@ class TestAsset(AssetSetup):
|
|||||||
|
|
||||||
|
|
||||||
class TestDepreciationMethods(AssetSetup):
|
class TestDepreciationMethods(AssetSetup):
|
||||||
|
@classmethod
|
||||||
|
def setUpClass(cls):
|
||||||
|
super().setUpClass()
|
||||||
|
|
||||||
|
cls._old_float_precision = frappe.db.get_single_value("System Settings", "float_precision")
|
||||||
|
frappe.db.set_single_value("System Settings", "float_precision", 2)
|
||||||
|
|
||||||
|
@classmethod
|
||||||
|
def tearDownClass(cls):
|
||||||
|
frappe.db.set_single_value("System Settings", "float_precision", cls._old_float_precision)
|
||||||
|
super().tearDownClass()
|
||||||
|
|
||||||
def test_schedule_for_straight_line_method(self):
|
def test_schedule_for_straight_line_method(self):
|
||||||
asset = create_asset(
|
asset = create_asset(
|
||||||
calculate_depreciation=1,
|
calculate_depreciation=1,
|
||||||
|
|||||||
Reference in New Issue
Block a user