报工、发料

master
zpl 3 years ago
parent b1a2864b68
commit 21b7e5ba06

@ -478,7 +478,7 @@ public class CallItemServiceImpl extends ServiceImpl<CallItemMapper, CallItem> i
int sizeLength = size.length;
BigDecimal length = new BigDecimal(size[sizeLength-1]);
BigDecimal width = new BigDecimal(size[sizeLength-2]);
BigDecimal sizeReqQty = length.multiply(width).multiply(reqQty);
BigDecimal sizeReqQty = length.multiply(width).multiply(reqQty).divide(new BigDecimal(1000000));
callItem.setSizeReqQty(sizeReqQty);
//按物料汇总需求数量
@ -495,7 +495,7 @@ public class CallItemServiceImpl extends ServiceImpl<CallItemMapper, CallItem> i
if (size != null && size.length >= 1) {
int sizeLength = size.length;
BigDecimal length = new BigDecimal(size[sizeLength-1]);
BigDecimal sizeReqQty = length.multiply(reqQty);
BigDecimal sizeReqQty = length.multiply(reqQty).divide(new BigDecimal(1000));
callItem.setSizeReqQty(sizeReqQty);
//按物料汇总需求数量

@ -313,7 +313,7 @@ public class PodTemplateServiceImpl implements PodTemplateService {
//更改派工单状态
sfcDispatchCommonService.updateSfcDispatchStatus(site, CommonMethods.getUser(), dispatchNo, DispatchStatusEnum.COMPLETE.getCode());
//报工
//sendErp(sfc, stepId, qty, BigDecimal.ZERO, workHour);
sendErp(sfc, stepId, qty, BigDecimal.ZERO, workHour);
} catch (Exception e) {
ExceptionUtil.throwException(e);
}

Loading…
Cancel
Save