K3应收应付结账检查处理代码
2010-10-25 15:50
295 查看
查科目IT内码
select * from t_account
where fname like '%客户%'
单据科目与凭证科目不一致
SELECT *
FROM t_RP_ARPBill
WHERE (FNumber LIKE 'QTYs%')
修改FAcountID
收款单列表
select * from t_RP_NewReceiveBill
where fnumber like '%237'
与凭证不一致的查询代码
select t1.FDate, t1.FNumber as FBillNO,
case when t1.FType = 1 then '其他应收单' when t1.FType = 2 then '其他应付单'
when t1.FType = 3 then '销售发票' when t1.FType = 4 then '采购发票'
when (t1.FType = 5 and t1.FPre =0) then '收款单' when (t1.FType = 6 and t1.FPre =0) then '付款单'
when (t1.FType = 5 and t1.FPre =1) then '预收单' when (t1.FType = 6 and t1.FPre =1) then '预付单'
when (t1.FType = 5 and t1.FPre =-1) then '应收退款单' when (t1.FType = 6 and t1.FPre =-1) then '应付退款单'
when t1.FType = 8 then '坏账' when t1.FType = 9 then '转账单据'
else '单据' end as FType,
t1.fid,t2.Fvoucherid, '单据期间与对应凭证不一致' as FErrInfo
from t_rp_contact t1,t_voucher t2
Where t1.FVoucherID = t2.FVoucherID And (t1.FPeriod <> t2.FPeriod or t1.FYear <> t2.FYear )
and t1.FIsinit = 0 and t1.FYear = 2010 and t1.Fperiod = 9 and t1.FRp = 0
修改未审核单据的期间。
update v1
set fperiod=10
from t_RP_Contact v1
inner join t_Currency t10 on (v1.FCurrencyID = t10.FcurrencyID)
where ( v1.FStatus & 1 )=0
and ( v1.FStatus & 16 )=0
and v1.FRP=0
and v1.FYear=2010 and FPeriod=9
select * from t_account
where fname like '%客户%'
单据科目与凭证科目不一致
SELECT *
FROM t_RP_ARPBill
WHERE (FNumber LIKE 'QTYs%')
修改FAcountID
收款单列表
select * from t_RP_NewReceiveBill
where fnumber like '%237'
与凭证不一致的查询代码
select t1.FDate, t1.FNumber as FBillNO,
case when t1.FType = 1 then '其他应收单' when t1.FType = 2 then '其他应付单'
when t1.FType = 3 then '销售发票' when t1.FType = 4 then '采购发票'
when (t1.FType = 5 and t1.FPre =0) then '收款单' when (t1.FType = 6 and t1.FPre =0) then '付款单'
when (t1.FType = 5 and t1.FPre =1) then '预收单' when (t1.FType = 6 and t1.FPre =1) then '预付单'
when (t1.FType = 5 and t1.FPre =-1) then '应收退款单' when (t1.FType = 6 and t1.FPre =-1) then '应付退款单'
when t1.FType = 8 then '坏账' when t1.FType = 9 then '转账单据'
else '单据' end as FType,
t1.fid,t2.Fvoucherid, '单据期间与对应凭证不一致' as FErrInfo
from t_rp_contact t1,t_voucher t2
Where t1.FVoucherID = t2.FVoucherID And (t1.FPeriod <> t2.FPeriod or t1.FYear <> t2.FYear )
and t1.FIsinit = 0 and t1.FYear = 2010 and t1.Fperiod = 9 and t1.FRp = 0
修改未审核单据的期间。
update v1
set fperiod=10
from t_RP_Contact v1
inner join t_Currency t10 on (v1.FCurrencyID = t10.FcurrencyID)
where ( v1.FStatus & 1 )=0
and ( v1.FStatus & 16 )=0
and v1.FRP=0
and v1.FYear=2010 and FPeriod=9
相关文章推荐
- K3 erp应收应付结账时提示“单据重复”的处理
- 第28-31章项目5-编程处理c++源代码(二、检查代码)
- 应付账款价差处理:跨月结账
- 金蝶K3 10.3sp1应收款管理反结账代码
- 处理用户输入的危险代码
- 第七周编程题-GPS数据处理(看了很多别人的代码,0分)
- 如何处理遗留代码
- Java优雅代码--String容错处理 NullPointerException
- Sublime Text下配置SublimeLinter进行PHP代码检查
- 秘笈-如何处理 SQL Server 安装过程中的 COM+ 检查失败问题
- 在 Eclipse 中使用 JSHint 检查 JavaScript 代码
- 通过G代码演示逐行读取的字符串处理
- 开源社区里利用JTS库进行空间处理的代码参考
- 原文翻译:绕过Windows RT的代码完整性检查
- java 重新抛出异常 相关处理结果示例代码
- 使用代码处理页面中不可预知的错误
- servlet处理jreport典型代码
- SQL Server在存储过程中编写事务处理代码的三种方法
- 部分编译代码 及对手机的处理方法