【问】无法查询库存? | ||
【适用版本】商业之星7 | 【模块】基本档案 | 【点击数】41 |
【知识编号】P2013103000023 | ||
【问题描述】商品在库存查询中不显示,商品档案中货位库存显示为9个,出入库明细中也可查到相关记录。 |
go
insert into t_pc_branch_price (branch_no,item_no,supcust_no,sale_way,price,
base_price,sale_price,vip_price,sup_ly_rate,branch_price,branch_sale,com_flag,item_stock,base_price1,base_price2,base_price3,base_price4)
Select b.branch_no,item_no,main_supcust,item_sup_flag,(case b.trade_type when ‘2’ then a.trans_price else a.price end),
base_price,sale_price,vip_price,sup_ly_rate,branch_price,’1′,’0′,item_stock,base_price1,base_price2,base_price3,base_price4
From t_bd_item_info a,t_bd_branch_info b
Where b.property in (‘0′,’1’)
And b.branch_no+item_no not in (select c.branch_no+c.item_no from t_pc_branch_price c
where c.branch_no=b.branch_no and c.item_no = a.item_no)
go
–V7分部
use hbposv7_branch
go
insert into t_pc_branch_price (branch_no,item_no,supcust_no,sale_way,price,
base_price,sale_price,vip_price,sup_ly_rate,branch_price,branch_sale,com_flag,item_stock,base_price1,base_price2,base_price3,base_price4)
Select b.branch_no,item_no,main_supcust,item_sup_flag,(case b.trade_type when ‘2’ then a.trans_price else a.price end),
base_price,sale_price,vip_price,sup_ly_rate,branch_price,’1′,’0′,item_stock,base_price1,base_price2,base_price3,base_price4
From t_bd_item_info a,t_bd_branch_info b
Where b.property= ‘1’
And b.branch_no+item_no not in (select c.branch_no+c.item_no from t_pc_branch_price c
where c.branch_no=b.branch_no and c.item_no = a.item_no)
go