Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/web/src/main/java/za/org/kuali/kfs/module/cam/batch/service/impl/AssetDepreciationServiceImpl.java b/web/src/main/java/za/org/kuali/kfs/module/cam/batch/service/impl/AssetDepreciationServiceImpl.java
- index b758d6d..ba193e1 100644
- --- a/web/src/main/java/za/org/kuali/kfs/module/cam/batch/service/impl/AssetDepreciationServiceImpl.java
- +++ b/web/src/main/java/za/org/kuali/kfs/module/cam/batch/service/impl/AssetDepreciationServiceImpl.java
- @@ -1,8 +1,15 @@
- package za.org.kuali.kfs.module.cam.batch.service.impl;
- +import java.util.ArrayList;
- +import java.util.Calendar;
- +import java.util.Collection;
- +import java.util.HashMap;
- +import java.util.List;
- +import java.util.Map;
- +import java.util.SortedMap;
- +import java.util.TreeMap;
- +
- import org.apache.commons.lang.StringUtils;
- -import org.joda.time.LocalDate;
- -import org.joda.time.Months;
- import org.kuali.kfs.coa.businessobject.ObjectCode;
- import org.kuali.kfs.module.cam.CamsConstants;
- import org.kuali.kfs.module.cam.CamsKeyConstants;
- @@ -14,14 +21,19 @@ import org.kuali.kfs.module.cam.businessobject.AssetObjectCode;
- import org.kuali.kfs.sys.KFSConstants;
- import org.kuali.kfs.sys.service.impl.KfsParameterConstants;
- import org.kuali.rice.core.api.util.type.KualiDecimal;
- +import org.kuali.rice.coreservice.framework.CoreFrameworkServiceLocator;
- +import org.kuali.rice.coreservice.framework.parameter.ParameterService;
- +import org.kuali.rice.krad.service.BusinessObjectService;
- import org.kuali.rice.krad.service.KRADServiceLocator;
- import org.kuali.rice.krad.util.ObjectUtils;
- +
- import za.org.kuali.kfs.module.cam.businessobject.AssetPaymentExtension;
- -import java.util.*;
- +
- public class AssetDepreciationServiceImpl extends org.kuali.kfs.module.cam.batch.service.impl.AssetDepreciationServiceImpl {
- private static final org.apache.log4j.Logger LOG = org.apache.log4j.Logger.getLogger(AssetDepreciationServiceImpl.class);
- + private BusinessObjectService businessObjectService;
- @Override
- protected SortedMap<String, AssetDepreciationTransaction> calculateDepreciation(Integer fiscalYear, Integer fiscalMonth, Collection<AssetPaymentInfo> depreciableAssetsCollection, Calendar depreciationDate, Collection<AssetObjectCode> assetObjectCodes) {
- @@ -32,31 +44,31 @@ public class AssetDepreciationServiceImpl extends org.kuali.kfs.module.cam.batch
- SortedMap<String, AssetDepreciationTransaction> depreciationTransactionSummary = new TreeMap<String, AssetDepreciationTransaction>();
- double monthsElapsed = 0d;
- double assetLifeInMonths = 0d;
- - KualiDecimal accumulatedDepreciationAmount = KualiDecimal.ZERO;
- + KualiDecimal calculatedAccumulatedDepreciation = KualiDecimal.ZERO;
- Calendar assetDepreciationDate = Calendar.getInstance();
- boolean assetReclass = false;
- boolean salvageRate = false;
- try {
- LOG.debug(CamsConstants.Depreciation.DEPRECIATION_BATCH + "Getting the parameters for the plant fund object sub types.");
- // Getting system parameters needed.
- - if (parameterService.parameterExists(KfsParameterConstants.CAPITAL_ASSETS_BATCH.class, CamsConstants.Parameters.DEPRECIATION_ORGANIZATON_PLANT_FUND_SUB_OBJECT_TYPES)) {
- - organizationPlantFundObjectSubType = new ArrayList<String>( parameterService.getParameterValuesAsString(KfsParameterConstants.CAPITAL_ASSETS_BATCH.class, CamsConstants.Parameters.DEPRECIATION_ORGANIZATON_PLANT_FUND_SUB_OBJECT_TYPES) );
- + if (getParameterService().parameterExists(KfsParameterConstants.CAPITAL_ASSETS_BATCH.class, CamsConstants.Parameters.DEPRECIATION_ORGANIZATON_PLANT_FUND_SUB_OBJECT_TYPES)) {
- + organizationPlantFundObjectSubType = new ArrayList<String>( getParameterService().getParameterValuesAsString(KfsParameterConstants.CAPITAL_ASSETS_BATCH.class, CamsConstants.Parameters.DEPRECIATION_ORGANIZATON_PLANT_FUND_SUB_OBJECT_TYPES) );
- }
- - if (parameterService.parameterExists(KfsParameterConstants.CAPITAL_ASSETS_BATCH.class, CamsConstants.Parameters.DEPRECIATION_CAMPUS_PLANT_FUND_OBJECT_SUB_TYPES)) {
- - campusPlantFundObjectSubType = new ArrayList<String>( parameterService.getParameterValuesAsString(KfsParameterConstants.CAPITAL_ASSETS_BATCH.class, CamsConstants.Parameters.DEPRECIATION_CAMPUS_PLANT_FUND_OBJECT_SUB_TYPES) );
- + if (getParameterService().parameterExists(KfsParameterConstants.CAPITAL_ASSETS_BATCH.class, CamsConstants.Parameters.DEPRECIATION_CAMPUS_PLANT_FUND_OBJECT_SUB_TYPES)) {
- + campusPlantFundObjectSubType = new ArrayList<String>( getParameterService().getParameterValuesAsString(KfsParameterConstants.CAPITAL_ASSETS_BATCH.class, CamsConstants.Parameters.DEPRECIATION_CAMPUS_PLANT_FUND_OBJECT_SUB_TYPES) );
- }
- // Initializing the asset payment table.
- - depreciationBatchDao.resetPeriodValuesWhenFirstFiscalPeriod(fiscalMonth);
- + getDepreciationBatchDao().resetPeriodValuesWhenFirstFiscalPeriod(fiscalMonth);
- LOG.debug("getBaseAmountOfAssets(Collection<AssetPayment> depreciableAssetsCollection) - Started.");
- // Invoking method that will calculate the base amount for each asset payment transactions, which could be more than 1
- // per asset.
- LOG.debug(CamsConstants.Depreciation.DEPRECIATION_BATCH + "Calculating the base amount for each asset.");
- - Map<Long, KualiDecimal> salvageValueAssetDeprAmounts = depreciationBatchDao.getPrimaryDepreciationBaseAmountForSV();
- + Map<Long, KualiDecimal> salvageValueAssetDeprAmounts = getDepreciationBatchDao().getPrimaryDepreciationBaseAmountForSV();
- // Retrieving the object asset codes.
- Map<String, AssetObjectCode> assetObjectCodeMap = buildChartObjectToCapitalizationObjectMap(assetObjectCodes);
- Map<String, ObjectCode> capitalizationObjectCodes = new HashMap<String, ObjectCode>();
- - // Reading asset payments
- + // iterating over asset payments
- LOG.debug(CamsConstants.Depreciation.DEPRECIATION_BATCH + "Reading collection with eligible asset payment details.");
- int counter = 0;
- List<AssetPaymentInfo> saveList = new ArrayList<AssetPaymentInfo>();
- @@ -85,8 +97,6 @@ public class AssetDepreciationServiceImpl extends org.kuali.kfs.module.cam.batch
- }
- Long assetNumber = assetPaymentInfo.getCapitalAssetNumber();
- assetDepreciationDate.setTime(assetPaymentInfo.getDepreciationDate());
- - accumulatedDepreciationAmount = KualiDecimal.ZERO;
- - KualiDecimal deprAmountSum = salvageValueAssetDeprAmounts.get(assetNumber);
- // Calculating the life of the asset in months.
- assetLifeInMonths = assetPaymentInfo.getDepreciableLifeLimit() * 12;
- // Calculating the months elapsed for the asset using the depreciation date and the asset service date.
- @@ -96,38 +106,37 @@ public class AssetDepreciationServiceImpl extends org.kuali.kfs.module.cam.batch
- // CALCULATING ACCUMULATED DEPRECIATION BASED ON FORMULA FOR SINGLE LINE AND SALVAGE VALUE DEPRECIATION METHODS.
- // **************************************************************************************************************
- KualiDecimal primaryDepreciationBaseAmount = assetPaymentInfo.getPrimaryDepreciationBaseAmount();
- - Asset asset = KRADServiceLocator.getBusinessObjectService().findBySinglePrimaryKey(Asset.class,assetNumber );
- + Asset asset = getBusinessObjectService().findBySinglePrimaryKey(Asset.class,assetNumber );
- if (primaryDepreciationBaseAmount == null) {
- - assetPaymentInfo.setPrimaryDepreciationBaseAmount(KualiDecimal.ZERO);
- + primaryDepreciationBaseAmount = KualiDecimal.ZERO;
- }
- if (ObjectUtils.isNull(asset.getCapitalAssetType())) {
- asset.refreshReferenceObject(CamsPropertyConstants.Asset.CAPITAL_ASSET_TYPE);
- }
- if (ObjectUtils.isNotNull(asset) && asset.getCapitalAssetType().getSalvageRate() != null) {
- - assetPaymentInfo.setPrimaryDepreciationBaseAmount(asset.getTotalCostAmount().subtract(asset.getSalvageAmount()));
- + primaryDepreciationBaseAmount = asset.getTotalCostAmount().subtract(asset.getSalvageAmount());
- salvageRate = true;
- - primaryDepreciationBaseAmount = assetPaymentInfo.getPrimaryDepreciationBaseAmount();
- }
- - if (assetPaymentInfo.getAccumulatedPrimaryDepreciationAmount() == null) {
- - assetPaymentInfo.setAccumulatedPrimaryDepreciationAmount(KualiDecimal.ZERO);
- + KualiDecimal existingAccumulatedPrimaryDepreciation = assetPaymentInfo.getAccumulatedPrimaryDepreciationAmount();
- + if (existingAccumulatedPrimaryDepreciation == null) {
- + existingAccumulatedPrimaryDepreciation = KualiDecimal.ZERO;
- }
- //Asset Reclassifications NWUKFS-1107
- Map<String, Object> params = new HashMap<String, Object>();
- params.put("capitalAssetNumber",assetPaymentInfo.getCapitalAssetNumber());
- params.put("paymentSequenceNumber",assetPaymentInfo.getPaymentSequenceNumber());
- - AssetPaymentExtension extension = KRADServiceLocator.getBusinessObjectService().findByPrimaryKey(AssetPaymentExtension.class,params);
- + AssetPaymentExtension extension = getBusinessObjectService().findByPrimaryKey(AssetPaymentExtension.class,params);
- if (extension != null) {
- if (extension.getAssetReclassificationIndicator().equals("Y")) {
- assetReclass = true;
- if(salvageRate) {
- - assetPaymentInfo.setPrimaryDepreciationBaseAmount(assetPaymentInfo.getPrimaryDepreciationBaseAmount().subtract(assetPaymentInfo.getAccumulatedPrimaryDepreciationAmount()));
- + primaryDepreciationBaseAmount = primaryDepreciationBaseAmount.subtract(existingAccumulatedPrimaryDepreciation);
- }else{
- - assetPaymentInfo.setPrimaryDepreciationBaseAmount(asset.getTotalCostAmount().subtract(assetPaymentInfo.getAccumulatedPrimaryDepreciationAmount()));
- + primaryDepreciationBaseAmount = asset.getTotalCostAmount().subtract(existingAccumulatedPrimaryDepreciation);
- }
- - primaryDepreciationBaseAmount = assetPaymentInfo.getPrimaryDepreciationBaseAmount();
- //Normal depr monthElapsed adding extra month we don't want.
- monthsElapsed = (depreciationDate.get(Calendar.MONTH) - assetDepreciationDate.get(Calendar.MONTH) + (depreciationDate.get(Calendar.YEAR) - assetDepreciationDate.get(Calendar.YEAR)) * 12);
- //monthsElapsed = Months.monthsBetween(LocalDate.fromCalendarFields(assetDepreciationDate), LocalDate.fromCalendarFields(depreciationDate)).getMonths();
- @@ -135,40 +144,18 @@ public class AssetDepreciationServiceImpl extends org.kuali.kfs.module.cam.batch
- assetLifeInMonths = assetLifeInMonths - monthsElapsed;
- }
- }
- -
- - // If the months elapsed >= to the life of the asset (in months) then, the accumulated depreciation should be:
- - if (monthsElapsed >= assetLifeInMonths) {
- - if (CamsConstants.Asset.DEPRECIATION_METHOD_STRAIGHT_LINE_CODE.equals(assetPaymentInfo.getPrimaryDepreciationMethodCode())) {
- - accumulatedDepreciationAmount = primaryDepreciationBaseAmount;
- - }
- - else if (CamsConstants.Asset.DEPRECIATION_METHOD_SALVAGE_VALUE_CODE.equals(assetPaymentInfo.getPrimaryDepreciationMethodCode()) && deprAmountSum != null && deprAmountSum.isNonZero()) {
- - accumulatedDepreciationAmount = primaryDepreciationBaseAmount.subtract((primaryDepreciationBaseAmount.divide(deprAmountSum)).multiply(assetPaymentInfo.getSalvageAmount()));
- - }
- - } // If the month elapse < to the life of the asset (in months) then....
- - else {
- - if (CamsConstants.Asset.DEPRECIATION_METHOD_STRAIGHT_LINE_CODE.equals(assetPaymentInfo.getPrimaryDepreciationMethodCode())) {
- - accumulatedDepreciationAmount = new KualiDecimal((monthsElapsed / assetLifeInMonths) * primaryDepreciationBaseAmount.doubleValue());
- - }
- - else if (CamsConstants.Asset.DEPRECIATION_METHOD_SALVAGE_VALUE_CODE.equals(assetPaymentInfo.getPrimaryDepreciationMethodCode()) && deprAmountSum != null && deprAmountSum.isNonZero()) {
- - accumulatedDepreciationAmount = new KualiDecimal((monthsElapsed / assetLifeInMonths) * (primaryDepreciationBaseAmount.subtract((primaryDepreciationBaseAmount.divide(deprAmountSum)).multiply(assetPaymentInfo.getSalvageAmount()))).doubleValue());
- - }
- - }
- - // Calculating in process fiscal month depreciation amount
- - KualiDecimal transactionAmount = KualiDecimal.ZERO;
- - if (!assetReclass) {
- - transactionAmount = accumulatedDepreciationAmount.subtract(assetPaymentInfo.getAccumulatedPrimaryDepreciationAmount());
- - } else {
- - if (assetLifeInMonths > 0) {
- - if (CamsConstants.Asset.DEPRECIATION_METHOD_STRAIGHT_LINE_CODE.equals(assetPaymentInfo.getPrimaryDepreciationMethodCode())) {
- - transactionAmount = primaryDepreciationBaseAmount.divide(new KualiDecimal(assetLifeInMonths));
- - accumulatedDepreciationAmount = assetPaymentInfo.getAccumulatedPrimaryDepreciationAmount().add(transactionAmount);
- - } else if (CamsConstants.Asset.DEPRECIATION_METHOD_SALVAGE_VALUE_CODE.equals(assetPaymentInfo.getPrimaryDepreciationMethodCode()) && deprAmountSum != null && deprAmountSum.isNonZero()) {
- - transactionAmount = (primaryDepreciationBaseAmount.subtract(assetPaymentInfo.getSalvageAmount())).divide(new KualiDecimal(assetLifeInMonths));
- - accumulatedDepreciationAmount = assetPaymentInfo.getAccumulatedPrimaryDepreciationAmount().add(transactionAmount);
- - }
- - }
- - }
- -
- +
- + final String primaryDepreciationMethodCode = assetPaymentInfo.getPrimaryDepreciationMethodCode();
- + KualiDecimal salvageValueAssetDeprAmount = salvageValueAssetDeprAmounts.get(assetNumber);
- + // start proposed carve-out to test the effect of negative amounts, asset older than depreciable life
- + KualiDecimal[] depreciation = calculateDepreciation(
- + monthsElapsed, assetLifeInMonths,
- + assetReclass, salvageValueAssetDeprAmount,
- + primaryDepreciationBaseAmount, primaryDepreciationMethodCode,
- + existingAccumulatedPrimaryDepreciation, assetPaymentInfo.getSalvageAmount());
- + KualiDecimal transactionAmount = depreciation[0];
- + calculatedAccumulatedDepreciation = depreciation[1];
- + // end of proposed carve-out
- String transactionType = KFSConstants.GL_DEBIT_CODE;
- if (transactionAmount.isNegative()) {
- @@ -191,9 +178,10 @@ public class AssetDepreciationServiceImpl extends org.kuali.kfs.module.cam.batch
- LOG.error(CamsConstants.Depreciation.DEPRECIATION_BATCH + "Plant COA is " + plantCOA + " and plant account is " + plantAccount + " for Financial Object SubType Code = " + assetPaymentInfo.getFinancialObjectSubTypeCode() + " so Asset payment is not included in depreciation " + assetPaymentInfo.getCapitalAssetNumber() + " - " + assetPaymentInfo.getPaymentSequenceNumber());
- continue;
- }
- - LOG.debug("Asset#: " + assetNumber + " - Payment sequence#:" + assetPaymentInfo.getPaymentSequenceNumber() + " - Asset Depreciation date:" + assetDepreciationDate + " - Life:" + assetLifeInMonths + " - Depreciation base amt:" + primaryDepreciationBaseAmount + " - Accumulated depreciation:" + assetPaymentInfo.getAccumulatedPrimaryDepreciationAmount() + " - Month Elapsed:" + monthsElapsed + " - Calculated accum depreciation:" + accumulatedDepreciationAmount + " - Depreciation amount:" + transactionAmount.toString() + " - Depreciation Method:" + assetPaymentInfo.getPrimaryDepreciationMethodCode() + " - Salvage Rate:" + salvageRate + "- Asset Reclass:" + assetReclass);
- - assetPaymentInfo.setAccumulatedPrimaryDepreciationAmount(accumulatedDepreciationAmount);
- + LOG.debug("Asset#: " + assetNumber + " - Payment sequence#:" + assetPaymentInfo.getPaymentSequenceNumber() + " - Asset Depreciation date:" + assetDepreciationDate + " - Life:" + assetLifeInMonths + " - Depreciation base amt:" + primaryDepreciationBaseAmount + " - Accumulated depreciation:" + existingAccumulatedPrimaryDepreciation + " - Month Elapsed:" + monthsElapsed + " - Calculated accum depreciation:" + calculatedAccumulatedDepreciation + " - Depreciation amount:" + transactionAmount.toString() + " - Depreciation Method:" + primaryDepreciationMethodCode + " - Salvage Rate:" + salvageRate + "- Asset Reclass:" + assetReclass);
- + assetPaymentInfo.setAccumulatedPrimaryDepreciationAmount(calculatedAccumulatedDepreciation);
- assetPaymentInfo.setTransactionAmount(transactionAmount);
- + assetPaymentInfo.setPrimaryDepreciationBaseAmount(primaryDepreciationBaseAmount);
- counter++;
- saveList.add(assetPaymentInfo);
- // Saving depreciation amount in the asset payment table
- @@ -217,4 +205,82 @@ public class AssetDepreciationServiceImpl extends org.kuali.kfs.module.cam.batch
- throw new IllegalStateException(kualiConfigurationService.getPropertyValueAsString(CamsKeyConstants.Depreciation.ERROR_WHEN_CALCULATING_DEPRECIATION) + " :" + e.getMessage());
- }
- }
- +
- + /**
- + * @return the businessObjectService
- + */
- + public BusinessObjectService getBusinessObjectService() {
- + if (businessObjectService == null) {
- + businessObjectService = KRADServiceLocator.getBusinessObjectService();
- + }
- + return businessObjectService;
- + }
- +
- + public ParameterService getParameterService() {
- + if (parameterService == null) {
- + parameterService = CoreFrameworkServiceLocator.getParameterService();
- + }
- +
- + return parameterService;
- + }
- +
- + /**
- + * @param monthsElapsed - months since the asset was created
- + * @param assetLifeInMonths - the asset Life In Months
- + * @param assetReclass - whether asset reclassification has been done on this asset
- + * @param salvageValueAssetDeprAmount - @see {@link org.kuali.kfs.module.cam.document.dataaccess.impl.DepreciationBatchDaoJdbc#getPrimaryDepreciationBaseAmountForSV()}
- + * @param primaryDepreciationBaseAmount @see {@link org.kuali.kfs.module.cam.batch.AssetPaymentInfo#getPrimaryDepreciationBaseAmount()}
- + * @param primaryDepreciationMethodCode - @see {@link org.kuali.kfs.module.cam.batch.AssetPaymentInfo#getPrimaryDepreciationMethodCode()}
- + * @param existingAccumulatedPrimaryDepreciation - @see {@link org.kuali.kfs.module.cam.batch.AssetPaymentInfo#getAccumulatedPrimaryDepreciationAmount()}
- + * @param salvageAmount - @see {@link org.kuali.kfs.module.cam.batch.AssetPaymentInfo#getSalvageAmount()}
- + * @return an array with the depreciation amount for the current fiscal period at index 0, the calculated accumulated depreciation at index 1
- + */
- + protected KualiDecimal[] calculateDepreciation (double monthsElapsed,
- + double assetLifeInMonths,
- + boolean assetReclass, KualiDecimal salvageValueAssetDeprAmount,
- + KualiDecimal primaryDepreciationBaseAmount,
- + final String primaryDepreciationMethodCode,
- + KualiDecimal existingAccumulatedPrimaryDepreciation, KualiDecimal salvageAmount) {
- + KualiDecimal transactionAmount = KualiDecimal.ZERO;
- + KualiDecimal accumulatedDepreciationAmount = KualiDecimal.ZERO;
- + // If the months elapsed >= to the life of the asset (in months) then, the accumulated depreciation should be:
- +
- + if (monthsElapsed >= assetLifeInMonths) {
- + if (CamsConstants.Asset.DEPRECIATION_METHOD_STRAIGHT_LINE_CODE.equals(primaryDepreciationMethodCode)) {
- + accumulatedDepreciationAmount = primaryDepreciationBaseAmount;
- + }
- + else if (CamsConstants.Asset.DEPRECIATION_METHOD_SALVAGE_VALUE_CODE.equals(primaryDepreciationMethodCode) && salvageValueAssetDeprAmount != null && salvageValueAssetDeprAmount.isNonZero()) {
- + accumulatedDepreciationAmount = primaryDepreciationBaseAmount.subtract((primaryDepreciationBaseAmount.divide(salvageValueAssetDeprAmount)).multiply(salvageAmount));
- + }
- + } // If the month elapse < to the life of the asset (in months) then....
- + else {
- + if (CamsConstants.Asset.DEPRECIATION_METHOD_STRAIGHT_LINE_CODE.equals(primaryDepreciationMethodCode)) {
- + accumulatedDepreciationAmount = new KualiDecimal((monthsElapsed / assetLifeInMonths) * primaryDepreciationBaseAmount.doubleValue());
- + }
- + else if (CamsConstants.Asset.DEPRECIATION_METHOD_SALVAGE_VALUE_CODE.equals(primaryDepreciationMethodCode) && salvageValueAssetDeprAmount != null && salvageValueAssetDeprAmount.isNonZero()) {
- + accumulatedDepreciationAmount = new KualiDecimal((monthsElapsed / assetLifeInMonths) * (primaryDepreciationBaseAmount.subtract((primaryDepreciationBaseAmount.divide(salvageValueAssetDeprAmount)).multiply(salvageAmount))).doubleValue());
- + }
- + }
- + // Calculating in process fiscal month depreciation amount
- +
- + if (!assetReclass) {
- + transactionAmount = accumulatedDepreciationAmount.subtract(existingAccumulatedPrimaryDepreciation);
- + } else {
- + if (assetLifeInMonths > 0) {
- + if (CamsConstants.Asset.DEPRECIATION_METHOD_STRAIGHT_LINE_CODE.equals(primaryDepreciationMethodCode)) {
- + transactionAmount = primaryDepreciationBaseAmount.divide(new KualiDecimal(assetLifeInMonths));
- + accumulatedDepreciationAmount = existingAccumulatedPrimaryDepreciation.add(transactionAmount);
- + } else if (CamsConstants.Asset.DEPRECIATION_METHOD_SALVAGE_VALUE_CODE.equals(primaryDepreciationMethodCode) && salvageValueAssetDeprAmount != null && salvageValueAssetDeprAmount.isNonZero()) {
- + transactionAmount = (primaryDepreciationBaseAmount.subtract(salvageAmount)).divide(new KualiDecimal(assetLifeInMonths));
- + accumulatedDepreciationAmount = existingAccumulatedPrimaryDepreciation.add(transactionAmount);
- + }
- + }
- + }
- +
- + KualiDecimal[] results = new KualiDecimal[2];
- + results[0] = transactionAmount;
- + results[1] = accumulatedDepreciationAmount;
- +
- + return results;
- + }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement