X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=fixed_assets%2Fincludes%2Fdepreciation.inc;h=b63ad1a8eb527a5869db59a96d1d3864eefa9472;hb=14e0807fc87e0096af43f414f98764a6f8c8a4a8;hp=e07a93de057b860602a9cb0e5d58dfec713a6dc3;hpb=8199b71bc7336abdedadc24b9be0c3fbb9546988;p=fa-stable.git diff --git a/fixed_assets/includes/depreciation.inc b/fixed_assets/includes/depreciation.inc index e07a93de..b63ad1a8 100644 --- a/fixed_assets/includes/depreciation.inc +++ b/fixed_assets/includes/depreciation.inc @@ -71,7 +71,7 @@ function compute_gl_rows_for_depreciation($item, $no_months, $period) { case 'S': // purchase_cost stores start cost of item $done_months = months_between_dates($item['depreciation_start'], $item['depreciation_date']); - $remaining_months = 100.0/$item['depreciation_rate'] - $done_months; + $remaining_months = 12.0 * 100.0/$item['depreciation_rate'] - $done_months; $value = $item['purchase_cost']*$item['depreciation_rate']/100/12; break;