|
|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。如果您注册时有任何问题请联系客服QQ: 83569622 。
您需要 登录 才可以下载或查看,没有帐号?注册
x
PUR(采购交期超期报警)
采购[%TD001%]-[%TD002%]-[%TD003%]已超期,请采购跟进或变更交期!
select TD001,TD002,TD003 from $$PURTD
where TD016='N' and TD018='Y' and
TD012<CONVERT(CHAR(8),GETDATE(),112)
PURI07
TC001='%TD001%' and TC002='%TD002%'
COP(订单出货日期超期)
销售订单[%TD001%]-[%TD002%]-[%TD003%]已超期,请业务跟进或变更交期!
select TD001,TD002,TD003 from $$COPTD
where TD016='N' and TD021='Y' and
TD013<CONVERT(CHAR(8),GETDATE(),112)
COPI06
TC001='%TD001%' and TC002='%TD002%'
MOC(工单完工日期超期)
工单[%TA001%]-[%TA002%]产品品号[%TA006%]已超期未完成,请生管跟进或变更完工日期!
select TA001,TA002,TA006,TA010, from $$MOCTA
where TA013='Y' and TA011<>'Y' and TA011<>’y’ and
TA010<CONVERT(CHAR(8),GETDATE(),112)
COPI06
TA001='%TA001%' and TA002='%TA002%'
BOM<>’S’ OR ‘P’(BOM主键属必错误报警)
BOM主键[%MC001%]属性不正确,将导致系统错误码率,请进行处理!
Select MB001,MB025,MB002,MC001 from $$INVMB,$$BOMMC
where MC001=MB001 and MB025<>'M' AND MB025<>'S' GROUP BY MB001,MB025,MB002,MC001
INVI15
'MB001='%MC001%'
换个写法会更好:
SELECT DISTINCT MC001,MB002,MB025
FROM BOMMC
LEFT JOIN INVMB ON MC001=MB001
WHERE MB025<>'M' AND MB025<>'S'
INV(自制件工时底数为空时报警)
品号[%MB001%]-[%MB002%]工时底数不正确请修正!
select MB001,MB002,MB096 from $$INVMB
where MB096<>’’
INVI15
MB001='%MB001%' and MB002='%MB002%'
INV(单为成本为负数时报警)
品号[%MB001%]-[%MB002%]单位成成不正确请注意!
select MB001,MB002,MB065 from $$INVMB
where MB065<0
INVI15
MB001='%MB001%' and MB002='%MB002%'
|
|