代码优化
This commit is contained in:
parent
f4e4e95bba
commit
3900d6c257
|
@ -34,10 +34,10 @@ import nc.vo.pubapp.util.VORowNoUtils;
|
||||||
* <p>
|
* <p>
|
||||||
* <b>单据现存量捡货结果</b>
|
* <b>单据现存量捡货结果</b>
|
||||||
*
|
*
|
||||||
* @version 本版本号
|
|
||||||
* @since 上一版本号
|
|
||||||
* @author yangb
|
* @author yangb
|
||||||
|
* @version 本版本号
|
||||||
* @time 2010-4-16 下午01:05:00
|
* @time 2010-4-16 下午01:05:00
|
||||||
|
* @since 上一版本号
|
||||||
*/
|
*/
|
||||||
public class ICBillPickResults implements Serializable {
|
public class ICBillPickResults implements Serializable {
|
||||||
|
|
||||||
|
@ -252,6 +252,7 @@ public class ICBillPickResults implements Serializable {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 预处理拣货结果,序列号拣货的优先,然后在不满足需求的前提下再加上全捡的部分结果
|
* 预处理拣货结果,序列号拣货的优先,然后在不满足需求的前提下再加上全捡的部分结果
|
||||||
|
*
|
||||||
* @param resList
|
* @param resList
|
||||||
* @param bodyvo
|
* @param bodyvo
|
||||||
*/
|
*/
|
||||||
|
@ -337,6 +338,7 @@ public class ICBillPickResults implements Serializable {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 有的场景会向后台传序列号的编码,不传序列号的主键,这个时候认为没有传孙表数据
|
* 有的场景会向后台传序列号的编码,不传序列号的主键,这个时候认为没有传孙表数据
|
||||||
|
*
|
||||||
* @param bodyvo
|
* @param bodyvo
|
||||||
* @param snField
|
* @param snField
|
||||||
* @return
|
* @return
|
||||||
|
@ -420,7 +422,8 @@ public class ICBillPickResults implements Serializable {
|
||||||
// TODO 精度未处理 等待公共方法
|
// TODO 精度未处理 等待公共方法
|
||||||
ICBSContext context = new ICBSContext();
|
ICBSContext context = new ICBSContext();
|
||||||
for (int i = 0; i < bodyvos.length; i++) {
|
for (int i = 0; i < bodyvos.length; i++) {
|
||||||
bodyvos[i].setNcostmny(NCBaseTypeUtils.mult(bodyvos[i].getNcostprice(),
|
UFDouble ncostprice = (bodyvos[i].getNcostprice() == null) ? UFDouble.ZERO_DBL : bodyvos[i].getNcostprice();
|
||||||
|
bodyvos[i].setNcostmny(NCBaseTypeUtils.mult(ncostprice,
|
||||||
bodyvos[i].getNnum()));
|
bodyvos[i].getNnum()));
|
||||||
bodyvos[i].setNplannedmny(NCBaseTypeUtils.mult(
|
bodyvos[i].setNplannedmny(NCBaseTypeUtils.mult(
|
||||||
bodyvos[i].getNplannedprice(), bodyvos[i].getNnum()));
|
bodyvos[i].getNplannedprice(), bodyvos[i].getNnum()));
|
||||||
|
@ -449,6 +452,7 @@ public class ICBillPickResults implements Serializable {
|
||||||
// locvo.setNinspaceassistnum(balance.getNastnum());
|
// locvo.setNinspaceassistnum(balance.getNastnum());
|
||||||
// locvo.setNingrossnum(balance.getNgrossnum());
|
// locvo.setNingrossnum(balance.getNgrossnum());
|
||||||
// }
|
// }
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 设置捡货后的表体数据
|
* 设置捡货后的表体数据
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue