DELETE FROM t_tpo_template WHERE FID = 1592672505527874560;
INSERT INTO t_tpo_template(FID,FTYPE,FCONDITIONJSON,FFILTERCONDITION,FMODELID,FSTARTDATE,FCONTENT,FCONTENT_TAG,FDESCRIPTION,FMASTERID,FSTATUS,FNUMBER,FNAME,FCREATETIME,FGENERAL,FMODIFIERID,FENABLE,FMODIFYTIME,FENDDATE,FCREATORID) VALUES (1592672505527874560,'rdesd_yhmx',' ',' ',1532683517396254720,{ts'2021-01-01  00:00:00'},' ',' ',' ',0,'A','RND-YHMXB001','研发加计优惠明细表',{ts'2023-01-07  00:00:00'},'0',1625975782134637568,'1',{ts'2023-04-03  00:00:00'},NULL,1218859847446022144);

DELETE FROM t_tpo_col_member WHERE FID = 1651340298300717056;
INSERT INTO t_tpo_col_member(FID,FDATATYPE,FDIMENSION,FMASTERID,FSTATUS,FPARENTID,FNUMBER,FNAME,FCREATETIME,FMODIFIERID,FENABLE,FISLEAF,FMINLENGTH,FMODEL,FREMARK,FMODIFYTIME,FMAXLENGTH,FFORMAT,FLEVEL,FSYSPRESET,FCREATORID,FLONGNUMBER) VALUES (1651340298300717056,' ',1477594945425507328,1651340298300717056,'C',1592829509718199296,'yhmxb_jczl','基础资料公共金额列',{ts'2023-03-29  00:00:00'},1625975782134637568,'1','1',0,1532683517396254720,' ',{ts'2023-03-29  00:00:00'},0,' ',3,'0',1625975782134637568,'yfjjkc.yhmxb.yhmxb_jczl');

DELETE FROM t_tpo_col_member_l WHERE FPKID = '35UDUHJXJQBA';
INSERT INTO t_tpo_col_member_l(FID,FPKID,FLOCALEID,FREMARK,FFULLNAME,FNAME) VALUES (1651340298300717056,'35UDUHJXJQBA','zh_CN',' ','研发加计扣除.优惠明细表.基础资料公共金额列','基础资料公共金额列');
DELETE FROM t_tpo_col_member_l WHERE FPKID = '35UDUHJXJQBB';
INSERT INTO t_tpo_col_member_l(FID,FPKID,FLOCALEID,FREMARK,FFULLNAME,FNAME) VALUES (1651340298300717056,'35UDUHJXJQBB','zh_TW',' ',' ','基礎資料公共金額列');

