DELETE FROM t_cr_coderule WHERE FID = '/Z=ZPLSEREHX';
INSERT INTO t_cr_coderule(FID,FSPLITSIGN,FCTRLMODE,FEXAMPLE,FAPPMODE,FDISABLEDATE,FMASTERID,FSTATUS,FNUMBER,FRULETYPE,FEXAMPLELENGTH,FCREATETIME,FBIZOBJECTID,FENABLE,FMODIFIERID,FMODIFYTIME,FCREATORID,FDISABLERID) VALUES ('/Z=ZPLSEREHX','-','1',' ','2',NULL,'/Z=ZPLSEREHX','C','3V7MMUQ8LJXH','null',' ',{ts'2018-08-08  00:00:00'},'ar_baddebtlossbill','1',13466739,{ts'2024-01-19  00:00:00'},1,0);

DELETE FROM t_cr_coderuleentry WHERE FENTRYID = '3V7MPIFUCY4G';
INSERT INTO t_cr_coderuleentry(FID,FINITIAL,FATTRIBUTETYPE,FSPLITSIGN,FISSORTITEM,FENTRYID,FSTEP,FCUTSTYLE,FATTUSINGMODE,FSEQ,FLENGTH,FISVISABLE,FFORMAT,FSETTINGVALUE,FADDSTYLE,FVALUEATRIBUTE,FISSPLITSIGN,FADDCHAR) VALUES ('/Z=ZPLSEREHX',1,'1',' ','0','3V7MPIFUCY4G',1,'1',' ',0,8,'1','LS',' ','1',' ','0',' ');
DELETE FROM t_cr_coderuleentry WHERE FENTRYID = '3V7MPIFUCY4H';
INSERT INTO t_cr_coderuleentry(FID,FINITIAL,FATTRIBUTETYPE,FSPLITSIGN,FISSORTITEM,FENTRYID,FSTEP,FCUTSTYLE,FATTUSINGMODE,FSEQ,FLENGTH,FISVISABLE,FFORMAT,FSETTINGVALUE,FADDSTYLE,FVALUEATRIBUTE,FISSPLITSIGN,FADDCHAR) VALUES ('/Z=ZPLSEREHX',1,'2','-','0','3V7MPIFUCY4H',1,'1','1',1,8,'1','yyMMdd',' ','1','bizdate','1',' ');
DELETE FROM t_cr_coderuleentry WHERE FENTRYID = '3V7MPIFUCY4I';
INSERT INTO t_cr_coderuleentry(FID,FINITIAL,FATTRIBUTETYPE,FSPLITSIGN,FISSORTITEM,FENTRYID,FSTEP,FCUTSTYLE,FATTUSINGMODE,FSEQ,FLENGTH,FISVISABLE,FFORMAT,FSETTINGVALUE,FADDSTYLE,FVALUEATRIBUTE,FISSPLITSIGN,FADDCHAR) VALUES ('/Z=ZPLSEREHX',1,'16','-','0','3V7MPIFUCY4I',1,'1','1',2,6,'1',' ',' ','1',' ','1',' ');


DELETE FROM t_cr_coderule_l WHERE FPKID = '/Z=ZPLSID2T=';
INSERT INTO t_cr_coderule_l(FID,FPKID,FLOCALEID,FNAME) VALUES ('/Z=ZPLSEREHX','/Z=ZPLSID2T=','zh_CN','坏账损失单');
DELETE FROM t_cr_coderule_l WHERE FPKID = '/Z=ZPLSID2T9';
INSERT INTO t_cr_coderule_l(FID,FPKID,FLOCALEID,FNAME) VALUES ('/Z=ZPLSEREHX','/Z=ZPLSID2T9','zh_TW','壞賬損失單');