DELETE FROM t_tctb_formula WHERE FID = 1665251848921034752;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1665251848921034752,{ts'2023-04-17  00:00:00'},' ',' ','VAT_DRAFT_XGMNSR_01','tcvat_zlb_xgmnsr#6#fwbdcwxzc',' ','增值税小规模纳税人总览表#6#服务、不动产和无形资产','1','6','1665251848283501568','draft_zzsxgmnsr_sjjt','tcvat_zlb_xgmnsr','fwbdcwxzc',' ',' ','{Q[tcvat_zlb_xgmnsr#6#hj]} - {Q[tcvat_zlb_xgmnsr#6#hwhlw]}'); 
DELETE FROM t_tctb_formula WHERE FID = 1665251848921034753;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1665251848921034753,{ts'2023-04-17  00:00:00'},' ',' ','VAT_DRAFT_XGMNSR_01','tcvat_zlb_xgmnsr#7#hj',' ','增值税小规模纳税人总览表#7#合计','1','7','1665251848283501568','draft_zzsxgmnsr_sjjt','tcvat_zlb_xgmnsr','hj',' ',' ','{Q[tcvat_zlb_xgmnsr#4#hj]} + {Q[tcvat_zlb_xgmnsr#5#hj]} - {Q[tcvat_zlb_xgmnsr#6#hj]}'); 
DELETE FROM t_tctb_formula WHERE FID = 1665251848921034754;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1665251848921034754,{ts'2023-04-17  00:00:00'},' ',' ','VAT_DRAFT_XGMNSR_01','tcvat_zlb_xgmnsr#8#hwhlw',' ','增值税小规模纳税人总览表#8#货物和劳务','1','8','1665251848283501568','draft_zzsxgmnsr_sjjt','tcvat_zlb_xgmnsr','hwhlw',' ',' ','{Q[tcvat_zlb_xgmnsr#3#hwhlw]}-{Q[tcvat_zlb_xgmnsr#6#hwhlw]}'); 
DELETE FROM t_tctb_formula WHERE FID = 1665251848921034755;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1665251848921034755,{ts'2023-04-17  00:00:00'},' ',' ','VAT_DRAFT_XGMNSR_01','tcvat_zlb_xgmnsr#8#fwbdcwxzc',' ','增值税小规模纳税人总览表#8#服务、不动产和无形资产','1','8','1665251848283501568','draft_zzsxgmnsr_sjjt','tcvat_zlb_xgmnsr','fwbdcwxzc',' ',' ','{Q[tcvat_zlb_xgmnsr#3#fwbdcwxzc]} - {Q[tcvat_zlb_xgmnsr#6#fwbdcwxzc]}'); 
DELETE FROM t_tctb_formula WHERE FID = 1665251848921034756;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1665251848921034756,{ts'2023-04-17  00:00:00'},' ',' ','VAT_DRAFT_XGMNSR_01','tcvat_zlb_xgmnsr#10#hwhlw',' ','增值税小规模纳税人总览表#10#货物和劳务','1','10','1665251848283501568','draft_zzsxgmnsr_sjjt','tcvat_zlb_xgmnsr','hwhlw',' ',' ','{Q[tcvat_zlb_xgmnsr#8#hwhlw]} - {Q[tcvat_zlb_xgmnsr#9#hwhlw]}'); 
DELETE FROM t_tctb_formula WHERE FID = 1665251848921034757;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1665251848921034757,{ts'2023-04-17  00:00:00'},' ',' ','VAT_DRAFT_XGMNSR_01','tcvat_zlb_xgmnsr#10#fwbdcwxzc',' ','增值税小规模纳税人总览表#10#服务、不动产和无形资产','1','10','1665251848283501568','draft_zzsxgmnsr_sjjt','tcvat_zlb_xgmnsr','fwbdcwxzc',' ',' ','{Q[tcvat_zlb_xgmnsr#8#fwbdcwxzc]} - {Q[tcvat_zlb_xgmnsr#9#fwbdcwxzc]}'); 
DELETE FROM t_tctb_formula WHERE FID = 1665251848921034758;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1665251848921034758,{ts'2023-04-17  00:00:00'},' ',' ','VAT_DRAFT_XGMNSR_01','tcvat_zlb_xgmnsr#3#hwhlw',' ','增值税小规模纳税人总览表#3#货物和劳务','1','3','1665251848283501568','draft_zzsxgmnsr_sjjt','tcvat_zlb_xgmnsr','hwhlw',' ',' ','{Q[tcvat_zlb_xgmnsr#1#hwhlw]} * 0.03'); 
DELETE FROM t_tctb_formula WHERE FID = 1665251848921034759;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1665251848921034759,{ts'2023-04-17  00:00:00'},' ',' ','VAT_DRAFT_XGMNSR_01','tcvat_zlb_xgmnsr#1#hj',' ','增值税小规模纳税人总览表#1#合计','1','1','1665251848283501568','draft_zzsxgmnsr_sjjt','tcvat_zlb_xgmnsr','hj',' ',' ','{Q[tcvat_zlb_xgmnsr#1#hwhlw]} + {Q[tcvat_zlb_xgmnsr#1#fwbdcwxzc]}'); 
DELETE FROM t_tctb_formula WHERE FID = 1665251848921034760;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1665251848921034760,{ts'2023-04-17  00:00:00'},' ',' ','VAT_DRAFT_XGMNSR_01','tcvat_zlb_xgmnsr#2#hj',' ','增值税小规模纳税人总览表#2#合计','1','2','1665251848283501568','draft_zzsxgmnsr_sjjt','tcvat_zlb_xgmnsr','hj',' ',' ','{Q[tcvat_zlb_xgmnsr#2#hwhlw]} + {Q[tcvat_zlb_xgmnsr#2#fwbdcwxzc]}'); 
DELETE FROM t_tctb_formula WHERE FID = 1665251848921034761;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1665251848921034761,{ts'2023-04-17  00:00:00'},' ',' ','VAT_DRAFT_XGMNSR_01','tcvat_zlb_xgmnsr#3#hj',' ','增值税小规模纳税人总览表#3#合计','1','3','1665251848283501568','draft_zzsxgmnsr_sjjt','tcvat_zlb_xgmnsr','hj',' ',' ','{Q[tcvat_zlb_xgmnsr#3#hwhlw]} + {Q[tcvat_zlb_xgmnsr#3#fwbdcwxzc]}'); 
DELETE FROM t_tctb_formula WHERE FID = 1665251848921034762;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1665251848921034762,{ts'2023-04-17  00:00:00'},' ',' ','VAT_DRAFT_XGMNSR_01','tcvat_zlb_xgmnsr#6#hj',' ','增值税小规模纳税人总览表#6#合计','1','6','1665251848283501568','draft_zzsxgmnsr_sjjt','tcvat_zlb_xgmnsr','hj',' ',' ','if({Q[tcvat_zlb_xgmnsr#3#hj]} < ({Q[tcvat_zlb_xgmnsr#4#hj]}+ {Q[tcvat_zlb_xgmnsr#5#hj]}), if({Q[tcvat_zlb_xgmnsr#3#hj]} < 0 , 0,{Q[tcvat_zlb_xgmnsr#3#hj]}) ,  if(({Q[tcvat_zlb_xgmnsr#4#hj]}+ {Q[tcvat_zlb_xgmnsr#5#hj]}) < 0, 0, {Q[tcvat_zlb_xgmnsr#4#hj]}+ {Q[tcvat_zlb_xgmnsr#5#hj]}) )'); 
DELETE FROM t_tctb_formula WHERE FID = 1665251848921034763;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1665251848921034763,{ts'2023-04-17  00:00:00'},' ',' ','VAT_DRAFT_XGMNSR_01','tcvat_zlb_xgmnsr#8#hj',' ','增值税小规模纳税人总览表#8#合计','1','8','1665251848283501568','draft_zzsxgmnsr_sjjt','tcvat_zlb_xgmnsr','hj',' ',' ','{Q[tcvat_zlb_xgmnsr#8#hwhlw]} + {Q[tcvat_zlb_xgmnsr#8#fwbdcwxzc]}'); 
DELETE FROM t_tctb_formula WHERE FID = 1665251848921034764;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1665251848921034764,{ts'2023-04-17  00:00:00'},' ',' ','VAT_DRAFT_XGMNSR_01','tcvat_zlb_xgmnsr#10#hj',' ','增值税小规模纳税人总览表#10#合计','1','10','1665251848283501568','draft_zzsxgmnsr_sjjt','tcvat_zlb_xgmnsr','hj',' ',' ','{Q[tcvat_zlb_xgmnsr#10#hwhlw]} + {Q[tcvat_zlb_xgmnsr#10#fwbdcwxzc]}'); 
DELETE FROM t_tctb_formula WHERE FID = 1665251848921034765;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1665251848921034765,{ts'2023-04-17  00:00:00'},' ',' ','VAT_DRAFT_XGMNSR_01','tcvat_zlb_xgmnsr#6#hwhlw',' ','增值税小规模纳税人总览表#6#货物和劳务','1','6','1665251848283501568','draft_zzsxgmnsr_sjjt','tcvat_zlb_xgmnsr','hwhlw',' ',' ','if({Q[tcvat_zlb_xgmnsr#3#hwhlw]} < {Q[tcvat_zlb_xgmnsr#6#hj]}, if({Q[tcvat_zlb_xgmnsr#3#hwhlw]} < 0, 0, {Q[tcvat_zlb_xgmnsr#3#hwhlw]}), if({Q[tcvat_zlb_xgmnsr#6#hj]} < 0, 0,  {Q[tcvat_zlb_xgmnsr#6#hj]}))'); 
DELETE FROM t_tctb_formula WHERE FID = 1665251848921034766;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1665251848921034766,{ts'2023-04-17  00:00:00'},' ',' ','VAT_DRAFT_XGMNSR_01','tcvat_dg_xgmnsr#1#xgmnsrbhsxse',' ','小规模底稿单据表--应征增值税不含税销售额','1','1','1665251848283501568','draft_zzsxgmnsr_sjjt','tcvat_dg_xgmnsr','xgmnsrbhsxse',' ',' ','{Q[tcvat_zlb_xgmnsr#1#hj]}'); 
DELETE FROM t_tctb_formula WHERE FID = 1665251848921034767;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1665251848921034767,{ts'2023-04-17  00:00:00'},' ',' ','VAT_DRAFT_XGMNSR_01','tcvat_dg_xgmnsr#1#xgmnsrmsxse',' ','小规模底稿单据表#1#免税销售额','1','1','1665251848283501568','draft_zzsxgmnsr_sjjt','tcvat_dg_xgmnsr','xgmnsrmsxse',' ',' ','{Q[tcvat_zlb_xgmnsr#2#hj]}'); 
DELETE FROM t_tctb_formula WHERE FID = 1665251848921034768;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1665251848921034768,{ts'2023-04-17  00:00:00'},' ',' ','VAT_DRAFT_XGMNSR_01','tcvat_dg_xgmnsr#1#xgmnsrynsejze',' ','小规模底稿单据表#1#应纳税额减征额','1','1','1665251848283501568','draft_zzsxgmnsr_sjjt','tcvat_dg_xgmnsr','xgmnsrynsejze',' ',' ','{Q[tcvat_zlb_xgmnsr#6#hj]}'); 
DELETE FROM t_tctb_formula WHERE FID = 1665251848921034769;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1665251848921034769,{ts'2023-04-17  00:00:00'},' ',' ','VAT_DRAFT_XGMNSR_01','tcvat_dg_xgmnsr#1#xgmnsryjse',' ','小规模底稿单据表#1#预缴税额','1','1','1665251848283501568','draft_zzsxgmnsr_sjjt','tcvat_dg_xgmnsr','xgmnsryjse',' ',' ','{Q[tcvat_zlb_xgmnsr#9#hj]}'); 
DELETE FROM t_tctb_formula WHERE FID = 1665251848921034770;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1665251848921034770,{ts'2023-04-17  00:00:00'},' ',' ','VAT_DRAFT_XGMNSR_01','tcvat_dg_xgmnsr#1#xgmnsrybtse',' ','小规模底稿单据表#1#应补(退)税额','1','1','1665251848283501568','draft_zzsxgmnsr_sjjt','tcvat_dg_xgmnsr','xgmnsrybtse',' ',' ','{Q[tcvat_zlb_xgmnsr#10#hj]}'); 
DELETE FROM t_tctb_formula WHERE FID = 1665251848921034771;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1665251848921034771,{ts'2023-04-17  00:00:00'},' ',' ','VAT_DRAFT_XGMNSR_01','tcvat_zlb_xgmnsr#4#hj',' ','增值税小规模纳税人总览表#4#合计','1','4','1665251848283501568','draft_zzsxgmnsr_sjjt','tcvat_zlb_xgmnsr','hj',' ',' ','if({C[#type]} = 0, {S[select fqmye from t_tcvat_ybnsr_jsxm  where FEWBLXH = ''1'' and FSBBID in (select CONCAT(fid , '''')  from t_tctb_declare_main where FNSRTYPE = ''zzsxgmnsr'' and FSKSSQQ  = to_date(''#prestartDate'') and FSKSSQZ  = to_date(''#preendDate'') and FTAXLIMIT = ''month'' and  FORGID = ''#orgid'' )]}, {S[select fqmye from t_tcvat_ybnsr_jsxm  where FEWBLXH = ''1'' and FSBBID in (select CONCAT(fid , '''')  from t_tctb_declare_main where FNSRTYPE = ''zzsxgmnsr'' and FSKSSQQ  = to_date(''#prestartDate'') and FSKSSQZ  = to_date(''#preendDate'') and FTAXLIMIT = ''season'' and  FORGID = ''#orgid'' )]})'); 
DELETE FROM t_tctb_formula WHERE FID = 1665251848921034773;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1665251848921034773,{ts'2023-04-17  00:00:00'},' ',' ','VAT_DRAFT_XGMNSR_01','tcvat_zlb_xgmnsr#1#hwhlw',' ','增值税小规模纳税人总览表#1#货物和劳务','1','1','1665251848283501568','draft_zzsxgmnsr_sjjt','tcvat_zlb_xgmnsr','hwhlw',' ','type :  0 aysb  , 1 ajsb','if({C[#type]} = 0, {S[select sum(t.ftaxableamount) from t_tcvat_xgm_cur_pay_jt t WHERE  t.ftaxperiod = ''#strStartPeriod'' AND t.forgid = ''#orgid''  AND t.fewblxh in (''1'',''5'') and t.fdeadline = ''#deadline'']},{S[select sum(t.ftaxableamount) from t_tcvat_xgm_cur_pay_jt t WHERE  t.forgid = ''#orgid'' AND t.fdeadline = ''#deadline'' AND t.ftaxperiod in (''#strStartPeriod'', ''#strMiddlePeriod'', ''#strEndPeriod'')  AND t.fewblxh in (''1'',''5'', ''9'', ''13'', ''17'', ''21'') ]})'); 
DELETE FROM t_tctb_formula WHERE FID = 1665251848921034774;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1665251848921034774,{ts'2023-04-17  00:00:00'},' ',' ','VAT_DRAFT_XGMNSR_01','tcvat_zlb_xgmnsr#1#fwbdcwxzc',' ','增值税小规模纳税人总览表#1#服务、不动产和无形资产','1','1','1665251848283501568','draft_zzsxgmnsr_sjjt','tcvat_zlb_xgmnsr','fwbdcwxzc',' ',' ','if({C[#type]} = 0, {S[select sum(t.ftaxableamount) from t_tcvat_xgm_cur_pay_jt t WHERE  t.ftaxperiod = ''#strStartPeriod'' AND t.forgid = ''#orgid''  AND t.fewblxh in (''2'',''3'') and t.fdeadline = ''#deadline'']},{S[select sum(t.ftaxableamount) from t_tcvat_xgm_cur_pay_jt t WHERE  t.forgid = ''#orgid'' AND t.fdeadline = ''#deadline'' AND t.ftaxperiod in (''#strStartPeriod'', ''#strMiddlePeriod'', ''#strEndPeriod'')  AND t.fewblxh in (''2'',''3'', ''10'', ''11'', ''18'', ''19'') ]})'); 
DELETE FROM t_tctb_formula WHERE FID = 1665251848921034775;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1665251848921034775,{ts'2023-04-17  00:00:00'},' ',' ','VAT_DRAFT_XGMNSR_01','tcvat_zlb_xgmnsr#2#hwhlw',' ','增值税小规模纳税人总览表#2#货物和劳务','1','2','1665251848283501568','draft_zzsxgmnsr_sjjt','tcvat_zlb_xgmnsr','hwhlw',' ',' ','if({C[#type]} = 0, {S[select sum(t.ftaxfreeamount) from t_tcvat_xgm_cur_pay_jt t WHERE  t.ftaxperiod = ''#strStartPeriod'' AND t.forgid = ''#orgid''  AND t.fewblxh in (''1'',''5'') and t.fdeadline = ''#deadline'']} + {S[SELECT sum(s.fpricetaxamount) as FTAXAMOUNT  FROM t_tcvat_xgm_income_sum_jt s,t_tpo_taxitemrateentry t  WHERE s.FBUSINESSTYPEID = t.FENTRYID and s.fdeadline = ''#deadline'' AND ( t.fmergecode LIKE ''1%'' OR t.fmergecode LIKE ''2%'')   AND s.FORGID = ''#orgid''  AND s.FTAXPERIOD = ''#strStartPeriod''  AND s.ftaxmethodtype = ''3'']},{S[select sum(t.ftaxfreeamount) from t_tcvat_xgm_cur_pay_jt t WHERE  t.forgid = ''#orgid'' AND t.fdeadline = ''#deadline'' AND t.ftaxperiod in (''#strStartPeriod'', ''#strMiddlePeriod'', ''#strEndPeriod'')  AND t.fewblxh in (''1'',''5'', ''9'', ''13'', ''17'', ''21'') ]} + {S[SELECT sum(s.fpricetaxamount) as FTAXAMOUNT  FROM t_tcvat_xgm_income_sum_jt s,t_tpo_taxitemrateentry t  WHERE s.FBUSINESSTYPEID = t.FENTRYID and s.fdeadline = ''#deadline'' AND ( t.fmergecode LIKE ''1%'' OR t.fmergecode LIKE ''2%'')   AND s.FORGID = ''#orgid''  AND s.FTAXPERIOD >= ''#strStartPeriod'' AND s.FTAXPERIOD <= ''#strEndPeriod''  AND s.ftaxmethodtype = ''3'']})'); 
DELETE FROM t_tctb_formula WHERE FID = 1665251848921034776;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1665251848921034776,{ts'2023-04-17  00:00:00'},' ',' ','VAT_DRAFT_XGMNSR_01','tcvat_zlb_xgmnsr#2#fwbdcwxzc',' ','增值税小规模纳税人总览表#2#服务、不动产和无形资产','1','2','1665251848283501568','draft_zzsxgmnsr_sjjt','tcvat_zlb_xgmnsr','fwbdcwxzc',' ',' ','if({C[#type]} = 0, {S[select sum(t.ftaxfreeamount) from t_tcvat_xgm_cur_pay_jt t WHERE  t.ftaxperiod = ''#strStartPeriod'' AND t.forgid = ''#orgid''  AND t.fewblxh in (''2'',''3'') and t.fdeadline = ''#deadline'']} + {S[SELECT sum(s.fpricetaxamount) as FTAXAMOUNT  FROM t_tcvat_xgm_income_sum_jt s,t_tpo_taxitemrateentry t  WHERE s.FBUSINESSTYPEID = t.FENTRYID and s.fdeadline = ''#deadline'' AND ( t.fmergecode LIKE ''3%'' OR t.fmergecode LIKE ''4%'' OR t.fmergecode LIKE ''5%'') AND s.FORGID = ''#orgid''  AND s.FTAXPERIOD = ''#strStartPeriod''  AND s.ftaxmethodtype = ''3'']},{S[select sum(t.ftaxfreeamount) from t_tcvat_xgm_cur_pay_jt t WHERE  t.forgid = ''#orgid'' AND t.fdeadline = ''#deadline'' AND t.ftaxperiod in (''#strStartPeriod'', ''#strMiddlePeriod'', ''#strEndPeriod'')  AND t.fewblxh in (''2'',''3'', ''10'', ''11'', ''18'', ''19'') ]} + {S[SELECT sum(s.fpricetaxamount) as FTAXAMOUNT  FROM t_tcvat_xgm_income_sum_jt s,t_tpo_taxitemrateentry t  WHERE s.FBUSINESSTYPEID = t.FENTRYID and s.fdeadline = ''#deadline'' AND ( t.fmergecode LIKE ''3%'' OR t.fmergecode LIKE ''4%'' OR t.fmergecode LIKE ''5%'')   AND s.FORGID = ''#orgid''  AND s.FTAXPERIOD >= ''#strStartPeriod'' AND s.FTAXPERIOD <= ''#strEndPeriod''  AND s.ftaxmethodtype = ''3'']})'); 
DELETE FROM t_tctb_formula WHERE FID = 1665251848921034777;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1665251848921034777,{ts'2023-04-17  00:00:00'},' ',' ','VAT_DRAFT_XGMNSR_01','tcvat_zlb_xgmnsr#5#hj',' ','增值税小规模纳税人总览表#5#合计','1','5','1665251848283501568','draft_zzsxgmnsr_sjjt','tcvat_zlb_xgmnsr','hj',' ',' ','if({C[#type]} = 0, {S[select sum(fcurrentamount) from t_tcvat_taxreduc_sum_sjjt where forgid=''#orgid'' and ftaxperiod=''#strStartPeriod'' and fdeadline =''#deadline'']}, {S[select sum(fcurrentamount) from t_tcvat_taxreduc_sum_sjjt where forgid=''#orgid'' and ftaxperiod >= ''#strStartPeriod'' and ftaxperiod <= ''#strEndPeriod'' and fdeadline =''#deadline'']})'); 
DELETE FROM t_tctb_formula WHERE FID = 1665251848921034778;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1665251848921034778,{ts'2023-04-17  00:00:00'},' ',' ','VAT_DRAFT_XGMNSR_01','tcvat_zlb_xgmnsr#3#fwbdcwxzc',' ','增值税小规模纳税人总览表#3#服务、不动产和无形资产','1','3','1665251848283501568','draft_zzsxgmnsr_sjjt','tcvat_zlb_xgmnsr','fwbdcwxzc',' ',' ','if({C[#type]} = 0, {S[select t.ftaxableamount from t_tcvat_xgm_cur_pay_jt t WHERE t.ftaxperiod=''#strStartPeriod'' AND t.forgid=''#orgid'' AND t.fewblxh=''2'' and t.fdeadline=''#deadline'']} * 0.03 + {S[select t.ftaxableamount from t_tcvat_xgm_cur_pay_jt t WHERE t.ftaxperiod=''#strStartPeriod'' AND t.forgid=''#orgid'' AND t.fewblxh=''3'' and t.fdeadline=''#deadline'']}* 0.05, {S[select sum(t.ftaxableamount) from t_tcvat_xgm_cur_pay_jt t WHERE t.ftaxperiod in (''#strStartPeriod'', ''#strMiddlePeriod'', ''#strEndPeriod'') AND t.forgid=''#orgid'' AND t.fewblxh in (''2'', ''10'', ''18'') and t.fdeadline=''#deadline'']} * 0.03 + {S[select sum(t.ftaxableamount) from t_tcvat_xgm_cur_pay_jt t WHERE t.ftaxperiod in (''#strStartPeriod'', ''#strMiddlePeriod'', ''#strEndPeriod'') AND t.forgid=''#orgid'' AND t.fewblxh in (''3'', ''11'', ''19'') and t.fdeadline=''#deadline'']} * 0.05)'); 
DELETE FROM t_tctb_formula WHERE FID = 1665251848921034779;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1665251848921034779,{ts'2023-04-17  00:00:00'},' ',' ','VAT_DRAFT_XGMNSR_01','tcvat_zlb_xgmnsr#9#hj',' ','增值税小规模纳税人总览表#9#合计','1','9','1665251848283501568','draft_zzsxgmnsr_sjjt','tcvat_zlb_xgmnsr','hj',' ',' ','{Q[tcvat_zlb_xgmnsr#9#hwhlw]} + {Q[tcvat_zlb_xgmnsr#9#fwbdcwxzc]}'); 
DELETE FROM t_tctb_formula WHERE FID = 1665251848921034780;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1665251848921034780,{ts'2023-04-17  00:00:00'},' ',' ','VAT_DRAFT_XGMNSR_01','tcvat_dg_xgmnsr#1#xgmnsrynse',' ','小规模底稿单据表#1#应纳税额','1','1','1665251848283501568','draft_zzsxgmnsr_sjjt','tcvat_dg_xgmnsr','xgmnsrynse','1',' ','{Q[tcvat_zlb_xgmnsr#8#hj]}'); 
DELETE FROM t_tctb_formula WHERE FID = 1665251848921034772;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1665251848921034772,{ts'2023-04-25  00:00:00'},' ',' ','VAT_DRAFT_XGMNSR_01','tcvat_dg_xgmnsr#1#mainid',' ','底稿单据表#1#底稿主数据ID','4','1','1665251848283501568','draft_zzsxgmnsr_sjjt','tcvat_dg_xgmnsr','mainid','1',' ','{S[select fid from t_tpo_declare_main_tsd where forgid=''#orgid'' and fskssqq=to_date(''#start'') and fskssqz=to_date(''#end'') and ftemplatetype=''draft_zzsxgmnsr_sjjt'']}'); 
DELETE FROM t_tctb_formula WHERE FID = 1671120864101408768;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1671120864101408768,{ts'2023-04-25  00:00:00'},' ',' ','VAT_DRAFT_XGMNSR_01','tcvat_dg_xgmnsr#1#xgmnsrcswhjss',' ','底稿单据表#1#城市维护建设税','1','1','1665251848283501568','draft_zzsxgmnsr_sjjt','tcvat_dg_xgmnsr','xgmnsrcswhjss','1',' ','{Q[tcvat_zlb_xgmnsr#17#hj]}'); 
DELETE FROM t_tctb_formula WHERE FID = 1671121085367721984;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1671121085367721984,{ts'2023-04-25  00:00:00'},' ',' ','VAT_DRAFT_XGMNSR_01','tcvat_dg_xgmnsr#1#xgmnsrdfjyffj',' ','底稿单据表#1#地方教育费附加','1','1','1665251848283501568','draft_zzsxgmnsr_sjjt','tcvat_dg_xgmnsr','xgmnsrdfjyffj','1',' ','{Q[tcvat_zlb_xgmnsr#31#hj]}'); 
DELETE FROM t_tctb_formula WHERE FID = 1671120975074304000;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1671120975074304000,{ts'2023-04-25  00:00:00'},' ',' ','VAT_DRAFT_XGMNSR_01','tcvat_dg_xgmnsr#1#xgmnsrjyffj',' ','底稿单据表#1#教育费附加','1','1','1665251848283501568','draft_zzsxgmnsr_sjjt','tcvat_dg_xgmnsr','xgmnsrjyffj','1',' ','{Q[tcvat_zlb_xgmnsr#24#hj]}'); 
DELETE FROM t_tctb_formula WHERE FID = 1665251848921034781;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1665251848921034781,{ts'2023-04-25  00:00:00'},' ',' ','VAT_DRAFT_XGMNSR_01','tcvat_zlb_xgmnsr#9#fwbdcwxzc',' ',' ','1','9','1665251848283501568','draft_zzsxgmnsr_sjjt','tcvat_zlb_xgmnsr','fwbdcwxzc',' ',' ','{S[SELECT sum(fyjsjje) FROM t_tctb_declare_entry WHERE fid IN (SELECT fid FROM t_tcvat_prepay_declare WHERE fskssqq>=to_date(''#start'') AND fskssqz<=to_date(''#end'') and forgid=''#orgid'' AND fpaystatus=''1'' AND  fdeductionperiod=''0'') AND ftaxtype=''1'']}'); 




