Compare commits
No commits in common. "6eba1483191c1ea6acc7e91f6b2e3de86d6d9331" and "c7fa2723d3499b6b345d566443bc9ff8e06d9fee" have entirely different histories.
6eba148319
...
c7fa2723d3
|
@ -12,7 +12,6 @@ import nc.vo.mmpac.pmo.pac0002.entity.PMOAggVO;
|
||||||
import nc.vo.mmpac.pmo.pac0002.entity.PMOHeadVO;
|
import nc.vo.mmpac.pmo.pac0002.entity.PMOHeadVO;
|
||||||
import nc.vo.mmpac.pmo.pac0002.entity.PMOItemVO;
|
import nc.vo.mmpac.pmo.pac0002.entity.PMOItemVO;
|
||||||
import nc.vo.pub.BusinessException;
|
import nc.vo.pub.BusinessException;
|
||||||
import nc.vo.pub.lang.UFDouble;
|
|
||||||
import nc.vo.so.m30.entity.SaleOrderBVO;
|
import nc.vo.so.m30.entity.SaleOrderBVO;
|
||||||
import nccloud.baseapp.core.log.NCCForUAPLogger;
|
import nccloud.baseapp.core.log.NCCForUAPLogger;
|
||||||
|
|
||||||
|
@ -85,9 +84,9 @@ public class saveBeforeCheckRule implements IRule<PMOAggVO> {
|
||||||
String ntotaloutnums = (ntotaloutnumsObj != null) ? ntotaloutnumsObj.toString() : "";
|
String ntotaloutnums = (ntotaloutnumsObj != null) ? ntotaloutnumsObj.toString() : "";
|
||||||
double ntotaloutnum = (ntotaloutnums.isEmpty()) ? 0 : Double.parseDouble(ntotaloutnums);// 累计生产数量
|
double ntotaloutnum = (ntotaloutnums.isEmpty()) ? 0 : Double.parseDouble(ntotaloutnums);// 累计生产数量
|
||||||
double bdnum = itemvo.getNastnum().getDouble();
|
double bdnum = itemvo.getNastnum().getDouble();
|
||||||
if (new UFDouble(sQty).compareTo((new UFDouble(ntotaloutnum).add(new UFDouble(bdnum)))) <0) {
|
if (sQty < (ntotaloutnum + bdnum)) {
|
||||||
throw new BusinessException("生产订单明细" + (i + 1) + ",累计生产数量'" + (new UFDouble(ntotaloutnum).add(new UFDouble(bdnum)).toString())
|
throw new BusinessException("生产订单明细" + (i + 1) + ",累计生产数量'" + (ntotaloutnum + bdnum)
|
||||||
+ "'大于销售订单累计排产申请数量'" + (new UFDouble(sQty)).toString() + "',无法保存!");
|
+ "'大于销售订单累计排产申请数量'" + sQty + "',无法保存!");
|
||||||
}
|
}
|
||||||
} catch (NumberFormatException e) {
|
} catch (NumberFormatException e) {
|
||||||
throw new BusinessException("累计排产申请数量转化数值失败" + e);
|
throw new BusinessException("累计排产申请数量转化数值失败" + e);
|
||||||
|
|
Loading…
Reference in New Issue