001 /*
002 * Copyright 2011 The Kuali Foundation.
003 *
004 * Licensed under the Educational Community License, Version 2.0 (the "License");
005 * you may not use this file except in compliance with the License.
006 * You may obtain a copy of the License at
007 *
008 * http://www.opensource.org/licenses/ecl2.php
009 *
010 * Unless required by applicable law or agreed to in writing, software
011 * distributed under the License is distributed on an "AS IS" BASIS,
012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013 * See the License for the specific language governing permissions and
014 * limitations under the License.
015 */
016 package org.kuali.kfs.module.cam.document.service;
017
018 import org.kuali.kfs.module.cam.businessobject.Asset;
019 import org.kuali.kfs.module.cam.businessobject.AssetDepreciationConvention;
020 import org.kuali.kfs.module.cam.businessobject.AssetType;
021
022 public interface AssetDateService {
023
024 /**
025 * Last inventory Date shall be updated whenever changes made to location or tag number
026 */
027 void checkAndUpdateLastInventoryDate(Asset copyAsset, Asset newAsset);
028
029 /**
030 * In Asset Edit, DepreciationDate shall be updated whenever In-service Date changed.
031 */
032 void checkAndUpdateDepreciationDate(Asset copyAsset, Asset newAsset);
033
034 /**
035 * In Asset Edit, Fiscal year and period code shall be updated whenever In-service Date changed.
036 */
037 void checkAndUpdateFiscalYearAndPeriod(Asset copyAsset, Asset newAsset);
038
039 /**
040 * This method computes the depreciation date based on input parameters
041 *
042 * @param assetType Asset Type Object
043 * @param depreciationConvention Depreciation Convention for the asset
044 * @param inServiceDate Current in-service date value
045 * @return Computed Asset Depreciation Date
046 */
047 java.sql.Date computeDepreciationDate(AssetType assetType, AssetDepreciationConvention depreciationConvention, java.sql.Date inServiceDate);
048
049 }