备料计划转库存的其它入库-仓库获取调整
This commit is contained in:
		
							parent
							
								
									de50034ed7
								
							
						
					
					
						commit
						d705484810
					
				|  | @ -9,6 +9,7 @@ import nc.jdbc.framework.processor.ColumnProcessor; | |||
| import nc.pubitf.para.SysInitQuery; | ||||
| import nc.util.mmf.busi.service.PFPubService; | ||||
| import nc.util.mmf.framework.base.MMValueCheck; | ||||
| import nc.vo.bd.stordoc.StordocVO; | ||||
| import nc.vo.fi.pub.SqlUtils; | ||||
| import nc.vo.ic.m4a.entity.GeneralInBodyVO; | ||||
| import nc.vo.ic.m4a.entity.GeneralInHeadVO; | ||||
|  | @ -129,14 +130,23 @@ public class PickmToGeneralInAction implements ICommonAction { | |||
|         } | ||||
|         String pkOrg = inVOS[0].getParentVO().getPk_org(); | ||||
|         String typeCode = SysInitQuery.getParaString(pkOrg, "ICIN_TYPE"); | ||||
|         String warehouseId = SysInitQuery.getParaString(pkOrg, "ICIN_CK"); | ||||
|         if (StringUtils.isEmpty(typeCode) || StringUtils.isEmpty(warehouseId)) { | ||||
|         String warehouseCode = SysInitQuery.getParaString(pkOrg, "ICIN_CK"); | ||||
|         if (StringUtils.isEmpty(typeCode) || StringUtils.isEmpty(warehouseCode)) { | ||||
|             ExceptionUtils.wrapBusinessException("当前组织缺失参数配置,请前往 [业务参数设置-组织] 配置仓库或入库类型参数"); | ||||
|         } | ||||
|         String pk_billtypeid = MyHelper.transferField(BilltypeVO.TABLENAME, BilltypeVO.PK_BILLTYPE_ID, BilltypeVO.PK_BILLTYPECODE, typeCode); | ||||
|         SqlBuilder sqlBuilder = new SqlBuilder(); | ||||
|         sqlBuilder.append(" select " + StordocVO.PK_STORDOC); | ||||
|         sqlBuilder.append(" from " + StordocVO.getDefaultTableName()); | ||||
|         sqlBuilder.append(" where dr = 0"); | ||||
|         sqlBuilder.append(" and "); | ||||
|         sqlBuilder.append(StordocVO.CODE, warehouseCode); | ||||
|         sqlBuilder.append(" and "); | ||||
|         sqlBuilder.append(StordocVO.PK_ORG, pkOrg); | ||||
|         // NCCForUAPLogger.debug("sqlBuilder = " + sqlBuilder); | ||||
|         String warehouseId = (String) getDao().executeQuery(sqlBuilder.toString(), new ColumnProcessor()); | ||||
|         // NCCForUAPLogger.debug("warehouseId = " + warehouseId); | ||||
|         for (GeneralInVO inVO : inVOS) { | ||||
|             String pk_billtypeid = MyHelper.transferField(BilltypeVO.TABLENAME, BilltypeVO.PK_BILLTYPE_ID, BilltypeVO.PK_BILLTYPECODE, typeCode); | ||||
|             // String code = MyHelper.transferField(StordocVO.getDefaultTableName(), | ||||
|             //         StordocVO.CODE, StordocVO.PK_STORDOC, ""); | ||||
|             // 其它入库单的仓库、交易类型取自【业务参数设置】的默认值 | ||||
|             GeneralInHeadVO head = inVO.getHead(); | ||||
|             // head.setCtrantypeid("0001A110000000001S1E"); | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue