【问题描述】
采购订单下查外购入库单或者点击关联信息,外购入库单序时簿界面显示空白行,但能双击打开单据。
【问题解析】
打开外购入库单序时簿过滤界面,表格设置中勾选上【商品品牌】【商品类别】点击确认后,此时同样是显示空白行,说明关联关系表丢失了这两个字段或其中一个。
【解决方案】
需要在数据库执行以下语句,将关联关系表ICTableRelation丢失的记录补录。
if not exists(select 1 from ICTableRelation where FTypeID=58 and FInterID=564 and FFieldName=’FComBrandID’)
insert into ICTableRelation (FTypeID,FInterID,FTableName,FTableNameAlias,FFieldName,FTableName11,FTableNameAlias11,FFieldName11,FLogic,FBillID,FFieldID,FMode,FIndex,FCondition,FLeftParentheses,FRightParentheses,FLogicOperator,FISConst,FConstType,FSubFilter) values (58,564,’ICStockBillEntry’,’u1′,’FComBrandID’,’t_Item’,’t1032′,’FItemID’,’*=’,”,”,0,0,”,”,”,’=’,0,0,”)
if not exists(select 1 from ICTableRelation where FTypeID=58 and FInterID=563 and FFieldName=’FComCategoryID’)
insert into ICTableRelation(FTypeID,FInterID,FTableName,FTableNameAlias,FFieldName,FTableName11,FTableNameAlias11,FFieldName11,FLogic,FBillID,FFieldID,FMode,FIndex,FCondition,FLeftParentheses,FRightParentheses,FLogicOperator,FISConst,FConstType,FSubFilter) values (58,563,’ICStockBillEntry’,’u1′,’FComCategoryID’,’t_Item’,’t1031′,’FItemID’,’*=’,”,”,0,0,”,”,”,’=’,0,0,”)
【注意事项】
正式账套执行脚本前请先做好备份,建议待在测试账套中核实无误后再在正式账套中执行。