Commit f8fc7915 by wuwenlong

bugfix

parent 8ad8df19
...@@ -104,7 +104,7 @@ public class ServiceHPKC013 extends ServiceBase { ...@@ -104,7 +104,7 @@ public class ServiceHPKC013 extends ServiceBase {
// 修改库存 // 修改库存
if (hpkc010 != null) { if (hpkc010 != null) {
HPKCTools.updateStock(dbKc013.getWhCode(), hpkc010.getInventRecordId(), HPKCTools.updateStock(dbKc013.getWhCode(), hpkc010.getInventRecordId(),
dbKc013.getAmount(), dbKc013.getWeight().multiply(new BigDecimal(1000)), hpkc010.getFactoryCode()); dbKc013.getAmount(), dbKc013.getWeight(), hpkc010.getFactoryCode());
} else { } else {
HPKCTools.updateProdStock(dbKc013.getWhCode(), dbKc013.getProdNo(), HPKCTools.updateProdStock(dbKc013.getWhCode(), dbKc013.getProdNo(),
dbKc013.getAmount(), dbKc013.getWeight(), hpkc011.getFactoryCode()); dbKc013.getAmount(), dbKc013.getWeight(), hpkc011.getFactoryCode());
......
...@@ -4,6 +4,7 @@ import com.baosight.hpjx.core.dao.DaoBase; ...@@ -4,6 +4,7 @@ import com.baosight.hpjx.core.dao.DaoBase;
import com.baosight.hpjx.core.dao.DaoUtils; import com.baosight.hpjx.core.dao.DaoUtils;
import com.baosight.hpjx.hp.constant.HPSqlConstant; import com.baosight.hpjx.hp.constant.HPSqlConstant;
import com.baosight.hpjx.hp.kc.domain.*; import com.baosight.hpjx.hp.kc.domain.*;
import com.baosight.hpjx.hp.pz.tools.HPPZTools;
import com.baosight.iplat4j.core.ei.EiConstant; import com.baosight.iplat4j.core.ei.EiConstant;
import com.baosight.iplat4j.core.ei.EiInfo; import com.baosight.iplat4j.core.ei.EiInfo;
import com.baosight.iplat4j.core.exception.PlatException; import com.baosight.iplat4j.core.exception.PlatException;
...@@ -441,7 +442,7 @@ public class HPKCTools { ...@@ -441,7 +442,7 @@ public class HPKCTools {
* @param weight * @param weight
*/ */
public static void updateStock(String whCode, Long inventRecordId, BigDecimal amount, BigDecimal weight,String factCode) { public static void updateStock(String whCode, Long inventRecordId, BigDecimal amount, BigDecimal weight,String factCode) {
updateStock(whCode, inventRecordId, amount, BigDecimal.ZERO, weight,factCode); updateStock(whCode, inventRecordId, amount, HPPZTools.HpPz006.calcUnitWeight(inventRecordId), weight,factCode);
} }
/** /**
......
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