zxz 1 рік тому
батько
коміт
ec68e51ddd

+ 3 - 0
winsea-haixin-plugin-yiliangyiyun/src/main/java/com/yh/saas/plugin/yiliangyiyun/service/impl/ExpenseInfoServiceImpl.java

@@ -470,6 +470,9 @@ public class ExpenseInfoServiceImpl extends ServiceImpl<ExpenseInfoMapper, Expen
                 expenseInfo.setStatusFlag(StatusEnum.COST_PAYMENT.getFlag());
                 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()))) {
                 expenseInfo.setUnallocatedAmount(expenseInfo.getAmountMoney());