|
@@ -470,6 +470,9 @@ public class ExpenseInfoServiceImpl extends ServiceImpl<ExpenseInfoMapper, Expen
|
|
expenseInfo.setStatusFlag(StatusEnum.COST_PAYMENT.getFlag());
|
|
expenseInfo.setStatusFlag(StatusEnum.COST_PAYMENT.getFlag());
|
|
expenseInfo.setStatus(StatusEnum.COST_PAYMENT.getName());
|
|
expenseInfo.setStatus(StatusEnum.COST_PAYMENT.getName());
|
|
}
|
|
}
|
|
|
|
+ if("3".equals(expenseInfo.getExpensesPurpose()) && "仓储费".equals(expenseInfo.getWareExpenseType())){
|
|
|
|
+ expenseInfo.setAutoAssign("1");
|
|
|
|
+ }
|
|
//合同非粮款和库点费用非自动分配的情况,未分配金额默认等于费用金额
|
|
//合同非粮款和库点费用非自动分配的情况,未分配金额默认等于费用金额
|
|
if (("3".equals(expenseInfo.getCostType()) && "1".equals(expenseInfo.getExpensesPurpose())) || ("3".equals(expenseInfo.getExpensesPurpose()) && "1".equals(expenseInfo.getAutoAssign())) || "7".equals(expenseInfo.getExpensesPurpose())|| ("7".equals(expenseInfo.getCostType()) && "1".equals(expenseInfo.getExpensesPurpose()))) {
|
|
if (("3".equals(expenseInfo.getCostType()) && "1".equals(expenseInfo.getExpensesPurpose())) || ("3".equals(expenseInfo.getExpensesPurpose()) && "1".equals(expenseInfo.getAutoAssign())) || "7".equals(expenseInfo.getExpensesPurpose())|| ("7".equals(expenseInfo.getCostType()) && "1".equals(expenseInfo.getExpensesPurpose()))) {
|
|
expenseInfo.setUnallocatedAmount(expenseInfo.getAmountMoney());
|
|
expenseInfo.setUnallocatedAmount(expenseInfo.getAmountMoney());
|