到货单计算主辅计量工具类 包含价格计算

nc.vo.pubapp.scale.ScaleUtils


		ScaleUtils scale = new ScaleUtils(headvo.getPk_group());
		//20171212 songpeng 需求确认:V20只使用主数量
		//到货主数量
		puitemvo.setNnum(scale.adjustNumScale(ValueUtils.getUFDouble(bodyparam.get(YCPuReceiveServiceImpl.ycnum)),puitemvo.getCunitid()));
		//应到货主数量
		puitemvo.setNplannum(puitemvo.getNnum());
		
		//使用主数量和换算率计算到货数量:主数量/换算率
		UFDouble nastnum = HslParseUtil.hslDivUFDouble(puitemvo.getVchangerate(), puitemvo.getNnum());
		puitemvo.setNastnum(scale.adjustNumScale(nastnum,puitemvo.getCastunitid()));
	    puitemvo.setNplanastnum(puitemvo.getNastnum());

你可能感兴趣的:(java基础)