DELETE FROM T_CR_CODERULE WHERE FID = '3=338C97KW+N';
INSERT INTO T_CR_CODERULE(FEXAMPLE,FAPPMODE,FISADDVIEW,FISAPPCONDITION,FMASTERID,FISUNIQUE,FRULETYPE,FISMODIFIABLE,FCREATETIME,FBIZOBJECTID,FENABLE,FISUPDATERECOVER,FISAPPORG,FISSERIALNUMBER,FDISABLERID,FISCHECKCODE,FID,FSPLITSIGN,FCTRLMODE,FDISABLEDATE,FISLOG,FSTATUS,FNUMBER,FEXAMPLELENGTH,FISFAST,FMODIFIERID,FISNONBREAK,FMODIFYTIME,FCREATORID) VALUES (' ','2','1','0','3=338C97KW+N','0',NULL,'0',{ts'2023-05-16  00:00:00'},'fcs_billdimbalance','1','0','0','1',NULL,'0','3=338C97KW+N','-','1',NULL,'0','C','3=3364ME/C30',' ','1',1449891501814663168,'0',{ts'2023-05-16  00:00:00'},0); 

DELETE FROM T_CR_CODERULE_L WHERE FPKID = '3=338C97L+PF';
INSERT INTO T_CR_CODERULE_L(FID,FPKID,FLOCALEID,FNAME) VALUES ('3=338C97KW+N','3=338C97L+PF','zh_CN','单据余额维度设置'); 

DELETE FROM T_CR_CODERULEENTRY WHERE FENTRYID = '3=338C=8GF3=';
INSERT INTO T_CR_CODERULEENTRY(FID,FINITIAL,FATTRIBUTETYPE,FSPLITSIGN,FISSORTITEM,FENTRYID,FSTEP,FCUTSTYLE,FATTUSINGMODE,FSEQ,FLENGTH,FISVISABLE,FFORMAT,FSETTINGVALUE,FADDSTYLE,FVALUEATRIBUTE,FISSPLITSIGN,FADDCHAR) VALUES ('3=338C97KW+N',1,'1',' ','0','3=338C=8GF3=',1,'1','1',0,8,'1','BDB',' ','1',' ','0',' '); 
DELETE FROM T_CR_CODERULEENTRY WHERE FENTRYID = '3=338C=8GF3A';
INSERT INTO T_CR_CODERULEENTRY(FID,FINITIAL,FATTRIBUTETYPE,FSPLITSIGN,FISSORTITEM,FENTRYID,FSTEP,FCUTSTYLE,FATTUSINGMODE,FSEQ,FLENGTH,FISVISABLE,FFORMAT,FSETTINGVALUE,FADDSTYLE,FVALUEATRIBUTE,FISSPLITSIGN,FADDCHAR) VALUES ('3=338C97KW+N',1,'16','-','0','3=338C=8GF3A',1,'1',' ',1,8,'1',' ',' ','1',' ','1',' '); 