DELETE FROM t_tpo_row_member WHERE FID = 1650779028887590912;
INSERT INTO t_tpo_row_member(FID,FDIMENSION,FMASTERID,FSTATUS,FPARENTID,FNUMBER,FNAME,FCREATETIME,FMODIFIERID,FENABLE,FISLEAF,FMODEL,FREMARK,FMODIFYTIME,FLEVEL,FSYSPRESET,FCREATORID,FLONGNUMBER) VALUES (1650779028887590912,1477594605435224064,1650779028887590912,'C',1592664121256662016,'yhmxb_qzqsjdxgfyjjkc','其中：前三季度相关费用加计扣除',{ts'2023-03-28  00:00:00'},1625975782134637568,'1','1',1532683517396254720,' ',{ts'2023-03-28  00:00:00'},3,'0',1625975782134637568,'yfjjkc.yhmxb.yhmxb_qzqsjdxgfyjjkc');
DELETE FROM t_tpo_row_member WHERE FID = 1650776172843390976;
INSERT INTO t_tpo_row_member(FID,FDIMENSION,FMASTERID,FSTATUS,FPARENTID,FNUMBER,FNAME,FCREATETIME,FMODIFIERID,FENABLE,FISLEAF,FMODEL,FREMARK,FMODIFYTIME,FLEVEL,FSYSPRESET,FCREATORID,FLONGNUMBER) VALUES (1650776172843390976,1477594605435224064,1650776172843390976,'C',1592664121256662016,'yhmxb_bnyxjjkcdyffyze','本年允许加计扣除的研发费用总额（47-48-49）',{ts'2023-03-28  00:00:00'},1625975782134637568,'1','1',1532683517396254720,' ',{ts'2023-03-28  00:00:00'},3,'0',1625975782134637568,'yfjjkc.yhmxb.yhmxb_bnyxjjkcdyffyze');
DELETE FROM t_tpo_row_member WHERE FID = 1650777547392433152;
INSERT INTO t_tpo_row_member(FID,FDIMENSION,FMASTERID,FSTATUS,FPARENTID,FNUMBER,FNAME,FCREATETIME,FMODIFIERID,FENABLE,FISLEAF,FMODEL,FREMARK,FMODIFYTIME,FLEVEL,FSYSPRESET,FCREATORID,FLONGNUMBER) VALUES (1650777547392433152,1477594605435224064,1650777547392433152,'C',1592664121256662016,'yhmxb_qzqsjdyxjjkcdyffyje','其中：前三季度允许加计扣除的研发费用金额（L1-L1.1）',{ts'2023-03-28  00:00:00'},1625975782134637568,'1','1',1532683517396254720,' ',{ts'2023-03-28  00:00:00'},3,'0',1625975782134637568,'yfjjkc.yhmxb.yhmxb_qzqsjdyxjjkcdyffyje');
DELETE FROM t_tpo_row_member WHERE FID = 1650776661781796864;
INSERT INTO t_tpo_row_member(FID,FDIMENSION,FMASTERID,FSTATUS,FPARENTID,FNUMBER,FNAME,FCREATETIME,FMODIFIERID,FENABLE,FISLEAF,FMODEL,FREMARK,FMODIFYTIME,FLEVEL,FSYSPRESET,FCREATORID,FLONGNUMBER) VALUES (1650776661781796864,1477594605435224064,1650776661781796864,'C',1592664121256662016,'yhmxb_qzdsjdyxjjkcdyffyje','其中：第四季度允许加计扣除的研发费用金额',{ts'2023-03-28  00:00:00'},1625975782134637568,'1','1',1532683517396254720,' ',{ts'2023-03-28  00:00:00'},3,'0',1625975782134637568,'yfjjkc.yhmxb.yhmxb_qzdsjdyxjjkcdyffyje');
DELETE FROM t_tpo_row_member WHERE FID = 1650778716495952896;
INSERT INTO t_tpo_row_member(FID,FDIMENSION,FMASTERID,FSTATUS,FPARENTID,FNUMBER,FNAME,FCREATETIME,FMODIFIERID,FENABLE,FISLEAF,FMODEL,FREMARK,FMODIFYTIME,FLEVEL,FSYSPRESET,FCREATORID,FLONGNUMBER) VALUES (1650778716495952896,1477594605435224064,1650778716495952896,'C',1592664121256662016,'yhmxb_qzdsjdxgfyjjkc','其中：第四季度相关费用加计扣除',{ts'2023-03-28  00:00:00'},1625975782134637568,'1','1',1532683517396254720,' ',{ts'2023-03-28  00:00:00'},3,'0',1625975782134637568,'yfjjkc.yhmxb.yhmxb_qzdsjdxgfyjjkc');
DELETE FROM t_tpo_row_member WHERE FID = 1650775160959162368;
INSERT INTO t_tpo_row_member(FID,FDIMENSION,FMASTERID,FSTATUS,FPARENTID,FNUMBER,FNAME,FCREATETIME,FMODIFIERID,FENABLE,FISLEAF,FMODEL,FREMARK,FMODIFYTIME,FLEVEL,FSYSPRESET,FCREATORID,FLONGNUMBER) VALUES (1650775160959162368,1477594605435224064,1650775160959162368,'C',1592664121256662016,'yhmxb_jjkcbljff','八、加计扣除比例及计算方法',{ts'2023-03-28  00:00:00'},1625975782134637568,'1','1',1532683517396254720,' ',{ts'2023-03-28  00:00:00'},3,'0',1625975782134637568,'yfjjkc.yhmxb.yhmxb_jjkcbljff');

