- 博客(9)
- 收藏
- 关注
原创 云星空供应商联系人导入&重新导入
T_BD_COMMONCONTACT --供应商(客户)联系人T_BD_SUPPLIERCONTACT --供应商联系人delete from T_BD_COMMONCONTACT WHERE FCOMPANY=206227delete from T_BD_SUPPLIERCONTACT WHERE FSUPPLIERID=206227 删除指定供应商联系人数据。按照导入模板引出 再导入进去即可。联系ddelete from T_BD_COMMONCONTACT WHERE FCOMPAN
2022-05-06 13:30:37 456
原创 云星空-用户最后登录时间
select fname 用户,fdatetime 最后登录时间,DATEDIFF(DD,fdatetime,GETDATE()) 未登录天数 from (select b.FNAME ,MAX(a.FDATETIME) as FDATETIMEfrom t_SEC_UserLoginSituation aright join T_SEC_USER b on a.FUSERID=b.FUSERIDwhere b.FFORBIDSTATUS='A' and b.FAPPGROUP!='' --an
2022-02-24 18:46:12 190
原创 根据客户科目余额+库存金额比对信用额度
SELECT A.客户代码,A.客户名称,A.数量,A.参考金额,B.余额 AS 期末本位币金额,A.参考金额+B.余额 as 存货科目合计,A.信用额度 FROM (SELECT 客户代码,客户名称,信用额度,SUM(数量) AS 数量,SUM(参考金额) AS 参考金额 from(SELECT T4.FNumber 客户代码,T4.F_102 信用额度,T4.FName 客户名称,T1.FQty 数量,T1.FQty * T5.FConsignPrice AS 参考金额,T2.FNumber...
2021-09-15 15:25:37 154
原创 WISE根据及时库存核对应仓库对应客户的库存金额(以销售出库金额为单价依据)
SELECT T4.FNumber 客户代码,T4.F_102 信用额度,T4.FName 客户名称,T1.FQty 数量,T1.FQty * T5.FConsignPrice AS 参考金额,T2.FNumber 物料号,T3.FNumber 仓库代码,T3.FName 仓库名称FROM ICInventory T1 join t_ICItem T2 on T1.FItemID=T2.FItemID AND T1.FQty>0join t_Stock T3 ON T1.FStockID...
2021-09-15 15:24:26 144
转载 金蝶wise获取所有客户的科目余额
selectk3.FNumber 客户代码,SUM(k.FEndBalance) 余额from(select r.FAccountID,r.FDetailID,SUM(FEndBalance) as FEndBalancefrom (select u1.FAccountID,u1.FDetailID,u1.FEndBalance*t1.FDC as FEndBalancefrom t_Balance u1 inner join t_Account t1 on u1.FAccountID=t1...
2021-09-15 15:19:51 275
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人