| | |
| | | // 转化为 ErpSaleOrderItemDO 列表(产品验证已移除) |
| | | return convertList(list, o -> BeanUtils.toBean(o, ErpSaleOrderItemDO.class, item -> { |
| | | item.setTotalPrice(MoneyUtils.priceMultiply(item.getProductPrice(), item.getCount())); |
| | | // 是否需要生产:销售端已不再让业务员判断,未传时统一按“需要生产”处理, |
| | | // 由生产车间在生产环节根据实际库存自行判断/调整 |
| | | // 是否需要生产:销售端已不再让业务员判断,未传时按「不需生产」处理 |
| | | // (蓝羽为现货发货模式,默认不进入生产流程,避免自动创建 MPS 卡住发货; |
| | | // 车间确需生产时,在生产/MPS 环节自行创建) |
| | | if (item.getNeedProduction() == null) { |
| | | item.setNeedProduction(1); |
| | | item.setNeedProduction(0); |
| | | } |
| | | if (item.getTotalPrice() == null) { |
| | | return; |