Commit f4cc9ca3 authored by zhkwei's avatar zhkwei

固定资产导入

parent 78830041
......@@ -381,9 +381,17 @@ public class AssetListServiceImpl extends BaseService {
//目前已经进行税法分类,标注状态
citAsset.setStatus(1);
AssetDetailGroup assetDetailGroup = selectAssetDetailGroup(groupResults.get(0).getAssetDetailGroupId());
if(assetDetailGroup == null){
//目前没有进行税法分类,标注状态
citAsset.setStatus(0);
//没有进行过分类,放入Set集合里面
assetNameSet.add(assetName);
}else{
// Integer assetGroupType = selectAssetDetailGroup(groupResults.get(0).getAssetDetailGroupId()).getAssetGroupType();
//进行税务的计算
setCitAssetTaxData(citAsset,groupResults.get(0),assetDetailGroup, year);
//进行税务的计算
setCitAssetTaxData(citAsset,groupResults.get(0),assetDetailGroup, year);
}
}else{
//目前没有进行税法分类,标注状态
citAsset.setStatus(0);
......@@ -486,11 +494,10 @@ public class AssetListServiceImpl extends BaseService {
citAsset.setTaxToCurrentYearDepreciationPeriod((year-cal.get(Calendar.YEAR))*12+12-cal.get(Calendar.MONTH));
}
calendar.setTime(new Date());
calendar.add(Calendar.MONTH,1);
cal.add(Calendar.MONTH,1);
//计算开始折旧日期,DD没有提供,我们要根据购入日期和税法分类做预处理自己转化
//开始折旧日期计算逻辑是固定资产和长期待摊费用是购入日期的次月,无形资产的开始折旧日期等于购入日期
citAsset.setDepreciationDate(calendar.getTime());
citAsset.setDepreciationDate(cal.getTime());
break;
case LongTermPrepaid:
......@@ -509,11 +516,10 @@ public class AssetListServiceImpl extends BaseService {
citAsset.setTaxToCurrentYearDepreciationPeriod((year-cal.get(Calendar.YEAR))*12+12-cal.get(Calendar.MONTH));
}
calendar.setTime(new Date());
calendar.add(Calendar.MONTH,1);
cal.add(Calendar.MONTH,1);
//计算开始折旧日期,DD没有提供,我们要根据购入日期和税法分类做预处理自己转化
//开始折旧日期计算逻辑是固定资产和长期待摊费用是购入日期的次月,无形资产的开始折旧日期等于购入日期
citAsset.setDepreciationDate(calendar.getTime());
citAsset.setDepreciationDate(cal.getTime());
break;
case InvisibleAssets:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment