有问题文章留言 看内容决定收费与免费
另外接收数据库质疑 勒索病毒数据恢复等项目。

基本档案中调价,采购收货时未生效是什么原因?

【问】基本档案中调价,采购收货时未生效是什么原因?
【适用版本】商业之星7 【模块】采购管理 【点击数】22
【知识编号】P2012032101016
【问题描述】基本档案中调价,采购收货时未生效是什么原因?

【答】 –1、首先需要检查是否是通过调价单来调整,如果不是,请采用调价单进行调价;
–2、如果通过调价单,则可能是机构价格表丢失,通过以下语句调整;
–商业之星7总部语句(执行语句前需先备份数据)
use hbposv7
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
–商业之星7分部语句(执行语句前需先备份数据)
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 

赞(0)
未经允许不得转载:思迅软件知识库 » 基本档案中调价,采购收货时未生效是什么原因?
分享到: 更多 (0)

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址