Add depreciation with half-year convention. Fixed #1237 (#6128)

* Add half-year convention in depreciation for Models/Depreciable.php

* Add a setting for the depreciation method

* Integrate half-year convention inside working output

* fix: add more checks at Depreciable.php

* depreciation value rounding

* Codestyle fix
This commit is contained in:
Dmitriy Minaev
2018-08-28 22:32:46 +03:00
committed by snipe
parent 678ba228cb
commit bc8fa31eb2
4 changed files with 132 additions and 0 deletions
@@ -351,6 +351,8 @@ class SettingsController extends Controller
$setting->thumbnail_max_h = $request->input('thumbnail_max_h');
$setting->privacy_policy_link = $request->input('privacy_policy_link');
$setting->depreciation_method = $request->input('depreciation_method');
if (Input::get('per_page')!='') {
$setting->per_page = $request->input('per_page');
} else {