【问】供应商转换经营方式的步骤,无法转换供应商 | ||
【适用版本】商锐9 | 【模块】档案管理 | 【点击数】350 |
【知识编号】P2015122600010 | ||
【问题描述】供应商转换经营方式的步骤,无法转换供应商 |
可以将如下的 10610 替换成对应的供应商编号,再一步步执行查询
–供应商转经营方式的判断语句
use hbposev95_zb
go
drop table aa,stock –如更换对应供应商编号时,需要先执行这语句
select * into aa from t_bd_item_info where main_supcust=’10610′
select main_supcust,* from aa
go情况c、还有账款没有结清。
select paid_sheetno,Other3,* from t_fm_recpay_flow where branch_no like ‘%’ and supcust_no = ‘10610’
and settle_flag <> ‘1’ and (should_amt <> 0 or should_amt2 <> 0)
go
–paid_sheetno 供应商付款单单号 ,Other3 供应商对账单单号,如是空的,就要做对应的单据
情况d:代销、联营、租赁、扣率代销、如果没有账款 就会取查t_im_flow有没数据,如果有就是没结清。
select * from t_im_flow where branch_no like ‘%’ and supcust_no = ‘10610’ and oper_date >
isnull((select fm_e_date from t_bd_supcust_info where supcust_no = ‘10610’),’1900-01-01′)
and sale_way = ‘C’;
go