DELETE FROM t_tpo_row_member_l WHERE FPKID = '35RP8BWUBAW8';
INSERT INTO t_tpo_row_member_l(FID,FPKID,FLOCALEID,FREMARK,FFULLNAME,FNAME) VALUES (1650775160959162368,'35RP8BWUBAW8','zh_CN',' ','研发加计扣除.优惠明细表.八、加计扣除比例及计算方法','八、加计扣除比例及计算方法');
DELETE FROM t_tpo_row_member_l WHERE FPKID = '35RP8BWUBAW9';
INSERT INTO t_tpo_row_member_l(FID,FPKID,FLOCALEID,FREMARK,FFULLNAME,FNAME) VALUES (1650775160959162368,'35RP8BWUBAW9','zh_TW',' ',' ','八、加計扣除比例及計算方法');
DELETE FROM t_tpo_row_member_l WHERE FPKID = '35RPEQEG9OK/';
INSERT INTO t_tpo_row_member_l(FID,FPKID,FLOCALEID,FREMARK,FFULLNAME,FNAME) VALUES (1650776172843390976,'35RPEQEG9OK/','zh_CN',' ','研发加计扣除.优惠明细表.本年允许加计扣除的研发费用总额（47-48-49）','本年允许加计扣除的研发费用总额（47-48-49）');
DELETE FROM t_tpo_row_member_l WHERE FPKID = '35RPEQEG9OK0';
INSERT INTO t_tpo_row_member_l(FID,FPKID,FLOCALEID,FREMARK,FFULLNAME,FNAME) VALUES (1650776172843390976,'35RPEQEG9OK0','zh_TW',' ',' ','本年允許加計扣除的研發費用總額（47-48-49）');
DELETE FROM t_tpo_row_member_l WHERE FPKID = '35RPI=CM2SK9';
INSERT INTO t_tpo_row_member_l(FID,FPKID,FLOCALEID,FREMARK,FFULLNAME,FNAME) VALUES (1650776661781796864,'35RPI=CM2SK9','zh_CN',' ','研发加计扣除.优惠明细表.其中：第四季度允许加计扣除的研发费用金额','其中：第四季度允许加计扣除的研发费用金额');
DELETE FROM t_tpo_row_member_l WHERE FPKID = '35RPI=CM2SK=';
INSERT INTO t_tpo_row_member_l(FID,FPKID,FLOCALEID,FREMARK,FFULLNAME,FNAME) VALUES (1650776661781796864,'35RPI=CM2SK=','zh_TW',' ',' ','其中：第四季度允許加計扣除的研發費用金額');
DELETE FROM t_tpo_row_member_l WHERE FPKID = '35RPOR1=+5A8';
INSERT INTO t_tpo_row_member_l(FID,FPKID,FLOCALEID,FREMARK,FFULLNAME,FNAME) VALUES (1650777547392433152,'35RPOR1=+5A8','zh_CN',' ','研发加计扣除.优惠明细表.其中：前三季度允许加计扣除的研发费用金额（L1-L1.1）','其中：前三季度允许加计扣除的研发费用金额（L1-L1.1）');
DELETE FROM t_tpo_row_member_l WHERE FPKID = '35RPOR1=+5A9';
INSERT INTO t_tpo_row_member_l(FID,FPKID,FLOCALEID,FREMARK,FFULLNAME,FNAME) VALUES (1650777547392433152,'35RPOR1=+5A9','zh_TW',' ',' ','其中：前三季度允許加計扣除的研發費用金額（L1-L1.1）');
DELETE FROM t_tpo_row_member_l WHERE FPKID = '35RPX9=Z+RGH';
INSERT INTO t_tpo_row_member_l(FID,FPKID,FLOCALEID,FREMARK,FFULLNAME,FNAME) VALUES (1650778716495952896,'35RPX9=Z+RGH','zh_CN',' ','研发加计扣除.优惠明细表.其中：第四季度相关费用加计扣除','其中：第四季度相关费用加计扣除');
DELETE FROM t_tpo_row_member_l WHERE FPKID = '35RPX9A0M5O/';
INSERT INTO t_tpo_row_member_l(FID,FPKID,FLOCALEID,FREMARK,FFULLNAME,FNAME) VALUES (1650778716495952896,'35RPX9A0M5O/','zh_TW',' ',' ','其中：第四季度相關費用加計扣除');
DELETE FROM t_tpo_row_member_l WHERE FPKID = '35RPZJ2BEQPZ';
INSERT INTO t_tpo_row_member_l(FID,FPKID,FLOCALEID,FREMARK,FFULLNAME,FNAME) VALUES (1650779028887590912,'35RPZJ2BEQPZ','zh_CN',' ','研发加计扣除.优惠明细表.其中：前三季度相关费用加计扣除','其中：前三季度相关费用加计扣除');
DELETE FROM t_tpo_row_member_l WHERE FPKID = '35RPZJ2BEQQ+';
INSERT INTO t_tpo_row_member_l(FID,FPKID,FLOCALEID,FREMARK,FFULLNAME,FNAME) VALUES (1650779028887590912,'35RPZJ2BEQQ+','zh_TW',' ',' ','其中：前三季度相關費用加計扣除');

