解决方案: |
自定义预警语句供参考:目的,当自定义项6减3天等于系统日期时,给予提示。 select csbvcode as '发票号',ccuscode as '客户名称',cdepcode as '部门编码', cast(year(ddate)as varchar)+'-'+cast(month(ddate) as varchar)+'-'+cast(day(ddate) as varchar) as '单据日期', cast(year(cdefine6)as varchar)+'-'+cast(month(cdefine6) as varchar)+'-'+cast(day(cdefine6) as varchar) as '收款日期', DATEADD(day,-3,cdefine6) as '预警日期' from salebillvouch where DATEADD(day,-3,cdefine6)=(select convert(char(10),getdate(),120) as yourdate)
设置方法:1.预警设置---自定义预警源--增加。2.预警源名称和描述自行设置,把语句拷入。选中帐套及年度,进行测试及保存。3.在预警设置--添加,名称自行输入,预警源选择‘自定义预警源’中自定义的名称。4.设置好预警时间及通知对象。
|