前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >思迅软件部分商品查不到库存

思迅软件部分商品查不到库存

作者头像
学派客
发布2023-04-07 17:44:41
5260
发布2023-04-07 17:44:41
举报
文章被收录于专栏:学派客学派客

部分商品查询不到库存

如商品条码:6926433490000 有出入库明细,商品汇总库存没

【问题答案】 问题处理有两种方法, 第一种做调价单

第二种,执行下面的语句

代码语言:javascript
复制
导致问题的主要原因在,价格表数据丢失
use hbposv8
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
本文参与 腾讯云自媒体同步曝光计划,分享自作者个人站点/博客。
原始发表:2020-03-31,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体同步曝光计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档