-- 研发加计 优惠明细表  报表项目
DELETE FROM t_tpo_report_item WHERE FID = 1650789009720498176;
INSERT INTO t_tpo_report_item(FID,FMODELID,FMASTERID,FSTATUS,FNUMBER,FNAME,FLONGNAME,FCREATETIME,FROWID,FMODIFIERID,FENABLE,FMODIFYTIME,FFCOLUMNID,FCREATORID) VALUES (1650789009720498176,1532683517396254720,0,'C','yhmxb_qzqsjdyxjjkcdyffyje#yhmxb_je','其中：前三季度允许加计扣除的研发费用金额（L1-L1.1）#金额','研发加计扣除.优惠明细表.其中：前三季度允许加计扣除的研发费用金额（L1-L1.1）#研发加计扣除.优惠明细表.金额',{ts'2023-03-28  00:00:00'},1650777547392433152,1625975782134637568,'1',{ts'2023-03-28  00:00:00'},1592829861846797312,1625975782134637568);
DELETE FROM t_tpo_report_item WHERE FID = 1650789009720498177;
INSERT INTO t_tpo_report_item(FID,FMODELID,FMASTERID,FSTATUS,FNUMBER,FNAME,FLONGNAME,FCREATETIME,FROWID,FMODIFIERID,FENABLE,FMODIFYTIME,FFCOLUMNID,FCREATORID) VALUES (1650789009720498177,1532683517396254720,0,'C','yhmxb_qzdsjdyxjjkcdyffyje#yhmxb_je','其中：第四季度允许加计扣除的研发费用金额#金额','研发加计扣除.优惠明细表.其中：第四季度允许加计扣除的研发费用金额#研发加计扣除.优惠明细表.金额',{ts'2023-03-28  00:00:00'},1650776661781796864,1625975782134637568,'1',{ts'2023-03-28  00:00:00'},1592829861846797312,1625975782134637568);
DELETE FROM t_tpo_report_item WHERE FID = 1650789009720498178;
INSERT INTO t_tpo_report_item(FID,FMODELID,FMASTERID,FSTATUS,FNUMBER,FNAME,FLONGNAME,FCREATETIME,FROWID,FMODIFIERID,FENABLE,FMODIFYTIME,FFCOLUMNID,FCREATORID) VALUES (1650789009720498178,1532683517396254720,0,'C','yhmxb_bnyxjjkcdyffyze#yhmxb_je','本年允许加计扣除的研发费用总额（47-48-49）#金额','研发加计扣除.优惠明细表.本年允许加计扣除的研发费用总额（47-48-49）#研发加计扣除.优惠明细表.金额',{ts'2023-03-28  00:00:00'},1650776172843390976,1625975782134637568,'1',{ts'2023-03-28  00:00:00'},1592829861846797312,1625975782134637568);
DELETE FROM t_tpo_report_item WHERE FID = 1650790235757500416;
INSERT INTO t_tpo_report_item(FID,FMODELID,FMASTERID,FSTATUS,FNUMBER,FNAME,FLONGNAME,FCREATETIME,FROWID,FMODIFIERID,FENABLE,FMODIFYTIME,FFCOLUMNID,FCREATORID) VALUES (1650790235757500416,1532683517396254720,0,'C','yhmxb_qzqsjdxgfyjjkc#yhmxb_je','其中：前三季度相关费用加计扣除#金额','研发加计扣除.优惠明细表.其中：前三季度相关费用加计扣除#研发加计扣除.优惠明细表.金额',{ts'2023-03-28  00:00:00'},1650779028887590912,1625975782134637568,'1',{ts'2023-03-28  00:00:00'},1592829861846797312,1625975782134637568);
DELETE FROM t_tpo_report_item WHERE FID = 1650790235757500417;
INSERT INTO t_tpo_report_item(FID,FMODELID,FMASTERID,FSTATUS,FNUMBER,FNAME,FLONGNAME,FCREATETIME,FROWID,FMODIFIERID,FENABLE,FMODIFYTIME,FFCOLUMNID,FCREATORID) VALUES (1650790235757500417,1532683517396254720,0,'C','yhmxb_qzdsjdxgfyjjkc#yhmxb_je','其中：第四季度相关费用加计扣除#金额','研发加计扣除.优惠明细表.其中：第四季度相关费用加计扣除#研发加计扣除.优惠明细表.金额',{ts'2023-03-28  00:00:00'},1650778716495952896,1625975782134637568,'1',{ts'2023-03-28  00:00:00'},1592829861846797312,1625975782134637568);
DELETE FROM t_tpo_report_item WHERE FID = 1651345141463545856;
INSERT INTO t_tpo_report_item(FID,FMODELID,FMASTERID,FSTATUS,FNUMBER,FNAME,FLONGNAME,FCREATETIME,FROWID,FMODIFIERID,FENABLE,FMODIFYTIME,FFCOLUMNID,FCREATORID) VALUES (1651345141463545856,1532683517396254720,0,'C','yhmxb_jjkcbljff#yhmxb_jczl','八、加计扣除比例及计算方法#基础资料公共金额列','研发加计扣除.优惠明细表.八、加计扣除比例及计算方法#研发加计扣除.优惠明细表.基础资料公共金额列',{ts'2023-03-29  00:00:00'},1650775160959162368,1625975782134637568,'1',{ts'2023-03-29  00:00:00'},1651340298300717056,1625975782134637568);

DELETE FROM t_tpo_report_item_l WHERE FPKID = '35RRU9JXQ01X';
INSERT INTO t_tpo_report_item_l(FID,FPKID,FLOCALEID,FNAME,FLONGNAME) VALUES (1650789009720498176,'35RRU9JXQ01X','zh_CN','其中：前三季度允许加计扣除的研发费用金额（L1-L1.1）#金额','研发加计扣除.优惠明细表.其中：前三季度允许加计扣除的研发费用金额（L1-L1.1）#研发加计扣除.优惠明细表.金额');
DELETE FROM t_tpo_report_item_l WHERE FPKID = '35RRU9JXQ01Y';
INSERT INTO t_tpo_report_item_l(FID,FPKID,FLOCALEID,FNAME,FLONGNAME) VALUES (1650789009720498177,'35RRU9JXQ01Y','zh_CN','其中：第四季度允许加计扣除的研发费用金额#金额','研发加计扣除.优惠明细表.其中：第四季度允许加计扣除的研发费用金额#研发加计扣除.优惠明细表.金额');
DELETE FROM t_tpo_report_item_l WHERE FPKID = '35RRU9JXQ01Z';
INSERT INTO t_tpo_report_item_l(FID,FPKID,FLOCALEID,FNAME,FLONGNAME) VALUES (1650789009720498178,'35RRU9JXQ01Z','zh_CN','本年允许加计扣除的研发费用总额（47-48-49）#金额','研发加计扣除.优惠明细表.本年允许加计扣除的研发费用总额（47-48-49）#研发加计扣除.优惠明细表.金额');
DELETE FROM t_tpo_report_item_l WHERE FPKID = '35RS17+P7ZV6';
INSERT INTO t_tpo_report_item_l(FID,FPKID,FLOCALEID,FNAME,FLONGNAME) VALUES (1650790235757500416,'35RS17+P7ZV6','zh_CN','其中：前三季度相关费用加计扣除#金额','研发加计扣除.优惠明细表.其中：前三季度相关费用加计扣除#研发加计扣除.优惠明细表.金额');
DELETE FROM t_tpo_report_item_l WHERE FPKID = '35RS17+P7ZV7';
INSERT INTO t_tpo_report_item_l(FID,FPKID,FLOCALEID,FNAME,FLONGNAME) VALUES (1650790235757500417,'35RS17+P7ZV7','zh_CN','其中：第四季度相关费用加计扣除#金额','研发加计扣除.优惠明细表.其中：第四季度相关费用加计扣除#研发加计扣除.优惠明细表.金额');
DELETE FROM t_tpo_report_item_l WHERE FPKID = '35UEQSYN7Z/O';
INSERT INTO t_tpo_report_item_l(FID,FPKID,FLOCALEID,FNAME,FLONGNAME) VALUES (1651345141463545856,'35UEQSYN7Z/O','zh_CN','八、加计扣除比例及计算方法#基础资料公共金额列','研发加计扣除.优惠明细表.八、加计扣除比例及计算方法#研发加计扣除.优惠明细表.基础资料公共金额列');

