Commit 809571b0 authored by eddie.woo's avatar eddie.woo

Merge branch 'dev_mysql' of http://code.tech.tax.asia.pwcinternal.com/root/atms into dev_mysql

parents ad1e5c42 62ae1c98
...@@ -480,7 +480,7 @@ public class AssetListServiceImpl extends BaseService { ...@@ -480,7 +480,7 @@ public class AssetListServiceImpl extends BaseService {
switch(enumCitAssetType){ switch(enumCitAssetType){
case FixedAssets: case FixedAssets:
//获取税务折旧期限 //获取税务折旧期限
citAsset.setTaxDepreciationPeriod(Math.max(citAsset.getDepreciationPeriod(),assetDetailGroup.getGroupYear()*12)); citAsset.setTaxDepreciationPeriod(Math.max(citAsset.getDepreciationPeriod(),assetGroupResult.getTaxDepreciationPeriod()));
//把购入日期放入到Calendar //把购入日期放入到Calendar
cal.setTime(citAsset.getBuyDate()); cal.setTime(citAsset.getBuyDate());
...@@ -524,7 +524,7 @@ public class AssetListServiceImpl extends BaseService { ...@@ -524,7 +524,7 @@ public class AssetListServiceImpl extends BaseService {
case InvisibleAssets: case InvisibleAssets:
//获取税务折旧期限 //获取税务折旧期限
citAsset.setTaxDepreciationPeriod(Math.max(citAsset.getDepreciationPeriod(),assetDetailGroup.getGroupYear()*12)); citAsset.setTaxDepreciationPeriod(Math.max(citAsset.getDepreciationPeriod(),assetGroupResult.getTaxDepreciationPeriod()));
//把购入日期放入到Calendar //把购入日期放入到Calendar
cal.setTime(citAsset.getBuyDate()); cal.setTime(citAsset.getBuyDate());
...@@ -569,6 +569,8 @@ public class AssetListServiceImpl extends BaseService { ...@@ -569,6 +569,8 @@ public class AssetListServiceImpl extends BaseService {
public ApiResultDto updateAssetResultList(List<CitAssetsList> assetsLists, String projectId){ public ApiResultDto updateAssetResultList(List<CitAssetsList> assetsLists, String projectId){
for(CitAssetsList citAsset:assetsLists){ for(CitAssetsList citAsset:assetsLists){
//获取税务每月折旧额,(原值-残值)/税法折旧期间
citAsset.setTaxMonthDepreciationAmount((citAsset.getAcquisitionValue().subtract(citAsset.getResidualRate())).divide(new BigDecimal(citAsset.getTaxDepreciationPeriod()), 2));
assetListMapper.updateByPrimaryKeySelective(citAsset); assetListMapper.updateByPrimaryKeySelective(citAsset);
} }
return null; return null;
......
...@@ -48,7 +48,7 @@ ...@@ -48,7 +48,7 @@
float: left; float: left;
height: 55px; height: 55px;
line-height: 55px; line-height: 55px;
width: 155px; width: 180px;
text-align: center; text-align: center;
} }
......
...@@ -966,7 +966,7 @@ ...@@ -966,7 +966,7 @@
}); });
} }
assetListService.batchUpdateIsRetain($scope.displayType - 1, projectId, isRetain); assetListService.batchUpdateIsRetain($scope.displayType - 1, projectId, isRetain);
} };
//验证信息 //验证信息
$scope.openTab = function (errorType, rowdata) { $scope.openTab = function (errorType, rowdata) {
......
...@@ -67,17 +67,17 @@ ...@@ -67,17 +67,17 @@
} }
.control-label { .control-label {
padding-left: 12px; padding-left: 42px;
white-space: nowrap; white-space: nowrap;
} }
.dropdown-toggle .caret { .dropdown-toggle .caret {
width: 10px; width: 10px;
height: 10px; height: 10px;
border: none; //IE border: none; //IE
margin-top: -2px !important; margin-top: -2px !important;
} }
.dropdown-toggle .caret:before { .dropdown-toggle .caret:before {
//IE //IE
......
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