启用有效期管理的物料,做入库时生产日期和失效日期是必填项,若未启用有效期管理,则生产日期和失效日期不可以编辑
/**
前台操作计算时获取保质期信息
*String pk_calbody, String cinv_vid
* pk_calbody 库存组织
* cinv_vid 物料主键
**/
InvCalBodyVO nc.vo.ic.material.query.InvInfoQuery.getInvCalBodyVO(String pk_calbody, String cinv_vid)
//保质期单位
Integer qualityUnit = calbodyVO.getQualityunit();
//保质期
Integer qualityNum = calbodyVO.getQualitynum();
UFDate nc.impl.ic.util.DateCalUtil.calDvalidate(UFDate vdate, Integer qualitydaynum, Integer qualityunit)
/**
* 后台操作计算时获取保质期信息
* orgIDs 库存组织主键
* pk_material 物料主键
**/
MaterialStockVO[] nc.impl.bd.material.stock.MaterialStockQueryServiceImpl.queryMaterialStockVOs(String[] orgIDs, String pk_material) throws BusinessException
Integer qualityUnit = MaterialStockVO.getQualityunit();
//保质期
Integer qualityNum = MaterialStockVO.getQualitynum();
UFDate nc.impl.ic.util.DateCalUtil.calDvalidate(UFDate vdate, Integer qualitydaynum, Integer qualityunit)