Commit d77329ef by yukang

BUGFIX

parent 8ad8df19
...@@ -125,13 +125,15 @@ public class ServiceHPKC004 extends ServiceBase { ...@@ -125,13 +125,15 @@ public class ServiceHPKC004 extends ServiceBase {
newKc004.setDeleteFlag(CommonConstant.YesNo.YES_1); newKc004.setDeleteFlag(CommonConstant.YesNo.YES_1);
DaoUtils.insert(HPKC004.INSERT, newKc004); DaoUtils.insert(HPKC004.INSERT, newKc004);
// 修改库存 // 修改库存
if (hpkc010!=null) if (hpkc010!=null) {
HPKCTools.updateStock(dbKc004.getWhCode(), hpkc010.getInventRecordId(), HPKCTools.updateStock(dbKc004.getWhCode(), hpkc010.getInventRecordId(),
dbKc004.getAmount(), dbKc004.getWeight().multiply(new BigDecimal(1000)),hpkc010.getFactoryCode()); dbKc004.getAmount(), dbKc004.getWeight(),hpkc010.getFactoryCode());
else } else {
HPKCTools.updateProdStock(dbKc004.getWhCode(), dbKc004.getProdNo(), HPKCTools.updateProdStock(dbKc004.getWhCode(), dbKc004.getProdNo(),
dbKc004.getAmount(), dbKc004.getWeight(),hpkc011.getFactoryCode()); dbKc004.getAmount(), dbKc004.getWeight(),hpkc011.getFactoryCode());
} }
}
inInfo = this.query(inInfo); inInfo = this.query(inInfo);
inInfo.setStatus(EiConstant.STATUS_DEFAULT); inInfo.setStatus(EiConstant.STATUS_DEFAULT);
inInfo.setMsg("操作成功!本次对[" + resultRows.size() + "]条数据删除成功!"); inInfo.setMsg("操作成功!本次对[" + resultRows.size() + "]条数据删除成功!");
......
...@@ -93,7 +93,7 @@ public class ServiceHPKC013 extends ServiceBase { ...@@ -93,7 +93,7 @@ public class ServiceHPKC013 extends ServiceBase {
HPKC013 fKc013 = new HPKC013(); HPKC013 fKc013 = new HPKC013();
fKc013.fromMap(resultRows.get(i)); fKc013.fromMap(resultRows.get(i));
HPKC013 dbKc013 = mapKc013.get(fKc013.getReturnNo()); HPKC013 dbKc013 = mapKc013.get(fKc013.getReturnNo());
if (!fKc013.getSubInventCode().equals(" ")) { if (!dbKc013.getSubInventCode().equals(" ")) {
hpkc011 = HPKCTools.HpKc011.listById(dbKc013.getKcId()); hpkc011 = HPKCTools.HpKc011.listById(dbKc013.getKcId());
}else { }else {
hpkc010 = HPKCTools.HpKc010.listById(dbKc013.getKcId()); hpkc010 = HPKCTools.HpKc010.listById(dbKc013.getKcId());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment