|
@@ -71,14 +71,9 @@ public class ExpenseAccountController extends CertifyApiController {
|
|
|
res.getError().add(buildError(ErrorConstants.PARAM_EMPTY_ERROR,"抵扣单借支单"));
|
|
res.getError().add(buildError(ErrorConstants.PARAM_EMPTY_ERROR,"抵扣单借支单"));
|
|
|
return res;
|
|
return res;
|
|
|
}
|
|
}
|
|
|
- //不是第三方付款和抵扣的时候必须选择报销帐号
|
|
|
|
|
}
|
|
}
|
|
|
-// else if (in.getType()!=3&&in.getType()!=5){
|
|
|
|
|
-// if (in.getEaaid()==null){
|
|
|
|
|
-// res.getError().add(buildError(ErrorConstants.PARAM_EMPTY_ERROR,"报销帐号"));
|
|
|
|
|
-// return res;
|
|
|
|
|
-// }
|
|
|
|
|
-// }
|
|
|
|
|
|
|
+ in.setAmount(in.getTotalAmount().subtract(in.getSettlementAmount()));
|
|
|
|
|
+ in.setRealAmount(in.getAmount());
|
|
|
res.setData(expenseAccountService.update(in));
|
|
res.setData(expenseAccountService.update(in));
|
|
|
}
|
|
}
|
|
|
return res;
|
|
return res;
|