-- 研发加计 优惠明细表  取数公式
DELETE FROM t_tpo_rule_fetch WHERE FID = 1651549213471113216;
INSERT INTO t_tpo_rule_fetch(FID,FMODELID,FDATATYPE,FDESCRIPTION,FMASTERID,FSTATUS,FNUMBER,FNAME,FCREATETIME,FMODIFIERID,FENABLE,FMODIFYTIME,FFITTYPE,FFORMULA,FCREATORID) VALUES (1651549213471113216,1532683517396254720,'number',' ',1651549213471113216,'A','CN-BBXGZ-000000683','①如50选择为110，则=L1*100%
②如50选择为121、122，则=L1.2*75%',{ts'2023-04-15  00:00:00'},1625975782134637568,'1',{ts'2023-04-15  00:00:00'},'BBXGZ','if({Q[yhmxb_jjkcbljff#yhmxb_jczl]}==1642679715515127808,{Q[yhmxb_bnyxjjkcdyffyze#yhmxb_je]},  if({Q[yhmxb_jjkcbljff#yhmxb_jczl]}==1642679715515127810  || {Q[yhmxb_jjkcbljff#yhmxb_jczl]}==1642679715515127811,DataFormatUtils.decimalFormat({Q[yhmxb_qzqsjdyxjjkcdyffyje#yhmxb_je]}  *  {C[0.75]},"#.00"),0.00 )
 )',1625975782134637568);
DELETE FROM t_tpo_rule_fetch WHERE FID = 1651542535451279360;
INSERT INTO t_tpo_rule_fetch(FID,FMODELID,FDATATYPE,FDESCRIPTION,FMASTERID,FSTATUS,FNUMBER,FNAME,FCREATETIME,FMODIFIERID,FENABLE,FMODIFYTIME,FFITTYPE,FFORMULA,FCREATORID) VALUES (1651542535451279360,1532683517396254720,'number',' ',1651542535451279360,'A','CN-BBXGZ-000000682','{Q[其中：第四季度相关费用加计扣除#金额]}',{ts'2023-03-29  00:00:00'},1625975782134637568,'1',{ts'2023-03-29  00:00:00'},'BBXGZ','{Q[yhmxb_qzdsjdyxjjkcdyffyje#yhmxb_je]}',1625975782134637568);
DELETE FROM t_tpo_rule_fetch WHERE FID = 1642880798367559680;
INSERT INTO t_tpo_rule_fetch(FID,FMODELID,FDATATYPE,FDESCRIPTION,FMASTERID,FSTATUS,FNUMBER,FNAME,FCREATETIME,FMODIFIERID,FENABLE,FMODIFYTIME,FFITTYPE,FFORMULA,FCREATORID) VALUES (1642880798367559680,1532683517396254720,'text',' ',1642880798367559680,'A','CN-TYXGZ-000000020','{C[0]}',{ts'2023-03-17  00:00:00'},1641188736073268224,'1',{ts'2023-03-17  00:00:00'},'TYXGZ','{C[0]}',1641188736073268224);
DELETE FROM t_tpo_rule_fetch WHERE FID = 1651540518385073152;
INSERT INTO t_tpo_rule_fetch(FID,FMODELID,FDATATYPE,FDESCRIPTION,FMASTERID,FSTATUS,FNUMBER,FNAME,FCREATETIME,FMODIFIERID,FENABLE,FMODIFYTIME,FFITTYPE,FFORMULA,FCREATORID) VALUES (1651540518385073152,1532683517396254720,'number',' ',1651540518385073152,'A','CN-BBXGZ-000000681','①如50选择为110，则=L1(汇缴)-L1（预缴）
②如50选择为121，则=L1*计算比例
③如50选择为122，则=L1(汇缴)-L1（预缴）  ',{ts'2023-04-15  00:00:00'},1625975782134637568,'1',{ts'2023-04-15  00:00:00'},'BBXGZ',' if({P[version]}  ==  ''hsqj'' ,
 if({Q[yhmxb_jjkcbljff#yhmxb_jczl]}==1642679715515127808  || {Q[yhmxb_jjkcbljff#yhmxb_jczl]}==1642679715515127811,
 if({P[yjsbbId]}  == ''0'', {Q[yhmxb_bnyxjjkcdyffyze#yhmxb_je]} ,{Q[yhmxb_bnyxjjkcdyffyze#yhmxb_je]} - {M[select value from tpo_declare_detail_tsd where entryid=''#yjsbbId'' and cellnumber=''yhmxb_bnyxjjkcdyffyze#yhmxb_je'']} ),if({Q[yhmxb_jjkcbljff#yhmxb_jczl]}==1642679715515127810,DataFormatUtils.decimalFormat({Q[yhmxb_bnyxjjkcdyffyze#yhmxb_je]}  * {P[calculationRatio]} ,"#.00") ,0.00) ),0.00
  ) ',1625975782134637568);
DELETE FROM t_tpo_rule_fetch WHERE FID = 1594265112980808704;
INSERT INTO t_tpo_rule_fetch(FID,FMODELID,FDATATYPE,FDESCRIPTION,FMASTERID,FSTATUS,FNUMBER,FNAME,FCREATETIME,FMODIFIERID,FENABLE,FMODIFYTIME,FFITTYPE,FFORMULA,FCREATORID) VALUES (1594265112980808704,1532683517396254720,'number',' ',1594265112980808704,'A','CN-BBXGZ-000000583','汇缴计算逻辑 ①如50选择为110，则=L1*100%
②如50选择为121、122，则=L1.1*100%+L1.2*75%
预缴计算逻辑：=L1*50  ,  ) ',{ts'2023-04-15  00:00:00'},1625975782134637568,'1',{ts'2023-04-15  00:00:00'},'BBXGZ',' if({P[version]}  ==  ''dsyj'', DataFormatUtils.decimalFormat({Q[yhmxb_bnyxjjkcdyffyze#yhmxb_je]}* {Q[yhmxb_jjkcbl#yhmxb_je]} * {C[0.01]},"#.00") ,
	if( {P[version]}  ==  ''hsqj'',
		if( {Q[yhmxb_jjkcbljff#yhmxb_jczl]}==1642679715515127808,{Q[yhmxb_bnyxjjkcdyffyze#yhmxb_je]} ,
			if({Q[yhmxb_jjkcbljff#yhmxb_jczl]}==1642679715515127810  || {Q[yhmxb_jjkcbljff#yhmxb_jczl]}==1642679715515127811 , {Q[yhmxb_qzdsjdyxjjkcdyffyje#yhmxb_je]} + DataFormatUtils.decimalFormat({Q[yhmxb_qzqsjdyxjjkcdyffyje#yhmxb_je]}  *  {C[0.75]},"#.00") , 0.00
			)
		)
	,0.00)
) ',1625975782134637568);
DELETE FROM t_tpo_rule_fetch WHERE FID = 1652937101593004032;
INSERT INTO t_tpo_rule_fetch(FID,FMODELID,FDATATYPE,FDESCRIPTION,FMASTERID,FSTATUS,FNUMBER,FNAME,FCREATETIME,FMODIFIERID,FENABLE,FMODIFYTIME,FFITTYPE,FFORMULA,FCREATORID) VALUES (1652937101593004032,1532683517396254720,'number',' ',1652937101593004032,'A','CN-BBXGZ-000000685','L1-L1.1 ',{ts'2023-04-04  00:00:00'},1625975782134637568,'1',{ts'2023-04-04  00:00:00'},'BBXGZ','{Q[yhmxb_bnyxjjkcdyffyze#yhmxb_je]}  - {Q[yhmxb_qzdsjdyxjjkcdyffyje#yhmxb_je]}',1625975782134637568);
DELETE FROM t_tpo_rule_fetch WHERE FID = 1650823988018042880;
INSERT INTO t_tpo_rule_fetch(FID,FMODELID,FDATATYPE,FDESCRIPTION,FMASTERID,FSTATUS,FNUMBER,FNAME,FCREATETIME,FMODIFIERID,FENABLE,FMODIFYTIME,FFITTYPE,FFORMULA,FCREATORID) VALUES (1650823988018042880,1532683517396254720,'number',' ',1650823988018042880,'A','CN-BBXGZ-000000678','{Q[七、允许扣除的研发费用抵减特殊收入后的金额(45-46)]} - {Q[减：当年销售研发活动直接形成产品（包括组成部分）对应的材料部分]} - {Q[减：以前年度销售研发活动直接形成产品（包括组成部分）对应材料部分结转金额]}',{ts'2023-03-28  00:00:00'},1625975782134637568,'1',{ts'2023-03-28  00:00:00'},'BBXGZ','{Q[yhmxb_yxkcdyffydjtssrhdje#yhmxb_je]} - {Q[yhmxb_jdnxsyfhdzjxccp#yhmxb_je]} - {Q[yhmxb_jyqndxsyfhdzjxccp#yhmxb_je]}',1625975782134637568);

DELETE FROM t_tpo_rule_fetch_l WHERE FPKID = '3+TZKLFVXCGR';
INSERT INTO t_tpo_rule_fetch_l(FID,FPKID,FLOCALEID,FNAME) VALUES (1594265112980808704,'3+TZKLFVXCGR','zh_CN','汇缴计算逻辑 ①如50选择为110，则=L1*100%
②如50选择为121、122，则=L1.1*100%+L1.2*75%
预缴计算逻辑：=L1*50  ,  ) ');
DELETE FROM t_tpo_rule_fetch_l WHERE FPKID = '34SW79INCRN5';
INSERT INTO t_tpo_rule_fetch_l(FID,FPKID,FLOCALEID,FNAME) VALUES (1642880798367559680,'34SW79INCRN5','zh_CN','{C[0]}');
DELETE FROM t_tpo_rule_fetch_l WHERE FPKID = '35RYC54COUFN';
INSERT INTO t_tpo_rule_fetch_l(FID,FPKID,FLOCALEID,FNAME) VALUES (1650823988018042880,'35RYC54COUFN','zh_CN','{Q[七、允许扣除的研发费用抵减特殊收入后的金额(45-46)]} - {Q[减：当年销售研发活动直接形成产品（包括组成部分）对应的材料部分]} - {Q[减：以前年度销售研发活动直接形成产品（包括组成部分）对应材料部分结转金额]}');
DELETE FROM t_tpo_rule_fetch_l WHERE FPKID = '36016CU5RTEZ';
INSERT INTO t_tpo_rule_fetch_l(FID,FPKID,FLOCALEID,FNAME) VALUES (1652937101593004032,'36016CU5RTEZ','zh_CN','L1-L1.1 ');
DELETE FROM t_tpo_rule_fetch_l WHERE FPKID = '35VC8HKEAY/4';
INSERT INTO t_tpo_rule_fetch_l(FID,FPKID,FLOCALEID,FNAME) VALUES (1651540518385073152,'35VC8HKEAY/4','zh_CN','①如50选择为110，则=L1(汇缴)-L1（预缴）
②如50选择为121，则=L1*计算比例
③如50选择为122，则=L1(汇缴)-L1（预缴）  ');
DELETE FROM t_tpo_rule_fetch_l WHERE FPKID = '35VCM6T30RT/';
INSERT INTO t_tpo_rule_fetch_l(FID,FPKID,FLOCALEID,FNAME) VALUES (1651542535451279360,'35VCM6T30RT/','zh_CN','{Q[其中：第四季度相关费用加计扣除#金额]}');
DELETE FROM t_tpo_rule_fetch_l WHERE FPKID = '35VDVVN0E2CP';
INSERT INTO t_tpo_rule_fetch_l(FID,FPKID,FLOCALEID,FNAME) VALUES (1651549213471113216,'35VDVVN0E2CP','zh_CN','①如50选择为110，则=L1*100%
②如50选择为121、122，则=L1.2*75%');

-- 研发加计 优惠明细表 取数公式中间表
DELETE FROM t_tpo_template_rule_fetch WHERE FID = 1650824052484495360;
INSERT INTO t_tpo_template_rule_fetch(FID,FMODELID,FCREATETIME,FREPORTITEMID,FFORMULAID,FTEMPLATEID,FCREATORID) VALUES (1650824052484495360,1532683517396254720,{ts'2023-03-28  00:00:00'},1650789009720498178,1650823988018042880,1592672505527874560,1625975782134637568);
DELETE FROM t_tpo_template_rule_fetch WHERE FID = 1651542553637534720;
INSERT INTO t_tpo_template_rule_fetch(FID,FMODELID,FCREATETIME,FREPORTITEMID,FFORMULAID,FTEMPLATEID,FCREATORID) VALUES (1651542553637534720,1532683517396254720,{ts'2023-03-29  00:00:00'},1650790235757500417,1651542535451279360,1592672505527874560,1625975782134637568);
DELETE FROM t_tpo_template_rule_fetch WHERE FID = 1651546370160573440;
INSERT INTO t_tpo_template_rule_fetch(FID,FMODELID,FCREATETIME,FREPORTITEMID,FFORMULAID,FTEMPLATEID,FCREATORID) VALUES (1651546370160573440,1532683517396254720,{ts'2023-03-29  00:00:00'},1650789009720498177,1651540518385073152,1592672505527874560,1625975782134637568);
DELETE FROM t_tpo_template_rule_fetch WHERE FID = 1651549251639032832;
INSERT INTO t_tpo_template_rule_fetch(FID,FMODELID,FCREATETIME,FREPORTITEMID,FFORMULAID,FTEMPLATEID,FCREATORID) VALUES (1651549251639032832,1532683517396254720,{ts'2023-03-29  00:00:00'},1650790235757500416,1651549213471113216,1592672505527874560,1625975782134637568);
DELETE FROM t_tpo_template_rule_fetch WHERE FID = 1652113234423232512;
INSERT INTO t_tpo_template_rule_fetch(FID,FMODELID,FCREATETIME,FREPORTITEMID,FFORMULAID,FTEMPLATEID,FCREATORID) VALUES (1652113234423232512,1532683517396254720,{ts'2023-03-30  00:00:00'},1651345141463545856,1642880798367559680,1592672505527874560,1625975782134637568);
DELETE FROM t_tpo_template_rule_fetch WHERE FID = 1652937201316775936;
INSERT INTO t_tpo_template_rule_fetch(FID,FMODELID,FCREATETIME,FREPORTITEMID,FFORMULAID,FTEMPLATEID,FCREATORID) VALUES (1652937201316775936,1532683517396254720,{ts'2023-03-31  00:00:00'},1650789009720498176,1652937101593004032,1592672505527874560,1625975782134637568);

-- 研发加计 样式公式
DELETE FROM t_tpo_rule_style WHERE FID = 1651351400959060992;
INSERT INTO t_tpo_rule_style(FID,FCREATORID,FMODELID,FDESCRIPTION,FMASTERID,FSTATUS,FNUMBER,FNAME,FCREATETIME,FMODIFIERID,FENABLE,FMODIFYTIME,FFITTYPE,FCELLTYPE,FFORMULA) VALUES (1651351400959060992,1625975782134637568,1532683517396254720,' ',1651351400959060992,'A','CN-BBXGZ-000000028','政策运维#企业所得税#业务定义，过滤业务定义树=研发费用加计扣除比例及计算方法，有效期内只显示末级节点的3个值  ) ',{ts'2023-04-19  00:00:00'},1625975782134637568,'1',{ts'2023-04-19  00:00:00'},'BBXGZ','5','[{"val":"tpo_tccit_bizdefen_tree","text":"{number}||{projectname}","defaultfilter":"false","treefilter":"enable=''1'' ","listfilter":"id in  ( 1642679715515127808,1642679715515127810,1642679715515127811 ) and enable=''1''  "}]

');


DELETE FROM t_tpo_rule_style_l WHERE FPKID = '35UFXDUVMF6S';
INSERT INTO t_tpo_rule_style_l(FID,FPKID,FLOCALEID,FNAME) VALUES (1651351400959060992,'35UFXDUVMF6S','zh_CN','政策运维#企业所得税#业务定义，过滤业务定义树=研发费用加计扣除比例及计算方法，有效期内只显示末级节点的3个值  ) ');

-- 研发加计 优惠明细 样式公式中间表
DELETE FROM t_tpo_template_rule_style WHERE FID = 1652113234549168128;
INSERT INTO t_tpo_template_rule_style(FID,FMODELID,FCREATETIME,FREPORTITEMID,FTEMPLATEID,FCREATORID,FSTYLEID) VALUES (1652113234549168128,1532683517396254720,{ts'2023-03-30  00:00:00'},1651345141463545856,1592672505527874560,1625975782134637568,1651351400959060992);

-- 模板和报表项的中间表
DELETE FROM t_tpo_temp_rep_relation WHERE FENTRYID = 1655134083699028024;
INSERT INTO t_tpo_temp_rep_relation(FID,FREPORTITEMID,FENTRYID,FROWCOL,FSEQ) VALUES (1592672505527874560,1650789009720498176,1655134083699028024,'yhmxb_qzqsjdyxjjkcdyffyje#yhmxb_je',57);
DELETE FROM t_tpo_temp_rep_relation WHERE FENTRYID = 1655134083699028025;
INSERT INTO t_tpo_temp_rep_relation(FID,FREPORTITEMID,FENTRYID,FROWCOL,FSEQ) VALUES (1592672505527874560,1650789009720498177,1655134083699028025,'yhmxb_qzdsjdyxjjkcdyffyje#yhmxb_je',58);
DELETE FROM t_tpo_temp_rep_relation WHERE FENTRYID = 1655134083699028026;
INSERT INTO t_tpo_temp_rep_relation(FID,FREPORTITEMID,FENTRYID,FROWCOL,FSEQ) VALUES (1592672505527874560,1650789009720498178,1655134083699028026,'yhmxb_bnyxjjkcdyffyze#yhmxb_je',59);
DELETE FROM t_tpo_temp_rep_relation WHERE FENTRYID = 1655134083699028027;
INSERT INTO t_tpo_temp_rep_relation(FID,FREPORTITEMID,FENTRYID,FROWCOL,FSEQ) VALUES (1592672505527874560,1650790235757500416,1655134083699028027,'yhmxb_qzqsjdxgfyjjkc#yhmxb_je',60);
DELETE FROM t_tpo_temp_rep_relation WHERE FENTRYID = 1655134083699028028;
INSERT INTO t_tpo_temp_rep_relation(FID,FREPORTITEMID,FENTRYID,FROWCOL,FSEQ) VALUES (1592672505527874560,1650790235757500417,1655134083699028028,'yhmxb_qzdsjdxgfyjjkc#yhmxb_je',61);
DELETE FROM t_tpo_temp_rep_relation WHERE FENTRYID = 1655134083699028029;
INSERT INTO t_tpo_temp_rep_relation(FID,FREPORTITEMID,FENTRYID,FROWCOL,FSEQ) VALUES (1592672505527874560,1651345141463545856,1655134083699028029,'yhmxb_jjkcbljff#yhmxb_jczl',62);