DELETE FROM t_tctb_formula WHERE FID = 1670311944701502464;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1670311944701502464,{ts'2023-04-24  00:00:00'},' ',' ','VAT_DRAFT_XGMNSR_01','tcvat_zlb_xgmnsr#11#hj',' ','增值税小规模纳税人总览表#11#合计','1','11','1665251848283501568','draft_zzsxgmnsr_sjjt','tcvat_zlb_xgmnsr','hj',' ',' ','{Q[tcvat_zlb_xgmnsr#10#hj]}'); 
DELETE FROM t_tctb_formula WHERE FID = 1670326897051329536;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1670326897051329536,{ts'2023-04-24  00:00:00'},' ',' ','VAT_DRAFT_XGMNSR_01','tcvat_zlb_xgmnsr#12#hj',' ','增值税小规模纳税人总览表#12#合计','1','12','1665251848283501568','draft_zzsxgmnsr_sjjt','tcvat_zlb_xgmnsr','hj',' ',' ','if({C[#cswhjssenable]} = 1,{P[CSWHJSS]},0)'); 
DELETE FROM t_tctb_formula WHERE FID = 1670337212489032704;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1670337212489032704,{ts'2023-04-24  00:00:00'},' ',' ','VAT_DRAFT_XGMNSR_01','tcvat_zlb_xgmnsr#13#hj',' ','增值税小规模纳税人总览表#13#合计','1','13','1665251848283501568','draft_zzsxgmnsr_sjjt','tcvat_zlb_xgmnsr','hj',' ',' ','{Q[tcvat_zlb_xgmnsr#11#hj]}*{Q[tcvat_zlb_xgmnsr#12#hj]}/100'); 
DELETE FROM t_tctb_formula WHERE FID = 1670351703171648512;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1670351703171648512,{ts'2023-04-24  00:00:00'},' ',' ','VAT_DRAFT_XGMNSR_01','tcvat_zlb_xgmnsr#17#hj',' ','增值税小规模纳税人总览表#17#合计','1','17','1665251848283501568','draft_zzsxgmnsr_sjjt','tcvat_zlb_xgmnsr','hj',' ',' ','{Q[tcvat_zlb_xgmnsr#13#hj]}-{Q[tcvat_zlb_xgmnsr#14#hj]}-{Q[tcvat_zlb_xgmnsr#15#hj]}-{Q[tcvat_zlb_xgmnsr#16#hj]}'); 
DELETE FROM t_tctb_formula WHERE FID = 1670351934848348160;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1670351934848348160,{ts'2023-04-24  00:00:00'},' ',' ','VAT_DRAFT_XGMNSR_01','tcvat_zlb_xgmnsr#18#hj',' ','增值税小规模纳税人总览表#18#合计','1','18','1665251848283501568','draft_zzsxgmnsr_sjjt','tcvat_zlb_xgmnsr','hj',' ',' ','{Q[tcvat_zlb_xgmnsr#11#hj]}'); 
DELETE FROM t_tctb_formula WHERE FID = 1670352688539487232;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1670352688539487232,{ts'2023-04-24  00:00:00'},' ',' ','VAT_DRAFT_XGMNSR_01','tcvat_zlb_xgmnsr#19#hj',' ','增值税小规模纳税人总览表#19#合计','1','19','1665251848283501568','draft_zzsxgmnsr_sjjt','tcvat_zlb_xgmnsr','hj',' ',' ','if({C[#jyffjenable]} = 1,{P[JYFFJ]},0)'); 
DELETE FROM t_tctb_formula WHERE FID = 1670353373410734080;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1670353373410734080,{ts'2023-04-24  00:00:00'},' ',' ','VAT_DRAFT_XGMNSR_01','tcvat_zlb_xgmnsr#20#hj',' ','增值税小规模纳税人总览表#20#合计','1','20','1665251848283501568','draft_zzsxgmnsr_sjjt','tcvat_zlb_xgmnsr','hj',' ',' ','{Q[tcvat_zlb_xgmnsr#18#hj]}*{Q[tcvat_zlb_xgmnsr#19#hj]}/100'); 
DELETE FROM t_tctb_formula WHERE FID = 1670353788202233856;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1670353788202233856,{ts'2023-04-24  00:00:00'},' ',' ','VAT_DRAFT_XGMNSR_01','tcvat_zlb_xgmnsr#24#hj',' ','增值税小规模纳税人总览表#24#合计','1','24','1665251848283501568','draft_zzsxgmnsr_sjjt','tcvat_zlb_xgmnsr','hj',' ',' ','{Q[tcvat_zlb_xgmnsr#20#hj]}-{Q[tcvat_zlb_xgmnsr#21#hj]}-{Q[tcvat_zlb_xgmnsr#22#hj]}-{Q[tcvat_zlb_xgmnsr#23#hj]}'); 
DELETE FROM t_tctb_formula WHERE FID = 1670353974496440320;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1670353974496440320,{ts'2023-04-24  00:00:00'},' ',' ','VAT_DRAFT_XGMNSR_01','tcvat_zlb_xgmnsr#25#hj',' ','增值税小规模纳税人总览表#25#合计','1','25','1665251848283501568','draft_zzsxgmnsr_sjjt','tcvat_zlb_xgmnsr','hj',' ',' ','{Q[tcvat_zlb_xgmnsr#11#hj]}'); 
DELETE FROM t_tctb_formula WHERE FID = 1670354314478333952;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1670354314478333952,{ts'2023-04-24  00:00:00'},' ',' ','VAT_DRAFT_XGMNSR_01','tcvat_zlb_xgmnsr#26#hj',' ','增值税小规模纳税人总览表#26#合计','1','26','1665251848283501568','draft_zzsxgmnsr_sjjt','tcvat_zlb_xgmnsr','hj',' ',' ','if({C[#dfjyffjenable]} = 1,{P[DFJYFJ]},0)'); 
DELETE FROM t_tctb_formula WHERE FID = 1670355125916774400;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1670355125916774400,{ts'2023-04-24  00:00:00'},' ',' ','VAT_DRAFT_XGMNSR_01','tcvat_zlb_xgmnsr#27#hj',' ','增值税小规模纳税人总览表#27#合计','1','27','1665251848283501568','draft_zzsxgmnsr_sjjt','tcvat_zlb_xgmnsr','hj',' ',' ','{Q[tcvat_zlb_xgmnsr#25#hj]}*{Q[tcvat_zlb_xgmnsr#26#hj]}/100'); 
DELETE FROM t_tctb_formula WHERE FID = 1670355397313409024;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1670355397313409024,{ts'2023-04-24  00:00:00'},' ',' ','VAT_DRAFT_XGMNSR_01','tcvat_zlb_xgmnsr#31#hj',' ','增值税小规模纳税人总览表#31#合计','1','31','1665251848283501568','draft_zzsxgmnsr_sjjt','tcvat_zlb_xgmnsr','hj',' ',' ','{Q[tcvat_zlb_xgmnsr#27#hj]}-{Q[tcvat_zlb_xgmnsr#28#hj]}-{Q[tcvat_zlb_xgmnsr#29#hj]}-{Q[tcvat_zlb_xgmnsr#30#hj]}'); 
DELETE FROM t_tctb_formula WHERE FID = 1670355735869239296;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1670355735869239296,{ts'2023-04-24  00:00:00'},' ',' ','VAT_DRAFT_XGMNSR_01','tcvat_zlb_xgmnsr#32#hj',' ','增值税小规模纳税人总览表#32#合计','1','32','1665251848283501568','draft_zzsxgmnsr_sjjt','tcvat_zlb_xgmnsr','hj',' ',' ','{Q[tcvat_zlb_xgmnsr#17#hj]}+{Q[tcvat_zlb_xgmnsr#24#hj]}+{Q[tcvat_zlb_xgmnsr#31#hj]}'); 


