DELETE FROM t_tctb_formula WHERE FID = 1808077454846206976;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808077454846206976,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_02','tcvat_zlb_ybnsr#32#ybxm','上一税款所属期申报表一般项目本月数列第34行本期应补(退)税额','增值税一般纳税人总览表#32#一般项目','1','32','1808077452505784320','draft_zzsybnsr','tcvat_zlb_ybnsr','ybxm',' ',' ','if({S[select b.FBQYBTSE from  t_tcvat_ybnsr_zb b where b.fsbbid=''#predeclaresbbid'' and b.FEWBLXH =''1'']} <= 0,0,{S[select b.FBQYBTSE from  t_tcvat_ybnsr_zb b where b.fsbbid=''#predeclaresbbid'' and b.FEWBLXH =''1'']})'); 
DELETE FROM t_tctb_formula WHERE FID = 1808077454846206977;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808077454846206977,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_02','tcvat_zlb_ybnsr#32#jzjtxm','上一税款所属期申报表即征即退本月数列第34行本期应补(退)税额','增值税一般纳税人总览表#32#即征即退项目','1','32','1808077452505784320','draft_zzsybnsr','tcvat_zlb_ybnsr','jzjtxm',' ',' ','if({S[select b.FBQYBTSE from  t_tcvat_ybnsr_zb b where b.fsbbid=''#predeclaresbbid'' and b.FEWBLXH =''3'']} <= 0,0,{S[select b.FBQYBTSE from  t_tcvat_ybnsr_zb b where b.fsbbid=''#predeclaresbbid'' and b.FEWBLXH =''3'']})'); 
DELETE FROM t_tctb_formula WHERE FID = 1808077454846206978;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808077454846206978,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_02','tcvat_zlb_ybnsr#9#ybxm',' ','增值税一般纳税人总览表#9#一般项目','1','9','1808077452505784320','draft_zzsybnsr','tcvat_zlb_ybnsr','ybxm',' ',' ','{S[select sum(ftaxamount-finputtaxamount) from t_tcvat_deduction_summary where forgid=''#orgid'' and ftaxperiod in (''#startPeriod'',''#middlePeriod'',''#endPeriod'') and fdeadline=''#deadline'']}'); 
DELETE FROM t_tctb_formula WHERE FID = 1808077454846206979;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808077454846206979,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_02','tcvat_zlb_ybnsr#3#ybxm',' ','增值税一般纳税人总览表#3#一般项目','1','3','1808077452505784320','draft_zzsybnsr','tcvat_zlb_ybnsr','ybxm',' ',' ','{S[select sum(ftaxamount) from t_tcvat_income_summary where forgid=''#orgid'' and ftaxperiod in (''#startPeriod'',''#middlePeriod'',''#endPeriod'') and fdeadline=''#deadline'' and ftaxmethod = ''免抵退税'' and fjzjt=''0'']}'); 
DELETE FROM t_tctb_formula WHERE FID = 1808077454846206980;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808077454846206980,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_02','tcvat_zlb_ybnsr#1#jzjtxm',' ','增值税一般纳税人总览表#1#即征即退项目','1','1','1808077452505784320','draft_zzsybnsr','tcvat_zlb_ybnsr','jzjtxm',' ',' ','{S[select sum(ftaxamount) from t_tcvat_income_summary where forgid=''#orgid'' and ftaxperiod in (''#startPeriod'',''#middlePeriod'',''#endPeriod'') and fdeadline=''#deadline'' and ftaxmethod=''一般计税'' and fjzjt=''1'']}'); 
DELETE FROM t_tctb_formula WHERE FID = 1808077454846206981;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808077454846206981,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_02','tcvat_zlb_ybnsr#2#ybxm',' ','增值税一般纳税人总览表#2#一般项目','1','2','1808077452505784320','draft_zzsybnsr','tcvat_zlb_ybnsr','ybxm',' ',' ','{S[select sum(ftaxamount) from t_tcvat_income_summary where forgid=''#orgid'' and ftaxperiod in (''#startPeriod'',''#middlePeriod'',''#endPeriod'') and fdeadline=''#deadline'' and (ftaxmethod=''按3%简易征收'' or ftaxmethod=''按5%简易征收'') and fjzjt=''0'']}'); 
DELETE FROM t_tctb_formula WHERE FID = 1808077454846206982;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808077454846206982,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_02','tcvat_zlb_ybnsr#2#jzjtxm',' ','增值税一般纳税人总览表#2#即征即退项目','1','2','1808077452505784320','draft_zzsybnsr','tcvat_zlb_ybnsr','jzjtxm',' ',' ','{S[select sum(ftaxamount) from t_tcvat_income_summary where forgid=''#orgid'' and ftaxperiod in (''#startPeriod'',''#middlePeriod'',''#endPeriod'') and fdeadline=''#deadline'' and (ftaxmethod=''按3%简易征收'' or ftaxmethod=''按5%简易征收'') and fjzjt=''1'']}'); 
DELETE FROM t_tctb_formula WHERE FID = 1808077454846206983;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808077454846206983,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_02','tcvat_zlb_ybnsr#4#ybxm',' ','增值税一般纳税人总览表#4#一般项目','1','4','1808077452505784320','draft_zzsybnsr','tcvat_zlb_ybnsr','ybxm',' ',' ','{S[select sum(ftaxamount) from t_tcvat_income_summary where forgid=''#orgid'' and ftaxperiod in (''#startPeriod'',''#middlePeriod'',''#endPeriod'') and fdeadline=''#deadline'' and ftaxmethod in (''免税'',''出口免税'') and fjzjt=''0'']}'); 
DELETE FROM t_tctb_formula WHERE FID = 1808077454846206984;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808077454846206984,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_02','tcvat_zlb_ybnsr#9#jzjtxm',' ','增值税一般纳税人总览表#9#即征即退项目','1','9','1808077452505784320','draft_zzsybnsr','tcvat_zlb_ybnsr','jzjtxm',' ',' ','{S[select sum(finputtaxamount) from t_tcvat_deduction_summary where forgid=''#orgid'' and ftaxperiod in (''#startPeriod'',''#middlePeriod'',''#endPeriod'') and fdeadline=''#deadline'']}'); 
DELETE FROM t_tctb_formula WHERE FID = 1808077454846206985;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808077454846206985,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_02','tcvat_zlb_ybnsr#10#ybxm',' ','增值税一般纳税人总览表#10#一般项目','1','10','1808077452505784320','draft_zzsybnsr','tcvat_zlb_ybnsr','ybxm',' ',' ','{S[select sum(faccountingamount-fjzjtrolloutamount) from t_tcvat_roll_out_summary where forgid=''#orgid'' and ftaxperiod in (''#startPeriod'',''#middlePeriod'',''#endPeriod'') and fdeadline=''#deadline'']}'); 
DELETE FROM t_tctb_formula WHERE FID = 1808077454846206986;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808077454846206986,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_02','tcvat_zlb_ybnsr#10#jzjtxm',' ','增值税一般纳税人总览表#10#即征即退项目','1','10','1808077452505784320','draft_zzsybnsr','tcvat_zlb_ybnsr','jzjtxm',' ',' ','{S[select sum(fjzjtrolloutamount) from t_tcvat_roll_out_summary where forgid=''#orgid'' and ftaxperiod in (''#startPeriod'',''#middlePeriod'',''#endPeriod'') and fdeadline=''#deadline'']}'); 
DELETE FROM t_tctb_formula WHERE FID = 1808077454846206987;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808077454846206987,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_02','tcvat_zlb_ybnsr#17#ybxm',' ','增值税一般纳税人总览表#17#一般项目','1','17','1808077452505784320','draft_zzsybnsr','tcvat_zlb_ybnsr','ybxm',' ',' ','{S[select sum(fcurrentamount) from t_tcvat_adddeduct where forgid=''#orgid'' and ftaxperiod in (''#startPeriod'',''#middlePeriod'',''#endPeriod'') and fdeadline=''#deadline'' and fservicetype=''一般计税项目'']}'); 
DELETE FROM t_tctb_formula WHERE FID = 1808077454846206988;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808077454846206988,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_02','tcvat_zlb_ybnsr#17#jzjtxm',' ','增值税一般纳税人总览表#17#即征即退项目','1','17','1808077452505784320','draft_zzsybnsr','tcvat_zlb_ybnsr','jzjtxm',' ',' ','{S[select sum(fcurrentamount) from t_tcvat_adddeduct where forgid=''#orgid'' and ftaxperiod in (''#startPeriod'',''#middlePeriod'',''#endPeriod'') and fdeadline=''#deadline'' and fservicetype=''即征即退项目'']}'); 
DELETE FROM t_tctb_formula WHERE FID = 1808077454846206989;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808077454846206989,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_02','tcvat_zlb_ybnsr#27#jzjtxm','{Q[销售额 - 免、抵、退办法出口销售额#即征即退项目]}','增值税一般纳税人总览表#27#即征即退项目','1','27','1808077452505784320','draft_zzsybnsr','tcvat_zlb_ybnsr','jzjtxm',' ',' ','{S[select sum(t1.ftotaltaxamount) from t_tcvat_income_summary t1 , t_tpo_taxitemrateentry t2  where t1.fbusinesstypeid=t2.fentryid  and  t1.forgid=''#orgid'' and t1.ftaxperiod in (''#startPeriod'',''#middlePeriod'',''#endPeriod'') and t1.fjzjt=''1'' and t1.ftaxrate in (''3%'',''5%'') ]}'); 
DELETE FROM t_tctb_formula WHERE FID = 1808077454846206990;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808077454846206990,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_02','tcvat_zlb_ybnsr#6#ybxm',' ','增值税一般纳税人总览表#6#一般项目','1','6','1808077452505784320','draft_zzsybnsr','tcvat_zlb_ybnsr','ybxm',' ',' ','{S[select sum(t1.ftotaltaxamount) from t_tcvat_income_summary t1 , t_tpo_taxitemrateentry t2  where t1.fbusinesstypeid=t2.fentryid  and  t1.forgid=''#orgid'' and t1.ftaxperiod in (''#startPeriod'',''#middlePeriod'',''#endPeriod'') and t1.fjzjt=''0'' and t1.ftaxrate in (''9%'',''10%'',''11%'',''13%'',''16%'',''17%'')  and (t2.flongnumber like ''1%'' or t2.flongnumber like ''2%'')]}'); 
DELETE FROM t_tctb_formula WHERE FID = 1808077454846206991;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808077454846206991,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_02','tcvat_zlb_ybnsr#6#jzjtxm',' ','增值税一般纳税人总览表#6#即征即退项目','1','6','1808077452505784320','draft_zzsybnsr','tcvat_zlb_ybnsr','jzjtxm',' ',' ','{S[select sum(t1.ftotaltaxamount) from t_tcvat_income_summary t1 , t_tpo_taxitemrateentry t2  where t1.fbusinesstypeid=t2.fentryid  and  t1.forgid=''#orgid'' and t1.ftaxperiod in (''#startPeriod'',''#middlePeriod'',''#endPeriod'') and t1.fjzjt=''1'' and t1.FTAXMETHOD = ''一般计税'' and (t2.flongnumber like ''1%'' or t2.flongnumber like ''2%'')]}'); 
DELETE FROM t_tctb_formula WHERE FID = 1808077454846206992;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808077454846206992,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_02','tcvat_zlb_ybnsr#7#jzjtxm',' ','增值税一般纳税人总览表#7#即征即退项目','1','7','1808077452505784320','draft_zzsybnsr','tcvat_zlb_ybnsr','jzjtxm',' ',' ','{S[select sum(t1.ftotaltaxamount) from t_tcvat_income_summary t1 , t_tpo_taxitemrateentry t2  where t1.fbusinesstypeid=t2.fentryid  and  t1.forgid=''#orgid'' and t1.ftaxperiod in (''#startPeriod'',''#middlePeriod'',''#endPeriod'') and t1.fjzjt=''1'' and t1.FTAXMETHOD = ''一般计税'' and (t2.flongnumber like ''3%''  or t2.flongnumber like ''4%'' or t2.flongnumber like ''5%'')]}'); 
DELETE FROM t_tctb_formula WHERE FID = 1808077454846206993;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808077454846206993,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_02','tcvat_zlb_ybnsr#1#ybxm',' ','增值税一般纳税人总览表#1#一般项目','1','1','1808077452505784320','draft_zzsybnsr','tcvat_zlb_ybnsr','ybxm',' ',' ','{S[select sum(ftaxamount) from t_tcvat_income_summary where forgid=''#orgid'' and ftaxperiod in (''#startPeriod'',''#middlePeriod'',''#endPeriod'') and fdeadline=''#deadline'' and ftaxmethod=''一般计税'' and fjzjt=''0'']}'); 
DELETE FROM t_tctb_formula WHERE FID = 1808077454846206994;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808077454846206994,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_02','tcvat_zlb_ybnsr#18#jzjtxm',' ','增值税一般纳税人总览表#18#即征即退项目','1','18','1808077452505784320','draft_zzsybnsr','tcvat_zlb_ybnsr','jzjtxm',' ',' ','{S[select sum(fcurrentdecrease) from t_tcvat_adddeduct where forgid=''#orgid'' and ftaxperiod in (''#startPeriod'',''#middlePeriod'',''#endPeriod'') and fdeadline=''#deadline'' and fservicetype=''即征即退项目'']}'); 
DELETE FROM t_tctb_formula WHERE FID = 1808077454846206995;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808077454846206995,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_02','tcvat_zlb_ybnsr#22#ybxm',' ','增值税一般纳税人总览表#22#一般项目','1','22','1808077452505784320','draft_zzsybnsr','tcvat_zlb_ybnsr','ybxm',' ',' ','{S[select sum(fcurrentamount) from t_tcvat_taxreduce_summary where forgid=''#orgid'' and ftaxperiod in (''#startPeriod'',''#middlePeriod'',''#endPeriod'') and fdeadline=''#deadline'']}'); 
DELETE FROM t_tctb_formula WHERE FID = 1808077454846206996;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808077454846206996,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_02','tcvat_zlb_ybnsr#18#ybxm',' ','增值税一般纳税人总览表#18#一般项目','1','18','1808077452505784320','draft_zzsybnsr','tcvat_zlb_ybnsr','ybxm',' ',' ','{S[select sum(fcurrentdecrease) from t_tcvat_adddeduct where forgid=''#orgid'' and ftaxperiod in (''#startPeriod'',''#middlePeriod'',''#endPeriod'') and fdeadline=''#deadline'' and fservicetype=''一般计税项目'']}'); 
DELETE FROM t_tctb_formula WHERE FID = 1808077454846206997;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808077454846206997,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_02','tcvat_zlb_ybnsr#12#ybxm',' ','增值税一般纳税人总览表#12#一般项目','1','12','1808077452505784320','draft_zzsybnsr','tcvat_zlb_ybnsr','ybxm',' ',' ','{S[select t1.fqmldse from t_tcvat_ybnsr_zb t1 left join t_tctb_declare_main t2 on t1.fsbbid = CONCAT(t2.fid , '''') where t1.fewblxh=''1'' and t2.forgid=''#orgid'' and t2.fskssqq=to_date(''#prestartDate'') and t2.fskssqz=to_date(''#preendDate'') and t2.fnsrtype=''zzsybnsr'']}'); 
DELETE FROM t_tctb_formula WHERE FID = 1808077454846206998;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808077454846206998,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_02','tcvat_zlb_ybnsr#12#jzjtxm',' ','增值税一般纳税人总览表#12#即征即退项目','1','12','1808077452505784320','draft_zzsybnsr','tcvat_zlb_ybnsr','jzjtxm',' ',' ','{S[select t1.fqmldse from t_tcvat_ybnsr_zb t1 left join t_tctb_declare_main t2 on t1.fsbbid = CONCAT(t2.fid , '''') where t1.fewblxh=''3'' and t2.forgid=''#orgid'' and t2.fskssqq=to_date(''#prestartDate'') and t2.fskssqz=to_date(''#preendDate'') and t2.fnsrtype=''zzsybnsr'']}'); 
DELETE FROM t_tctb_formula WHERE FID = 1808077454846206999;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808077454846206999,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_02','tcvat_zlb_ybnsr#16#ybxm',' ','增值税一般纳税人总览表#16#一般项目','1','16','1808077452505784320','draft_zzsybnsr','tcvat_zlb_ybnsr','ybxm',' ',' ','{S[select t1.fqmye from t_tcvat_ybnsr_jjdj t1 left join t_tctb_declare_main t2 on t1.fsbbid = CONCAT(t2.fid , '''') where t1.fewblxh=''1'' and t2.forgid=''#orgid'' and t2.fskssqq=to_date(''#prestartDate'') and t2.fskssqz=to_date(''#preendDate'') and t2.fnsrtype=''zzsybnsr'']}'); 
DELETE FROM t_tctb_formula WHERE FID = 1808077454846207000;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808077454846207000,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_02','tcvat_zlb_ybnsr#16#jzjtxm',' ','增值税一般纳税人总览表#16#即征即退项目','1','16','1808077452505784320','draft_zzsybnsr','tcvat_zlb_ybnsr','jzjtxm',' ',' ','{S[select t1.fqmye from t_tcvat_ybnsr_jjdj t1 left join t_tctb_declare_main t2 on t1.fsbbid = CONCAT(t2.fid , '''') where t1.fewblxh=''2'' and t2.forgid=''#orgid'' and t2.fskssqq=to_date(''#prestartDate'') and t2.fskssqz=to_date(''#preendDate'') and t2.fnsrtype=''zzsybnsr'']}'); 
DELETE FROM t_tctb_formula WHERE FID = 1808077454846207001;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808077454846207001,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_02','tcvat_dg_ybnsr#1#mainid',' ','底稿单据表#1#底稿主数据ID','4','1','1808077452505784320','draft_zzsybnsr','tcvat_dg_ybnsr','mainid',' ',' ','{S[select fid from t_tctb_draft_main where forgid=''#orgid'' and fstartdate=to_date(''#startDate'') and fenddate=to_date(''#endDate'') and ftemplatetype=''draft_zzsybnsr'']}'); 
DELETE FROM t_tctb_formula WHERE FID = 1808077454846207002;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808077454846207002,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_02','tcvat_zlb_ybnsr#27#ybxm','{Q[销售额 - 免、抵、退办法出口销售额#一般项目]}','增值税一般纳税人总览表#27#一般项目','1','27','1808077452505784320','draft_zzsybnsr','tcvat_zlb_ybnsr','ybxm',' ',' ','if({C[#diff]} = 1,({S[select sum(t1.fpricetaxamount) from t_tcvat_income_summary t1 where t1.forgid=''#orgid'' and t1.ftaxperiod in (''#startPeriod'',''#middlePeriod'',''#endPeriod'') and t1.fdeadline=''#deadline'' and t1.fjzjt=''0'' and t1.ftaxrate=''5%'']} - min({S[select sum(t1.fpricetaxamount) from t_tcvat_income_summary t1 where t1.forgid=''#orgid'' and t1.ftaxperiod in (''#startPeriod'',''#middlePeriod'',''#endPeriod'') and t1.fdeadline=''#deadline'' and t1.fjzjt=''0'' and t1.ftaxrate=''5%'']}, {S[select sum(fcurrentamount) from t_tcvat_diffdeduct where forgid=''#orgid'' and ftaxperiod in (''#startPeriod'',''#middlePeriod'',''#endPeriod'') and fdeadline=''#deadline'' and fdifftypeid=859352590188589060]} + {S[select sum(t1.fqmye) from t_tcvat_ybnsr_fb3 t1 left join t_tctb_declare_main t2 on t1.fsbbid = CONCAT(t2.fid , '''') where t1.fewblxh=''5'' and t2.forgid=''#orgid'' and t2.fskssqq=to_date(''#prestartDate'') and t2.fskssqz=to_date(''#preendDate'') and t2.fnsrtype=''zzsybnsr'']}))/1.05*0.05  +  ({S[select sum(t1.fpricetaxamount) from t_tcvat_income_summary t1 where t1.forgid=''#orgid'' and t1.ftaxperiod in (''#startPeriod'',''#middlePeriod'',''#endPeriod'') and t1.fdeadline=''#deadline'' and t1.fjzjt=''0'' and t1.ftaxrate=''3%'']} - min({S[select sum(t1.fpricetaxamount) from t_tcvat_income_summary t1 where t1.forgid=''#orgid'' and t1.ftaxperiod in (''#startPeriod'',''#middlePeriod'',''#endPeriod'') and t1.fdeadline=''#deadline'' and t1.fjzjt=''0'' and t1.ftaxrate=''3%'']}, {S[select sum(fcurrentamount) from t_tcvat_diffdeduct where forgid=''#orgid'' and ftaxperiod in (''#startPeriod'',''#middlePeriod'',''#endPeriod'') and fdeadline=''#deadline'' and fdifftypeid=859352590188589061]} + {S[select sum(t1.fqmye) from t_tcvat_ybnsr_fb3 t1 left join t_tctb_declare_main t2 on t1.fsbbid = CONCAT(t2.fid , '''') where t1.fewblxh=''6'' and t2.forgid=''#orgid'' and t2.fskssqq=to_date(''#prestartDate'') and t2.fskssqz=to_date(''#preendDate'') and t2.fnsrtype=''zzsybnsr'']}))/1.03*0.03,{S[select sum(t1.ftotaltaxamount) from t_tcvat_income_summary t1 , t_tpo_taxitemrateentry t2  where t1.fbusinesstypeid=t2.fentryid  and  t1.forgid=''#orgid'' and t1.ftaxperiod in (''#startPeriod'',''#middlePeriod'',''#endPeriod'') and t1.fdeadline=''#deadline'' and t1.fjzjt=''0'' and t1.ftaxrate in (''3%'',''5%'') ]})'); 
DELETE FROM t_tctb_formula WHERE FID = 1808077454846207003;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808077454846207003,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_02','tcvat_zlb_ybnsr#31#ybxm',' ','增值税一般纳税人总览表#31#一般项目','1','31','1808077452505784320','draft_zzsybnsr','tcvat_zlb_ybnsr','ybxm',' ',' ','{S[SELECT sum(fyjsjje) FROM t_tctb_declare_entry WHERE fid IN (SELECT fid FROM t_tcvat_prepay_declare WHERE fskssqq>=to_date(''#startDate'') AND fskssqz<=to_date(''#endDate'') AND forgid=''#orgid'' AND fpaystatus=''1'' AND  fdeductionperiod=''0'') AND ftaxtype=''1'']}+ {S[select sum(fcurrentamount) from t_tcvat_perpre_summary where forgid = ''#orgid'' and ftaxperiod in (''#startPeriod'',''#middlePeriod'',''#endPeriod'') and fdeadline = ''#deadline'']}'); 
DELETE FROM t_tctb_formula WHERE FID = 1808077454846207004;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808077454846207004,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_02','tcvat_zlb_ybnsr#21#ybxm',' ','增值税一般纳税人总览表#21#一般项目','1','21','1808077452505784320','draft_zzsybnsr','tcvat_zlb_ybnsr','ybxm',' ',' ','if({C[#firstmonsea]}=1,{S[select sum(t1.fqmye) from t_tcvat_ybnsr_jsxm t1 left join t_tctb_declare_main t2 on t1.fsbbid = CONCAT(t2.fid , '''') where t2.forgid=''#orgid'' and t2.fskssqq=to_date(''#prestartDate'') and t2.fskssqz=to_date(''#preendDate'') and t2.fnsrtype=''zzsybnsr'' and t1.fswsxdm not in (789806480307039232,789806484266464256,789806484274850816) and t1.fewblxh != ''1'']},{S[select t1.fqmye from t_tcvat_ybnsr_jsxm t1 left join t_tctb_declare_main t2 on t1.fsbbid = CONCAT(t2.fid , '''') where t1.fewblxh=''1'' and t2.forgid=''#orgid'' and t2.fskssqq=to_date(''#prestartDate'') and t2.fskssqz=to_date(''#preendDate'') and t2.fnsrtype=''zzsybnsr'']}-{S[select sum(t1.fjmsfe) from t_tcvat_sb_fjsf t1 left join t_tctb_declare_main t2 on t1.fsbbid = CONCAT(t2.fid , '''') where t1.fjmxzdm in (789806478352493568,789806478377661440,1355833647369817089,790466954849808384,790466954891627520,1355833647369822210,790468283471097856,790468283504528384,1355833647369817090) and t2.forgid=''#orgid'' and t2.fskssqq=to_date(''#prestartDate'') and t2.fskssqz=to_date(''#preendDate'') and t2.fnsrtype=''zzsybnsr'']})'); 
DELETE FROM t_tctb_formula WHERE FID = 1808077454846207005;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808077454846207005,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_02','tcvat_dg_ybnsr#1#ybtse',' ','底稿单据表#1#应补(退)税额','1','1','1808077452505784320','draft_zzsybnsr','tcvat_dg_ybnsr','ybtse',' ',' ','{Q[tcvat_zlb_ybnsr#34#ybxm]}+{Q[tcvat_zlb_ybnsr#34#jzjtxm]}'); 
DELETE FROM t_tctb_formula WHERE FID = 1808077454846207007;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808077454846207007,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_02','tcvat_zlb_ybnsr#5#ybxm','{Q[销售额 - 按适用税率计税销售额#一般项目]}','增值税一般纳税人总览表#5#一般项目','1','5','1808077452505784320','draft_zzsybnsr','tcvat_zlb_ybnsr','ybxm',' ',' ','{Q[tcvat_zlb_ybnsr#1#ybxm]}+{Q[tcvat_zlb_ybnsr#2#ybxm]}+{Q[tcvat_zlb_ybnsr#3#ybxm]}+{Q[tcvat_zlb_ybnsr#4#ybxm]}'); 
DELETE FROM t_tctb_formula WHERE FID = 1808077454846207008;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808077454846207008,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_02','tcvat_zlb_ybnsr#5#jzjtxm','{Q[销售额 - 按适用税率计税销售额#即征即退项目]}','增值税一般纳税人总览表#5#即征即退项目','1','5','1808077452505784320','draft_zzsybnsr','tcvat_zlb_ybnsr','jzjtxm',' ',' ','{Q[tcvat_zlb_ybnsr#1#jzjtxm]}+{Q[tcvat_zlb_ybnsr#2#jzjtxm]}'); 
DELETE FROM t_tctb_formula WHERE FID = 1808077454846207009;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808077454846207009,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_02','tcvat_zlb_ybnsr#13#jzjtxm','{Q[进项税额 - 进项税额#即征即退项目]}','增值税一般纳税人总览表#13#即征即退项目','1','13','1808077452505784320','draft_zzsybnsr','tcvat_zlb_ybnsr','jzjtxm',' ',' ','{Q[tcvat_zlb_ybnsr#9#jzjtxm]}-{Q[tcvat_zlb_ybnsr#10#jzjtxm]}-{Q[tcvat_zlb_ybnsr#11#jzjtxm]}+{Q[tcvat_zlb_ybnsr#12#jzjtxm]}'); 
DELETE FROM t_tctb_formula WHERE FID = 1808077454846207010;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808077454846207010,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_02','tcvat_zlb_ybnsr#14#ybxm',' ','增值税一般纳税人总览表#14#一般项目','1','14','1808077452505784320','draft_zzsybnsr','tcvat_zlb_ybnsr','ybxm',' ',' ','if({Q[tcvat_zlb_ybnsr#8#ybxm]}<{Q[tcvat_zlb_ybnsr#13#ybxm]},{Q[tcvat_zlb_ybnsr#8#ybxm]},{Q[tcvat_zlb_ybnsr#13#ybxm]})'); 
DELETE FROM t_tctb_formula WHERE FID = 1808077454846207011;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808077454846207011,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_02','tcvat_zlb_ybnsr#14#jzjtxm',' ','增值税一般纳税人总览表#14#即征即退项目','1','14','1808077452505784320','draft_zzsybnsr','tcvat_zlb_ybnsr','jzjtxm',' ',' ','if({Q[tcvat_zlb_ybnsr#8#jzjtxm]}<{Q[tcvat_zlb_ybnsr#13#jzjtxm]},{Q[tcvat_zlb_ybnsr#8#jzjtxm]},{Q[tcvat_zlb_ybnsr#13#jzjtxm]})'); 
DELETE FROM t_tctb_formula WHERE FID = 1808077454846207012;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808077454846207012,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_02','tcvat_zlb_ybnsr#15#ybxm','{Q[期末留抵税额 - 应抵扣进项税额#一般项目]}','增值税一般纳税人总览表#15#一般项目','1','15','1808077452505784320','draft_zzsybnsr','tcvat_zlb_ybnsr','ybxm',' ',' ','{Q[tcvat_zlb_ybnsr#13#ybxm]}-{Q[tcvat_zlb_ybnsr#14#ybxm]}'); 
DELETE FROM t_tctb_formula WHERE FID = 1808077454846207013;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808077454846207013,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_02','tcvat_zlb_ybnsr#15#jzjtxm','{Q[期末留抵税额 - 应抵扣进项税额#即征即退项目]}','增值税一般纳税人总览表#15#即征即退项目','1','15','1808077452505784320','draft_zzsybnsr','tcvat_zlb_ybnsr','jzjtxm',' ',' ','{Q[tcvat_zlb_ybnsr#13#jzjtxm]}-{Q[tcvat_zlb_ybnsr#14#jzjtxm]}'); 
DELETE FROM t_tctb_formula WHERE FID = 1808077454846207014;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808077454846207014,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_02','tcvat_zlb_ybnsr#8#ybxm','{Q[销项税额 - 一般计税项目#一般项目]}','增值税一般纳税人总览表#8#一般项目','1','8','1808077452505784320','draft_zzsybnsr','tcvat_zlb_ybnsr','ybxm',' ',' ','{Q[tcvat_zlb_ybnsr#6#ybxm]}+{Q[tcvat_zlb_ybnsr#7#ybxm]}'); 
DELETE FROM t_tctb_formula WHERE FID = 1808077454846207015;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808077454846207015,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_02','tcvat_zlb_ybnsr#8#jzjtxm','{Q[销项税额 - 一般计税项目#即征即退项目]}','增值税一般纳税人总览表#8#即征即退项目','1','8','1808077452505784320','draft_zzsybnsr','tcvat_zlb_ybnsr','jzjtxm',' ',' ','{Q[tcvat_zlb_ybnsr#6#jzjtxm]}+{Q[tcvat_zlb_ybnsr#7#jzjtxm]}'); 
DELETE FROM t_tctb_formula WHERE FID = 1808077454846207016;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808077454846207016,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_02','tcvat_zlb_ybnsr#13#ybxm','{Q[进项税额 - 进项税额#一般项目]}','增值税一般纳税人总览表#13#一般项目','1','13','1808077452505784320','draft_zzsybnsr','tcvat_zlb_ybnsr','ybxm',' ',' ','{Q[tcvat_zlb_ybnsr#9#ybxm]}-{Q[tcvat_zlb_ybnsr#10#ybxm]}-{Q[tcvat_zlb_ybnsr#11#ybxm]}+{Q[tcvat_zlb_ybnsr#12#ybxm]}'); 
DELETE FROM t_tctb_formula WHERE FID = 1808077454846207017;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808077454846207017,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_02','tcvat_zlb_ybnsr#19#ybxm',' ','增值税一般纳税人总览表#19#一般项目','1','19','1808077452505784320','draft_zzsybnsr','tcvat_zlb_ybnsr','ybxm',' ',' ','if({Q[tcvat_zlb_ybnsr#16#ybxm]}+{Q[tcvat_zlb_ybnsr#17#ybxm]}-{Q[tcvat_zlb_ybnsr#18#ybxm]}>=0, if({Q[tcvat_zlb_ybnsr#16#ybxm]}+{Q[tcvat_zlb_ybnsr#17#ybxm]}-{Q[tcvat_zlb_ybnsr#18#ybxm]} < {Q[tcvat_zlb_ybnsr#8#ybxm]}-{Q[tcvat_zlb_ybnsr#14#ybxm]}, {Q[tcvat_zlb_ybnsr#16#ybxm]}+{Q[tcvat_zlb_ybnsr#17#ybxm]}-{Q[tcvat_zlb_ybnsr#18#ybxm]}, {Q[tcvat_zlb_ybnsr#8#ybxm]}-{Q[tcvat_zlb_ybnsr#14#ybxm]}), 0)'); 
DELETE FROM t_tctb_formula WHERE FID = 1808077454846207018;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808077454846207018,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_02','tcvat_zlb_ybnsr#19#jzjtxm',' ','增值税一般纳税人总览表#19#即征即退项目','1','19','1808077452505784320','draft_zzsybnsr','tcvat_zlb_ybnsr','jzjtxm',' ',' ','if({Q[tcvat_zlb_ybnsr#16#jzjtxm]}+{Q[tcvat_zlb_ybnsr#17#jzjtxm]}-{Q[tcvat_zlb_ybnsr#18#jzjtxm]}>=0, if({Q[tcvat_zlb_ybnsr#16#jzjtxm]}+{Q[tcvat_zlb_ybnsr#17#jzjtxm]}-{Q[tcvat_zlb_ybnsr#18#jzjtxm]} < {Q[tcvat_zlb_ybnsr#8#jzjtxm]}-{Q[tcvat_zlb_ybnsr#14#jzjtxm]}, {Q[tcvat_zlb_ybnsr#16#jzjtxm]}+{Q[tcvat_zlb_ybnsr#17#jzjtxm]}-{Q[tcvat_zlb_ybnsr#18#jzjtxm]}, {Q[tcvat_zlb_ybnsr#8#jzjtxm]}-{Q[tcvat_zlb_ybnsr#14#jzjtxm]}), 0)'); 
DELETE FROM t_tctb_formula WHERE FID = 1808077454846207019;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808077454846207019,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_02','tcvat_zlb_ybnsr#20#ybxm','{Q[进项税额 - 进项税额转出#一般项目]}','增值税一般纳税人总览表#20#一般项目','1','20','1808077452505784320','draft_zzsybnsr','tcvat_zlb_ybnsr','ybxm',' ',' ','{Q[tcvat_zlb_ybnsr#16#ybxm]}+{Q[tcvat_zlb_ybnsr#17#ybxm]}-{Q[tcvat_zlb_ybnsr#18#ybxm]}-{Q[tcvat_zlb_ybnsr#19#ybxm]}'); 
DELETE FROM t_tctb_formula WHERE FID = 1808077454846207020;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808077454846207020,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_02','tcvat_zlb_ybnsr#20#jzjtxm',' ','增值税一般纳税人总览表#20#即征即退项目','1','20','1808077452505784320','draft_zzsybnsr','tcvat_zlb_ybnsr','jzjtxm',' ',' ','{Q[tcvat_zlb_ybnsr#16#jzjtxm]}+{Q[tcvat_zlb_ybnsr#17#jzjtxm]}-{Q[tcvat_zlb_ybnsr#18#jzjtxm]}-{Q[tcvat_zlb_ybnsr#19#jzjtxm]}'); 
DELETE FROM t_tctb_formula WHERE FID = 1808077454846207021;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808077454846207021,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_02','tcvat_zlb_ybnsr#23#ybxm','{Q[销售额 - 按适用税率计税销售额#一般项目]}','增值税一般纳税人总览表#23#一般项目','1','23','1808077452505784320','draft_zzsybnsr','tcvat_zlb_ybnsr','ybxm',' ',' ','{Q[tcvat_zlb_ybnsr#21#ybxm]}+{Q[tcvat_zlb_ybnsr#22#ybxm]}'); 
DELETE FROM t_tctb_formula WHERE FID = 1808077454846207022;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808077454846207022,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_02','tcvat_zlb_ybnsr#24#ybxm',' ','增值税一般纳税人总览表#24#一般项目','1','24','1808077452505784320','draft_zzsybnsr','tcvat_zlb_ybnsr','ybxm',' ',' ','if(min({Q[tcvat_zlb_ybnsr#23#ybxm]}, {Q[tcvat_zlb_ybnsr#26#ybxm]}+{Q[tcvat_zlb_ybnsr#27#ybxm]}) < 0, 0, min({Q[tcvat_zlb_ybnsr#23#ybxm]}, {Q[tcvat_zlb_ybnsr#26#ybxm]}+{Q[tcvat_zlb_ybnsr#27#ybxm]}))'); 
DELETE FROM t_tctb_formula WHERE FID = 1808077454846207023;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808077454846207023,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_02','tcvat_zlb_ybnsr#25#ybxm','{Q[销售额 - 按简易办法计税销售额#一般项目]}','增值税一般纳税人总览表#25#一般项目','1','25','1808077452505784320','draft_zzsybnsr','tcvat_zlb_ybnsr','ybxm',' ',' ','{Q[tcvat_zlb_ybnsr#23#ybxm]}-{Q[tcvat_zlb_ybnsr#24#ybxm]}-{Q[tcvat_zlb_ybnsr#24#jzjtxm]}'); 
DELETE FROM t_tctb_formula WHERE FID = 1808077454846207024;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808077454846207024,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_02','tcvat_zlb_ybnsr#26#ybxm','{Q[销售额 - 按简易办法计税销售额#一般项目]}','增值税一般纳税人总览表#26#一般项目','1','26','1808077452505784320','draft_zzsybnsr','tcvat_zlb_ybnsr','ybxm',' ',' ','{Q[tcvat_zlb_ybnsr#8#ybxm]}-{Q[tcvat_zlb_ybnsr#14#ybxm]}-{Q[tcvat_zlb_ybnsr#19#ybxm]}'); 
DELETE FROM t_tctb_formula WHERE FID = 1808077454846207025;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808077454846207025,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_02','tcvat_zlb_ybnsr#26#jzjtxm',' ','增值税一般纳税人总览表#26#即征即退项目','1','26','1808077452505784320','draft_zzsybnsr','tcvat_zlb_ybnsr','jzjtxm',' ',' ','{Q[tcvat_zlb_ybnsr#8#jzjtxm]}-{Q[tcvat_zlb_ybnsr#14#jzjtxm]}-{Q[tcvat_zlb_ybnsr#19#jzjtxm]}'); 
DELETE FROM t_tctb_formula WHERE FID = 1808077454846207026;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808077454846207026,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_02','tcvat_zlb_ybnsr#28#ybxm',' ','增值税一般纳税人总览表#28#一般项目','1','28','1808077452505784320','draft_zzsybnsr','tcvat_zlb_ybnsr','ybxm',' ',' ','{Q[tcvat_zlb_ybnsr#24#ybxm]}'); 
DELETE FROM t_tctb_formula WHERE FID = 1808077454846207027;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808077454846207027,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_02','tcvat_zlb_ybnsr#28#jzjtxm',' ','增值税一般纳税人总览表#28#即征即退项目','1','28','1808077452505784320','draft_zzsybnsr','tcvat_zlb_ybnsr','jzjtxm',' ',' ','{Q[tcvat_zlb_ybnsr#24#jzjtxm]}'); 
DELETE FROM t_tctb_formula WHERE FID = 1808077454846207028;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808077454846207028,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_02','tcvat_zlb_ybnsr#29#ybxm',' ','增值税一般纳税人总览表#29#一般项目','1','29','1808077452505784320','draft_zzsybnsr','tcvat_zlb_ybnsr','ybxm',' ',' ','{Q[tcvat_zlb_ybnsr#26#ybxm]}+{Q[tcvat_zlb_ybnsr#27#ybxm]}-{Q[tcvat_zlb_ybnsr#28#ybxm]}'); 
DELETE FROM t_tctb_formula WHERE FID = 1808077454846207029;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808077454846207029,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_02','tcvat_zlb_ybnsr#29#jzjtxm',' ','增值税一般纳税人总览表#29#即征即退项目','1','29','1808077452505784320','draft_zzsybnsr','tcvat_zlb_ybnsr','jzjtxm',' ',' ','{Q[tcvat_zlb_ybnsr#26#jzjtxm]}+{Q[tcvat_zlb_ybnsr#27#jzjtxm]}-{Q[tcvat_zlb_ybnsr#28#jzjtxm]}'); 
DELETE FROM t_tctb_formula WHERE FID = 1808077454846207030;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808077454846207030,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_02','tcvat_dg_ybnsr#1#xse',' ','底稿单据表#1#销售额','1','1','1808077452505784320','draft_zzsybnsr','tcvat_dg_ybnsr','xse',' ',' ','{Q[tcvat_zlb_ybnsr#5#ybxm]}+{Q[tcvat_zlb_ybnsr#5#jzjtxm]}'); 
DELETE FROM t_tctb_formula WHERE FID = 1808077454846207031;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808077454846207031,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_02','tcvat_dg_ybnsr#1#jxse',' ','底稿单据表#1#进项税额','1','1','1808077452505784320','draft_zzsybnsr','tcvat_dg_ybnsr','jxse',' ',' ','{Q[tcvat_zlb_ybnsr#9#ybxm]}+{Q[tcvat_zlb_ybnsr#9#jzjtxm]}'); 
DELETE FROM t_tctb_formula WHERE FID = 1808077454846207032;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808077454846207032,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_02','tcvat_dg_ybnsr#1#jxsezc',' ','底稿单据表#1#进项税额转出','1','1','1808077452505784320','draft_zzsybnsr','tcvat_dg_ybnsr','jxsezc',' ',' ','{Q[tcvat_zlb_ybnsr#10#ybxm]}+{Q[tcvat_zlb_ybnsr#10#jzjtxm]}'); 
DELETE FROM t_tctb_formula WHERE FID = 1808077454846207033;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808077454846207033,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_02','tcvat_dg_ybnsr#1#qmldse',' ','底稿单据表#1#期末留抵税额','1','1','1808077452505784320','draft_zzsybnsr','tcvat_dg_ybnsr','qmldse',' ',' ','{Q[tcvat_zlb_ybnsr#15#ybxm]}+{Q[tcvat_zlb_ybnsr#15#jzjtxm]}'); 
DELETE FROM t_tctb_formula WHERE FID = 1808077454846207034;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808077454846207034,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_02','tcvat_dg_ybnsr#1#jjdjse',' ','底稿单据表#1#加计抵减税额','1','1','1808077452505784320','draft_zzsybnsr','tcvat_dg_ybnsr','jjdjse',' ',' ','{Q[tcvat_zlb_ybnsr#19#ybxm]}+{Q[tcvat_zlb_ybnsr#19#jzjtxm]}'); 
DELETE FROM t_tctb_formula WHERE FID = 1808077454846207035;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808077454846207035,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_02','tcvat_dg_ybnsr#1#jyffynse',' ','底稿单据表#1#简易方法应纳税额','1','1','1808077452505784320','draft_zzsybnsr','tcvat_dg_ybnsr','jyffynse',' ',' ','{Q[tcvat_zlb_ybnsr#7#ybxm]}+{Q[tcvat_zlb_ybnsr#7#jzjtxm]}'); 
DELETE FROM t_tctb_formula WHERE FID = 1808077454846207036;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808077454846207036,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_02','tcvat_dg_ybnsr#1#ynsejze',' ','底稿单据表#1#应纳税额减征额','1','1','1808077452505784320','draft_zzsybnsr','tcvat_dg_ybnsr','ynsejze',' ',' ','{Q[tcvat_zlb_ybnsr#28#ybxm]}+{Q[tcvat_zlb_ybnsr#28#jzjtxm]}'); 
DELETE FROM t_tctb_formula WHERE FID = 1808077454846207037;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808077454846207037,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_02','tcvat_dg_ybnsr#1#ynse',' ','底稿单据表#1#应纳税额','1','1','1808077452505784320','draft_zzsybnsr','tcvat_dg_ybnsr','ynse',' ',' ','{Q[tcvat_zlb_ybnsr#29#ybxm]}+{Q[tcvat_zlb_ybnsr#29#jzjtxm]}'); 
DELETE FROM t_tctb_formula WHERE FID = 1808077454846207038;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808077454846207038,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_02','tcvat_dg_ybnsr#1#yjse',' ','底稿单据表#1#预缴税额','1','1','1808077452505784320','draft_zzsybnsr','tcvat_dg_ybnsr','yjse',' ',' ','{Q[tcvat_zlb_ybnsr#30#ybxm]}+{Q[tcvat_zlb_ybnsr#30#jzjtxm]}'); 
DELETE FROM t_tctb_formula WHERE FID = 1808077454846207039;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808077454846207039,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_02','tcvat_zlb_ybnsr#24#jzjtxm',' ','增值税一般纳税人总览表#24#即征即退项目','1','24','1808077452505784320','draft_zzsybnsr','tcvat_zlb_ybnsr','jzjtxm',' ',' ','if(min({Q[tcvat_zlb_ybnsr#23#ybxm]}-{Q[tcvat_zlb_ybnsr#24#ybxm]}, {Q[tcvat_zlb_ybnsr#26#jzjtxm]}+{Q[tcvat_zlb_ybnsr#27#jzjtxm]}) < 0, 0, min({Q[tcvat_zlb_ybnsr#23#ybxm]}-{Q[tcvat_zlb_ybnsr#24#ybxm]}, {Q[tcvat_zlb_ybnsr#26#jzjtxm]}+{Q[tcvat_zlb_ybnsr#27#jzjtxm]}))'); 
DELETE FROM t_tctb_formula WHERE FID = 1808077454846207040;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808077454846207040,{ts'2023-10-31  00:00:00'},'“即征即退项目列”的“实际减征抵减税额”是【{F[{Q[tcvat_zlb_ybnsr#24#jzjtxm]}]}】，应小于等于“一般计税项目”和“简易计税项目”的税额合计数，即【{F[{Q[tcvat_zlb_ybnsr#26#jzjtxm]} + {Q[tcvat_zlb_ybnsr#27#jzjtxm]}]}】','即征即退项目实际减征抵减税额异常','VAT_DRAFT_YBNSR_02','tcvat_zlb_ybnsr#24#jzjtxm','{Q[减征项目税额 - 实际减征抵减税额#即征即退项目]}','增值税一般纳税人总览表#24#即征即退项目','2','24','1808077452505784320','draft_zzsybnsr','tcvat_zlb_ybnsr','jzjtxm',' ',' ','{Q[tcvat_zlb_ybnsr#24#jzjtxm]}<={Q[tcvat_zlb_ybnsr#26#jzjtxm]}+{Q[tcvat_zlb_ybnsr#27#jzjtxm]}'); 
DELETE FROM t_tctb_formula WHERE FID = 1808077454846207041;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808077454846207041,{ts'2023-10-31  00:00:00'},'“一般项目列”的“实际减征抵减税额”是【{F[{Q[tcvat_zlb_ybnsr#24#ybxm]}]}】，应小于等于“一般计税项目”和“简易计税项目”的税额合计数，即【{F[{Q[tcvat_zlb_ybnsr#26#ybxm]} + {Q[tcvat_zlb_ybnsr#27#ybxm]}]}】','一般项目实际减征抵减税额异常','VAT_DRAFT_YBNSR_02','tcvat_zlb_ybnsr#24#ybxm','{Q[减征项目税额 - 实际减征抵减税额#一般项目]}','增值税一般纳税人总览表#24#一般项目','2','24','1808077452505784320','draft_zzsybnsr','tcvat_zlb_ybnsr','ybxm',' ',' ','{Q[tcvat_zlb_ybnsr#24#ybxm]}<={Q[tcvat_zlb_ybnsr#26#ybxm]}+{Q[tcvat_zlb_ybnsr#27#ybxm]}'); 
DELETE FROM t_tctb_formula WHERE FID = 1808077454846207042;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808077454846207042,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_02','tcvat_dg_ybnsr#1#xxse',' ','底稿单据表#1#销项税额','1','1','1808077452505784320','draft_zzsybnsr','tcvat_dg_ybnsr','xxse',' ',' ','{Q[tcvat_zlb_ybnsr#8#ybxm]}+{Q[tcvat_zlb_ybnsr#8#jzjtxm]}'); 
DELETE FROM t_tctb_formula WHERE FID = 1808077454846207043;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808077454846207043,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_02','tcvat_zlb_ybnsr#31#jzjtxm',' ','增值税一般纳税人总览表#31#即征即退项目','1','31','1808077452505784320','draft_zzsybnsr','tcvat_zlb_ybnsr','jzjtxm',' ',' ',' '); 
DELETE FROM t_tctb_formula WHERE FID = 1808077454846207044;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808077454846207044,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_02','tcvat_zlb_ybnsr#30#ybxm','{Q[增值税税额 -其中：①分次预缴税额#一般项目]}','增值税一般纳税人总览表#30#一般项目','1','30','1808077452505784320','draft_zzsybnsr','tcvat_zlb_ybnsr','ybxm',' ',' ','{Q[tcvat_zlb_ybnsr#31#ybxm]}+{Q[tcvat_zlb_ybnsr#32#ybxm]}+{Q[tcvat_zlb_ybnsr#33#ybxm]}'); 
DELETE FROM t_tctb_formula WHERE FID = 1808077454846207045;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808077454846207045,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_02','tcvat_zlb_ybnsr#30#jzjtxm',' ','增值税一般纳税人总览表#30#即征即退项目','1','30','1808077452505784320','draft_zzsybnsr','tcvat_zlb_ybnsr','jzjtxm',' ',' ','{Q[tcvat_zlb_ybnsr#31#jzjtxm]} + {Q[tcvat_zlb_ybnsr#32#jzjtxm]} + {Q[tcvat_zlb_ybnsr#33#jzjtxm]}'); 
DELETE FROM t_tctb_formula WHERE FID = 1808077454846207046;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808077454846207046,{ts'2023-10-31  00:00:00'},'其中：①分次预缴税额#一般项目金额不能为负数','其中：①分次预缴税额#一般项目数据异常','VAT_DRAFT_YBNSR_02','tcvat_zlb_ybnsr#31#ybxm','{Q[增值税税额 -其中：①分次预缴税额#一般项目]}','增值税一般纳税人总览表#31#一般项目','2','31','1808077452505784320','draft_zzsybnsr','tcvat_zlb_ybnsr','ybxm',' ',' ','{Q[tcvat_zlb_ybnsr#31#ybxm]}>=0'); 
DELETE FROM t_tctb_formula WHERE FID = 1808077454846207047;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808077454846207047,{ts'2023-10-31  00:00:00'},'其中：①分次预缴税额#即征即退项目金额不能为负数','其中：①分次预缴税额#即征即退项目数据异常','VAT_DRAFT_YBNSR_02','tcvat_zlb_ybnsr#31#jzjtxm',' ','增值税一般纳税人总览表#31#即征即退项目','2','31','1808077452505784320','draft_zzsybnsr','tcvat_zlb_ybnsr','jzjtxm',' ',' ','{Q[tcvat_zlb_ybnsr#31#jzjtxm]}>=0'); 
DELETE FROM t_tctb_formula WHERE FID = 1808077454846207048;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808077454846207048,{ts'2023-10-31  00:00:00'},'②本期缴纳上期应纳税额#一般项目金额不能为负数','②本期缴纳上期应纳税额#一般项目数据异常','VAT_DRAFT_YBNSR_02','tcvat_zlb_ybnsr#32#ybxm',' ',' ','2','32','1808077452505784320','draft_zzsybnsr','tcvat_zlb_ybnsr','ybxm',' ',' ','{Q[tcvat_zlb_ybnsr#32#ybxm]}>=0'); 
DELETE FROM t_tctb_formula WHERE FID = 1808077454846207049;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808077454846207049,{ts'2023-10-31  00:00:00'},'②本期缴纳上期应纳税额#即征即退项目金额不能为负数','②本期缴纳上期应纳税额#即征即退项目数据异常','VAT_DRAFT_YBNSR_02','tcvat_zlb_ybnsr#32#jzjtxm',' ',' ','2','32','1808077452505784320','draft_zzsybnsr','tcvat_zlb_ybnsr','jzjtxm',' ',' ','{Q[tcvat_zlb_ybnsr#32#jzjtxm]}>=0'); 
DELETE FROM t_tctb_formula WHERE FID = 1808077454846207050;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808077454846207050,{ts'2023-10-31  00:00:00'},'③本期缴纳欠缴税额#一般项目金额不能为负数','③本期缴纳欠缴税额#一般项目数据异常','VAT_DRAFT_YBNSR_02','tcvat_zlb_ybnsr#33#ybxm',' ',' ','2','33','1808077452505784320','draft_zzsybnsr','tcvat_zlb_ybnsr','ybxm',' ',' ','{Q[tcvat_zlb_ybnsr#33#ybxm]}>=0'); 
DELETE FROM t_tctb_formula WHERE FID = 1808077454846207051;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808077454846207051,{ts'2023-10-31  00:00:00'},'③本期缴纳欠缴税额#即征即退项目金额不能为负数','③本期缴纳欠缴税额#即征即退项目数据异常','VAT_DRAFT_YBNSR_02','tcvat_zlb_ybnsr#33#jzjtxm',' ',' ','2','33','1808077452505784320','draft_zzsybnsr','tcvat_zlb_ybnsr','jzjtxm',' ',' ','{Q[tcvat_zlb_ybnsr#33#jzjtxm]}>=0'); 
DELETE FROM t_tctb_formula WHERE FID = 1808077454846207052;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808077454846207052,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_02','tcvat_zlb_ybnsr#34#ybxm',' ','增值税一般纳税人总览表#34#一般项目','1','34','1808077452505784320','draft_zzsybnsr','tcvat_zlb_ybnsr','ybxm',' ',' ','{Q[tcvat_zlb_ybnsr#29#ybxm]}-{Q[tcvat_zlb_ybnsr#31#ybxm]}'); 
DELETE FROM t_tctb_formula WHERE FID = 1808077454846207053;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808077454846207053,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_02','tcvat_zlb_ybnsr#34#jzjtxm',' ','增值税一般纳税人总览表#34#即征即退项目','1','34','1808077452505784320','draft_zzsybnsr','tcvat_zlb_ybnsr','jzjtxm',' ',' ','{Q[tcvat_zlb_ybnsr#29#jzjtxm]}-{Q[tcvat_zlb_ybnsr#31#jzjtxm]}'); 
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084288;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084288,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_zzsybnsr_ybhz#1#ybxm',' ','增值税汇总一般企业税额计算总览表#1#一般项目','1','1','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_zzsybnsr_ybhz','ybxm',' ',' ','{S[select sum(ftaxamount) from t_tcvat_hz_account_summar where ftaxpayertype = ''#taxpayertype'' and forgid=''#orgid'' and fstartdate=to_date(''#startDate'') and fenddate = to_date(''#endDate'') and ftaxmethod=''一般计税'' and fjzjt=''0'']}');
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084289;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084289,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_zzsybnsr_ybhz#2#ybxm',' ','增值税汇总一般企业税额计算总览表#2#一般项目','1','2','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_zzsybnsr_ybhz','ybxm',' ',' ','{S[select sum(ftaxamount) from t_tcvat_hz_account_summar  where  ftaxpayertype = ''#taxpayertype'' and  forgid=''#orgid'' and fstartdate=to_date(''#startDate'') and fenddate = to_date(''#endDate'')  and (ftaxmethod=''按3%简易征收'' or ftaxmethod=''按5%简易征收'') and fjzjt=''0'']}');
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084290;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084290,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_zzsybnsr_ybhz#1#jzjtxm',' ','增值税汇总一般企业税额计算总览表#1#即征即退项目','1','1','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_zzsybnsr_ybhz','jzjtxm',' ',' ','{S[select sum(ftaxamount) from t_tcvat_hz_account_summar where ftaxpayertype = ''#taxpayertype'' and forgid=''#orgid'' and fstartdate=to_date(''#startDate'') and fenddate = to_date(''#endDate'')  and ftaxmethod=''一般计税'' and fjzjt=''1'']}');
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084291;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084291,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_zzsybnsr_ybhz#2#jzjtxm',' ','增值税汇总一般企业税额计算总览表#2#即征即退项目','1','2','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_zzsybnsr_ybhz','jzjtxm',' ',' ','{S[select sum(ftaxamount) from t_tcvat_hz_account_summar where ftaxpayertype = ''#taxpayertype'' and  forgid=''#orgid''  and fstartdate=to_date(''#startDate'') and fenddate = to_date(''#endDate'')  and (ftaxmethod=''按3%简易征收'' or ftaxmethod=''按5%简易征收'') and fjzjt=''1'']}');
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084292;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084292,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_zzsybnsr_ybhz#4#ybxm',' ','增值税汇总一般企业税额计算总览表#4#一般项目','1','4','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_zzsybnsr_ybhz','ybxm',' ',' ','{S[select sum(ftaxamount) from t_tcvat_hz_account_summar where  ftaxpayertype = ''#taxpayertype'' and forgid=''#orgid'' and fstartdate=to_date(''#startDate'') and fenddate = to_date(''#endDate'') and ftaxmethod in (''免税'',''出口免税'') and fjzjt=''0'']}');
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084293;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084293,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_zzsybnsr_ybhz#6#ybxm',' ','增值税汇总一般企业税额计算总览表#6#一般项目','1','6','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_zzsybnsr_ybhz','ybxm',' ',' ','{S[select sum(t1.ftotaltaxamount) from t_tcvat_hz_account_summar   t1 , t_tpo_taxitemrateentry t2  where t1.ftaxpayertype = ''#taxpayertype'' and t1.fbusinesstypeid=t2.fentryid  and  t1.forgid=''#orgid'' and t1.fstartdate>=to_date(''#startDate'') and t1.fenddate <= to_date(''#endDate'') and t1.fjzjt=''0'' and t1.ftaxrate in (''9%'',''10%'',''11%'',''13%'',''16%'',''17%'') and (t2.flongnumber like ''1%'' or t2.flongnumber like ''2%'')]}');
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084294;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084294,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_zzsybnsr_ybhz#9#ybxm',' ','增值税汇总一般企业税额计算总览表#9#一般项目','1','9','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_zzsybnsr_ybhz','ybxm',' ',' ','{S[select sum(ftaxamount-finputtaxamount) from t_tcvat_hz_deduction_sum where ftaxpayertype = ''#taxpayertype'' and  forgid=''#orgid'' and fstartdate=to_date(''#startDate'') and fenddate = to_date(''#endDate'')]}');
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084295;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084295,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_zzsybnsr_ybhz#10#ybxm',' ','增值税汇总一般企业税额计算总览表#10#一般项目','1','10','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_zzsybnsr_ybhz','ybxm',' ',' ','{S[select sum(faccountingamount-fjzjtrolloutamount) from t_tcvat_hz_roll_out_sum where ftaxpayertype = ''#taxpayertype'' and forgid=''#orgid'' and fstartdate= to_date(''#startDate'') and fenddate = to_date(''#endDate'')]}');
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084296;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084296,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_zzsybnsr_ybhz#12#ybxm',' ','增值税汇总一般企业税额计算总览表#12#一般项目','1','12','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_zzsybnsr_ybhz','ybxm',' ',' ','{S[SELECT fqmldse from t_tcvat_ybnsr_zb t1  where t1.fewblxh=''1'' AND t1.fsbbid IN (select CONCAT(fid , '''') from t_tctb_declare_main where FNSRTYPE = ''#taxpayertype'' and FSKSSQQ  = to_date(''#prestartDate'') and FSKSSQZ  = to_date(''#preendDate'') and FTAXLIMIT = ''month'' and  FORGID = ''#orgid'') ]}');
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084297;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084297,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_zzsybnsr_ybhz#16#ybxm',' ','增值税汇总一般企业税额计算总览表#16#一般项目','1','16','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_zzsybnsr_ybhz','ybxm',' ',' ','{S[SELECT fqmye from t_tcvat_ybnsr_jjdj t1  where t1.fewblxh=''1'' AND t1.fsbbid IN (select CONCAT(fid , '''') from t_tctb_declare_main where FNSRTYPE = ''#taxpayertype'' and FSKSSQQ  = to_date(''#prestartDate'') and FSKSSQZ  = to_date(''#preendDate'') and FTAXLIMIT = ''month'' and  FORGID = ''#orgid'') ]}');
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084298;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084298,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_zzsybnsr_ybhz#17#ybxm',' ','增值税汇总一般企业税额计算总览表#17#一般项目','1','17','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_zzsybnsr_ybhz','ybxm',' ',' ','{S[select sum(fcurrentamount) from t_tcvat_hz_income_add_tem where ftaxpayertype = ''#taxpayertype'' and  forgid=''#orgid'' and fstartdate=to_date(''#startDate'') and fenddate = to_date(''#endDate'') and fservicetype=''一般计税项目'']}');
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084299;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084299,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_zzsybnsr_ybhz#18#ybxm',' ','增值税汇总一般企业税额计算总览表#18#一般项目','1','18','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_zzsybnsr_ybhz','ybxm',' ',' ','{S[select sum(fcurrentdecrease) from t_tcvat_hz_income_add_tem where ftaxpayertype = ''#taxpayertype'' and  forgid=''#orgid'' and fstartdate=to_date(''#startDate'') and fenddate = to_date(''#endDate'')  and fservicetype=''一般计税项目'']}');
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084300;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084300,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_zzsybnsr_ybhz#22#ybxm',' ','增值税汇总一般企业税额计算总览表#22#一般项目','1','22','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_zzsybnsr_ybhz','ybxm',' ',' ','{S[select sum(fbqfse) from t_tcvat_hz_taxre_summary where ftaxpayertype = ''#taxpayertype'' and forgid=''#orgid'' and fstartdate=to_date(''#startDate'') and fenddate = to_date(''#endDate'')]}');
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084301;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084301,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_zzsybnsr_ybhz#27#ybxm',' ','增值税汇总一般企业税额计算总览表#27#一般项目','1','27','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_zzsybnsr_ybhz','ybxm',' ',' ','if({C[#diff]} = 1,({S[select sum(t1.fpricetaxamount) from t_tcvat_hz_account_summar t1 where t1.ftaxpayertype = ''#taxpayertype'' and t1.forgid=''#orgid'' and t1.fstartdate=to_date(''#startDate'') and t1.fenddate = to_date(''#endDate'') and t1.fjzjt=''0'' and t1.ftaxrate=''5%'']} - min({S[select sum(t1.fpricetaxamount) from t_tcvat_hz_account_summar t1 where t1.ftaxpayertype = ''#taxpayertype'' and t1.forgid=''#orgid'' and t1.fstartdate=to_date(''#startDate'') and t1.fenddate = to_date(''#endDate'') and t1.fjzjt=''0'' and t1.ftaxrate=''5%'']}, {S[select sum(fcurrentamount) from t_tcvat_hz_diff_temp where forgid=''#orgid'' and fstartdate=to_date(''#startDate'') and fenddate = to_date(''#endDate'') and fdifftypeid=859352590188589060]} + {S[select sum(t1.fqmye) from t_tcvat_ybnsr_fb3 t1 left join t_tctb_declare_main t2 on t1.fsbbid = CONCAT(t2.fid , '''') where t1.fewblxh=''5'' and t2.forgid=''#orgid'' and t2.fskssqq=to_date(''#prestartDate'') and t2.fskssqz=to_date(''#preendDate'') and t2.fnsrtype=''#taxpayertype'']}))/1.05*0.05  +  ({S[select sum(t1.fpricetaxamount) from t_tcvat_hz_account_summar t1 where t1.ftaxpayertype = ''#taxpayertype'' and t1.forgid=''#orgid''  and t1.fstartdate=to_date(''#startDate'') and t1.fenddate = to_date(''#endDate'') and t1.fjzjt=''0'' and t1.ftaxrate=''3%'']} - min({S[select sum(t1.fpricetaxamount) from t_tcvat_hz_account_summar t1 where t1.ftaxpayertype = ''#taxpayertype'' and  t1.forgid=''#orgid'' and t1.fstartdate=to_date(''#startDate'') and t1.fenddate = to_date(''#endDate'') and t1.fjzjt=''0'' and t1.ftaxrate=''3%'']}, {S[select sum(fcurrentamount) from t_tcvat_hz_diff_temp where forgid=''#orgid'' and fstartdate=to_date(''#startDate'') and fenddate = to_date(''#endDate'') and fdifftypeid=859352590188589061]} + {S[select sum(t1.fqmye) from t_tcvat_ybnsr_fb3 t1 left join t_tctb_declare_main t2 on t1.fsbbid = CONCAT(t2.fid , '''') where t1.fewblxh=''6'' and t2.forgid=''#orgid'' and t2.fskssqq=to_date(''#prestartDate'') and t2.fskssqz=to_date(''#preendDate'') and t2.fnsrtype=''#taxpayertype'']}))/1.03*0.03,{S[select sum(t1.ftotaltaxamount) from t_tcvat_hz_account_summar t1 , t_tpo_taxitemrateentry t2  where t1.ftaxpayertype = ''#taxpayertype'' and t1.fbusinesstypeid=t2.fentryid  and  t1.forgid=''#orgid'' and t1.fstartdate=to_date(''#startDate'') and t1.fenddate = to_date(''#endDate'') and t1.fjzjt=''0'' and t1.ftaxrate in (''3%'',''5%'') ]})');
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084302;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084302,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_zzsybnsr_ybhz#6#jzjtxm',' ','增值税汇总一般企业税额计算总览表#6#即征即退项目','1','6','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_zzsybnsr_ybhz','jzjtxm',' ',' ','{S[select sum(t1.ftotaltaxamount) from t_tcvat_hz_account_summar t1 , t_tpo_taxitemrateentry t2  where t1.ftaxpayertype = ''#taxpayertype'' and t1.fbusinesstypeid=t2.fentryid  and  t1.forgid=''#orgid'' and t1.fstartdate >=to_date(''#startDate'') and t1.fenddate <= to_date(''#endDate'') and t1.fjzjt=''1'' and t1.FTAXMETHOD = ''一般计税'' and (t2.flongnumber like ''1%'' or t2.flongnumber like ''2%'')]}');
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084303;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084303,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_zzsybnsr_ybhz#9#jzjtxm',' ','增值税汇总一般企业税额计算总览表#9#即征即退项目','1','9','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_zzsybnsr_ybhz','jzjtxm',' ',' ','{S[select sum(finputtaxamount) from t_tcvat_hz_deduction_sum  where ftaxpayertype = ''#taxpayertype'' and forgid=''#orgid'' and fstartdate=to_date(''#startDate'') and fenddate = to_date(''#endDate'')]}');
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084304;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084304,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_zzsybnsr_ybhz#10#jzjtxm',' ','增值税汇总一般企业税额计算总览表#10#即征即退项目','1','10','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_zzsybnsr_ybhz','jzjtxm',' ',' ','{S[select sum(fjzjtrolloutamount) from t_tcvat_hz_roll_out_sum where ftaxpayertype = ''#taxpayertype'' and forgid=''#orgid'' and fstartdate=to_date(''#startDate'') and fenddate = to_date(''#endDate'') ]}');
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084305;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084305,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_zzsybnsr_ybhz#12#jzjtxm',' ','增值税汇总一般企业税额计算总览表#12#即征即退项目','1','12','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_zzsybnsr_ybhz','jzjtxm',' ',' ','{S[SELECT fqmldse from t_tcvat_ybnsr_zb t1  where t1.fewblxh=''3'' AND t1.fsbbid IN (select CONCAT(fid , '''') from t_tctb_declare_main where FNSRTYPE = ''#taxpayertype'' and FSKSSQQ  = to_date(''#prestartDate'') and FSKSSQZ  = to_date(''#preendDate'') and FTAXLIMIT = ''month'' and  FORGID = ''#orgid'') ]}');
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084306;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084306,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_zzsybnsr_ybhz#16#jzjtxm',' ','增值税汇总一般企业税额计算总览表#16#即征即退项目','1','16','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_zzsybnsr_ybhz','jzjtxm',' ',' ','{S[SELECT fqmye from t_tcvat_ybnsr_jjdj t1  where t1.fewblxh=''2'' AND t1.fsbbid IN (select CONCAT(fid , '''') from t_tctb_declare_main where FNSRTYPE = ''#taxpayertype'' and FSKSSQQ  = to_date(''#prestartDate'') and FSKSSQZ  = to_date(''#preendDate'') and FTAXLIMIT = ''month'' and  FORGID = ''#orgid'') ]}');
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084307;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084307,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_zzsybnsr_ybhz#17#jzjtxm',' ','增值税汇总一般企业税额计算总览表#17#即征即退项目','1','17','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_zzsybnsr_ybhz','jzjtxm',' ',' ','{S[select sum(fcurrentamount) from t_tcvat_hz_income_add_tem where ftaxpayertype = ''#taxpayertype'' and forgid=''#orgid'' and fstartdate=to_date(''#startDate'') and fenddate = to_date(''#endDate'') and fservicetype=''即征即退项目'']}');
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084308;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084308,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_zzsybnsr_ybhz#18#jzjtxm',' ','增值税汇总一般企业税额计算总览表#18#即征即退项目','1','18','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_zzsybnsr_ybhz','jzjtxm',' ',' ','{S[select sum(fcurrentdecrease) from t_tcvat_hz_income_add_tem where ftaxpayertype = ''#taxpayertype'' and  forgid=''#orgid'' and fstartdate=to_date(''#startDate'') and fenddate = to_date(''#endDate'') and fservicetype=''即征即退项目'']}');
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084309;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084309,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_zzsybnsr_ybhz#27#jzjtxm',' ','增值税汇总一般企业税额计算总览表#27#即征即退项目','1','27','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_zzsybnsr_ybhz','jzjtxm',' ',' ','{S[select sum(t1.ftotaltaxamount) from t_tcvat_hz_account_summar t1 , t_tpo_taxitemrateentry t2  where t1.ftaxpayertype = ''#taxpayertype'' and t1.fbusinesstypeid=t2.fentryid  and  t1.forgid=''#orgid'' and t1.fstartdate=to_date(''#startDate'') and t1.fenddate = to_date(''#endDate'') and t1.fjzjt=''1'' and t1.ftaxrate in (''3%'',''5%'') ]}');
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084310;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084310,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_dg_ybnsr_ybhz#1#mainid',' ','底稿单据表#1#底稿主数据ID','4','1','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_dg_ybnsr_ybhz','mainid','4',' ','{S[select fid from t_tctb_draft_main where forgid=''#orgid'' and fstartdate=to_date(''#startDate'') and fenddate=to_date(''#endDate'') and ftemplatetype=''#templatetype'']}');
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084311;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084311,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_zzsybnsr_ybhz#3#ybxm',' ','增值税汇总一般企业税额计算总览表#3#一般项目','1','3','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_zzsybnsr_ybhz','ybxm',' ',' ','{S[select sum(ftaxamount) from t_tcvat_hz_account_summar where  ftaxpayertype = ''#taxpayertype'' and forgid=''#orgid'' and fstartdate=to_date(''#startDate'') and fenddate = to_date(''#endDate'') and ftaxmethod = ''免抵退税'' and fjzjt=''0'']}');
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084312;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084312,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_zzsybnsr_ybhz#7#jzjtxm',' ','增值税汇总一般企业税额计算总览表#7#即征即退项目','1','7','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_zzsybnsr_ybhz','jzjtxm',' ',' ','{S[select sum(t1.ftotaltaxamount) from t_tcvat_hz_account_summar t1 , t_tpo_taxitemrateentry t2  where t1.ftaxpayertype = ''#taxpayertype'' and t1.fbusinesstypeid=t2.fentryid  and  t1.forgid=''#orgid'' and t1.fstartdate=to_date(''#startDate'') and t1.fenddate = to_date(''#endDate'') and t1.fjzjt=''1'' and t1.FTAXMETHOD = ''一般计税'' and (t2.flongnumber like ''3%''  or t2.flongnumber like ''4%''  or t2.flongnumber like ''5%'')]}');
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084313;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084313,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_ybnsr_ybhz_fpb#1#org',' ','增值税汇总一般企业分配表#1#组织','4','1','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_ybnsr_ybhz_fpb','org',' ',' ','{S[SELECT fassignorg FROM t_tcvat_ybhz_assign WHERE fid IN (SELECT fid FROM t_tcvat_ybhz_policy_conf WHERE forgid = ''#orgid'' AND fstartdate = to_date(''#startDate'') AND fenddate = to_date(''#endDate''))  and fseq = 1]}');
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084314;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084314,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_ybnsr_ybhz_fpb#2#org',' ','增值税汇总一般企业分配表#2#组织','4','2','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_ybnsr_ybhz_fpb','org',' ',' ','{S[SELECT fassignorg FROM t_tcvat_ybhz_assign WHERE fid IN (SELECT fid FROM t_tcvat_ybhz_policy_conf WHERE forgid = ''#orgid'' AND fstartdate = to_date(''#startDate'') AND fenddate = to_date(''#endDate''))  and fseq = 2]}');
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084315;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084315,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_ybnsr_ybhz_fpb#3#org',' ','增值税汇总一般企业分配表#3#组织','4','3','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_ybnsr_ybhz_fpb','org',' ',' ','{S[SELECT fassignorg FROM t_tcvat_ybhz_assign WHERE fid IN (SELECT fid FROM t_tcvat_ybhz_policy_conf WHERE forgid = ''#orgid'' AND fstartdate = to_date(''#startDate'') AND fenddate = to_date(''#endDate''))  and fseq = 3]}');
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084316;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084316,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_ybnsr_ybhz_fpb#4#org',' ','增值税汇总一般企业分配表#4#组织','4','4','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_ybnsr_ybhz_fpb','org',' ',' ','{S[SELECT fassignorg FROM t_tcvat_ybhz_assign WHERE fid IN (SELECT fid FROM t_tcvat_ybhz_policy_conf WHERE forgid = ''#orgid'' AND fstartdate = to_date(''#startDate'') AND fenddate = to_date(''#endDate''))  and fseq = 4]}');
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084317;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084317,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_ybnsr_ybhz_fpb#5#org',' ','增值税汇总一般企业分配表#5#组织','4','5','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_ybnsr_ybhz_fpb','org',' ',' ','{S[SELECT fassignorg FROM t_tcvat_ybhz_assign WHERE fid IN (SELECT fid FROM t_tcvat_ybhz_policy_conf WHERE forgid = ''#orgid'' AND fstartdate = to_date(''#startDate'') AND fenddate = to_date(''#endDate''))  and fseq = 5]}');
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084318;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084318,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_ybnsr_ybhz_fpb#6#org',' ','增值税汇总一般企业分配表#6#组织','4','6','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_ybnsr_ybhz_fpb','org',' ',' ','{S[SELECT fassignorg FROM t_tcvat_ybhz_assign WHERE fid IN (SELECT fid FROM t_tcvat_ybhz_policy_conf WHERE forgid = ''#orgid'' AND fstartdate = to_date(''#startDate'') AND fenddate = to_date(''#endDate''))  and fseq = 6]}');
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084319;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084319,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_ybnsr_ybhz_fpb#1#xssr','① 带着每一行的【组织】，去第一步政策确认中取“收入归属组织”= 该行【组织】的所有收入取数规则，假设有10个规则 ② 在这10个规则中筛选商品税收分类编码以1、2开头且即征即退=否的所有取数规则，假设有6个 ③ 带着这6个规则去第二步计税台账的“收入明细台账”中取其“开票收入和未开票收入”的合计行的金额。 销售收入 = ③的合计金额','增值税汇总一般企业分配表#1#一般货物及劳务销售收入','1','1','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_ybnsr_ybhz_fpb','xssr',' ',' ','{S[SELECT SUM(s.ftaxamount) FROM t_tcvat_hz_account_summar s,t_tpo_taxitemrateentry t WHERE s.FBUSINESSTYPEID = t.FENTRYID AND ( t.fmergecode LIKE ''1%'' OR t.fmergecode LIKE ''2%'') AND s.fjzjt= ''0'' AND s.fsuborgid =(SELECT fassignorg FROM t_tcvat_ybhz_assign WHERE fid IN (SELECT fid FROM t_tcvat_ybhz_policy_conf WHERE forgid = ''#orgid'' AND fstartdate = to_date(''#startDate'') AND fenddate = to_date(''#endDate''))  and fseq = 1)  AND s.fstartdate = to_date(''#startDate'') AND s.fenddate = to_date(''#endDate'') AND s.ftaxpayertype = ''#taxpayertype''  AND s.fruleid IN (SELECT fruleid FROM t_tcvat_ybhz_income WHERE fid IN (SELECT fid FROM t_tcvat_ybhz_policy_conf WHERE forgid = ''#orgid'' AND fstartdate = to_date(''#startDate'') AND fenddate = to_date(''#endDate'')) AND fbelongsorg = (SELECT fassignorg FROM t_tcvat_ybhz_assign WHERE fid IN (SELECT fid FROM t_tcvat_ybhz_policy_conf WHERE forgid = ''#orgid'' AND fstartdate = to_date(''#startDate'') AND fenddate = to_date(''#endDate''))  and fseq = 1))]}');
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084320;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084320,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_ybnsr_ybhz_fpb#2#xssr',' ','增值税汇总一般企业分配表#2#一般货物及劳务销售收入','1','2','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_ybnsr_ybhz_fpb','xssr',' ',' ','{S[SELECT SUM(s.ftaxamount) FROM t_tcvat_hz_account_summar s,t_tpo_taxitemrateentry t WHERE s.FBUSINESSTYPEID = t.FENTRYID AND ( t.fmergecode LIKE ''1%'' OR t.fmergecode LIKE ''2%'') AND s.fjzjt= ''0'' AND s.fsuborgid =(SELECT fassignorg FROM t_tcvat_ybhz_assign WHERE fid IN (SELECT fid FROM t_tcvat_ybhz_policy_conf WHERE forgid = ''#orgid'' AND fstartdate = to_date(''#startDate'') AND fenddate = to_date(''#endDate''))  and fseq = 2) AND s.fstartdate = to_date(''#startDate'') AND s.fenddate = to_date(''#endDate'') AND s.ftaxpayertype = ''#taxpayertype''  AND s.fruleid IN (SELECT fruleid FROM t_tcvat_ybhz_income WHERE fid IN (SELECT fid FROM t_tcvat_ybhz_policy_conf WHERE forgid = ''#orgid'' AND fstartdate = to_date(''#startDate'') AND fenddate = to_date(''#endDate'')) AND fbelongsorg = (SELECT fassignorg FROM t_tcvat_ybhz_assign WHERE fid IN (SELECT fid FROM t_tcvat_ybhz_policy_conf WHERE forgid = ''#orgid'' AND fstartdate = to_date(''#startDate'') AND fenddate = to_date(''#endDate''))  and fseq = 2))]}');
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084321;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084321,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_ybnsr_ybhz_fpb#3#xssr',' ','增值税汇总一般企业分配表#3#一般货物及劳务销售收入','1','3','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_ybnsr_ybhz_fpb','xssr',' ',' ','{S[SELECT SUM(s.ftaxamount) FROM t_tcvat_hz_account_summar s,t_tpo_taxitemrateentry t WHERE s.FBUSINESSTYPEID = t.FENTRYID AND ( t.fmergecode LIKE ''1%'' OR t.fmergecode LIKE ''2%'') AND s.fjzjt= ''0'' AND s.fsuborgid =(SELECT fassignorg FROM t_tcvat_ybhz_assign WHERE fid IN (SELECT fid FROM t_tcvat_ybhz_policy_conf WHERE forgid = ''#orgid'' AND fstartdate = to_date(''#startDate'') AND fenddate = to_date(''#endDate''))  and fseq = 3) AND s.fstartdate = to_date(''#startDate'') AND s.fenddate = to_date(''#endDate'') AND s.ftaxpayertype = ''#taxpayertype''  AND s.fruleid IN (SELECT fruleid FROM t_tcvat_ybhz_income WHERE fid IN (SELECT fid FROM t_tcvat_ybhz_policy_conf WHERE forgid = ''#orgid'' AND fstartdate = to_date(''#startDate'') AND fenddate = to_date(''#endDate'')) AND fbelongsorg = (SELECT fassignorg FROM t_tcvat_ybhz_assign WHERE fid IN (SELECT fid FROM t_tcvat_ybhz_policy_conf WHERE forgid = ''#orgid'' AND fstartdate = to_date(''#startDate'') AND fenddate = to_date(''#endDate''))  and fseq = 3))]}');
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084322;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084322,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_ybnsr_ybhz_fpb#4#xssr',' ','增值税汇总一般企业分配表#4#一般货物及劳务销售收入','1','4','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_ybnsr_ybhz_fpb','xssr',' ',' ','{S[SELECT SUM(s.ftaxamount) FROM t_tcvat_hz_account_summar s,t_tpo_taxitemrateentry t WHERE s.FBUSINESSTYPEID = t.FENTRYID AND ( t.fmergecode LIKE ''1%'' OR t.fmergecode LIKE ''2%'') AND s.fjzjt= ''0'' AND s.fsuborgid =(SELECT fassignorg FROM t_tcvat_ybhz_assign WHERE fid IN (SELECT fid FROM t_tcvat_ybhz_policy_conf WHERE forgid = ''#orgid'' AND fstartdate = to_date(''#startDate'') AND fenddate = to_date(''#endDate''))  and fseq = 4) AND s.fstartdate = to_date(''#startDate'') AND s.fenddate = to_date(''#endDate'') AND s.ftaxpayertype = ''#taxpayertype''  AND s.fruleid IN (SELECT fruleid FROM t_tcvat_ybhz_income WHERE fid IN (SELECT fid FROM t_tcvat_ybhz_policy_conf WHERE forgid = ''#orgid'' AND fstartdate = to_date(''#startDate'') AND fenddate = to_date(''#endDate'')) AND fbelongsorg = (SELECT fassignorg FROM t_tcvat_ybhz_assign WHERE fid IN (SELECT fid FROM t_tcvat_ybhz_policy_conf WHERE forgid = ''#orgid'' AND fstartdate = to_date(''#startDate'') AND fenddate = to_date(''#endDate''))  and fseq = 4))]}');
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084323;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084323,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_ybnsr_ybhz_fpb#6#xssr',' ','增值税汇总一般企业分配表#6#一般货物及劳务销售收入','1','6','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_ybnsr_ybhz_fpb','xssr',' ',' ','{S[SELECT SUM(s.ftaxamount) FROM t_tcvat_hz_account_summar s,t_tpo_taxitemrateentry t WHERE s.FBUSINESSTYPEID = t.FENTRYID AND ( t.fmergecode LIKE ''1%'' OR t.fmergecode LIKE ''2%'') AND s.fjzjt= ''0'' AND s.fsuborgid =(SELECT fassignorg FROM t_tcvat_ybhz_assign WHERE fid IN (SELECT fid FROM t_tcvat_ybhz_policy_conf WHERE forgid = ''#orgid'' AND fstartdate = to_date(''#startDate'') AND fenddate = to_date(''#endDate''))  and fseq = 6) AND s.fstartdate = to_date(''#startDate'') AND s.fenddate = to_date(''#endDate'') AND s.ftaxpayertype = ''#taxpayertype''  AND s.fruleid IN (SELECT fruleid FROM t_tcvat_ybhz_income WHERE fid IN (SELECT fid FROM t_tcvat_ybhz_policy_conf WHERE forgid = ''#orgid'' AND fstartdate = to_date(''#startDate'') AND fenddate = to_date(''#endDate'')) AND fbelongsorg = (SELECT fassignorg FROM t_tcvat_ybhz_assign WHERE fid IN (SELECT fid FROM t_tcvat_ybhz_policy_conf WHERE forgid = ''#orgid'' AND fstartdate = to_date(''#startDate'') AND fenddate = to_date(''#endDate''))  and fseq = 6))]}');
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084324;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084324,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_ybnsr_ybhz_fpb#1#jzjtxssr',' ','增值税汇总一般企业分配表#1#一般货物及劳务即征即退销售收入','1','1','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_ybnsr_ybhz_fpb','jzjtxssr',' ',' ','{S[SELECT SUM(s.ftaxamount) FROM t_tcvat_hz_account_summar s,t_tpo_taxitemrateentry t WHERE s.FBUSINESSTYPEID = t.FENTRYID AND ( t.fmergecode LIKE ''1%'' OR t.fmergecode LIKE ''2%'') AND s.fjzjt= ''1'' AND s.fsuborgid =(SELECT fassignorg FROM t_tcvat_ybhz_assign WHERE fid IN (SELECT fid FROM t_tcvat_ybhz_policy_conf WHERE forgid = ''#orgid'' AND fstartdate = to_date(''#startDate'') AND fenddate = to_date(''#endDate''))  and fseq = 1) AND s.fstartdate = to_date(''#startDate'') AND s.fenddate = to_date(''#endDate'') AND s.ftaxpayertype = ''#taxpayertype''  AND s.fruleid IN (SELECT fruleid FROM t_tcvat_ybhz_income WHERE fid IN (SELECT fid FROM t_tcvat_ybhz_policy_conf WHERE forgid = ''#orgid'' AND fstartdate = to_date(''#startDate'') AND fenddate = to_date(''#endDate'')) AND fbelongsorg = (SELECT fassignorg FROM t_tcvat_ybhz_assign WHERE fid IN (SELECT fid FROM t_tcvat_ybhz_policy_conf WHERE forgid = ''#orgid'' AND fstartdate = to_date(''#startDate'') AND fenddate = to_date(''#endDate''))  and fseq = 1))]}');
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084325;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084325,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_ybnsr_ybhz_fpb#2#jzjtxssr',' ','增值税汇总一般企业分配表#2#一般货物及劳务即征即退销售收入','1','2','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_ybnsr_ybhz_fpb','jzjtxssr',' ',' ','{S[SELECT SUM(s.ftaxamount) FROM t_tcvat_hz_account_summar s,t_tpo_taxitemrateentry t WHERE s.FBUSINESSTYPEID = t.FENTRYID AND ( t.fmergecode LIKE ''1%'' OR t.fmergecode LIKE ''2%'') AND s.fjzjt= ''1'' AND s.fsuborgid =(SELECT fassignorg FROM t_tcvat_ybhz_assign WHERE fid IN (SELECT fid FROM t_tcvat_ybhz_policy_conf WHERE forgid = ''#orgid'' AND fstartdate = to_date(''#startDate'') AND fenddate = to_date(''#endDate''))  and fseq = 2) AND s.fstartdate = to_date(''#startDate'') AND s.fenddate = to_date(''#endDate'') AND s.ftaxpayertype = ''#taxpayertype''  AND s.fruleid IN (SELECT fruleid FROM t_tcvat_ybhz_income WHERE fid IN (SELECT fid FROM t_tcvat_ybhz_policy_conf WHERE forgid = ''#orgid'' AND fstartdate = to_date(''#startDate'') AND fenddate = to_date(''#endDate'')) AND fbelongsorg = (SELECT fassignorg FROM t_tcvat_ybhz_assign WHERE fid IN (SELECT fid FROM t_tcvat_ybhz_policy_conf WHERE forgid = ''#orgid'' AND fstartdate = to_date(''#startDate'') AND fenddate = to_date(''#endDate''))  and fseq = 2))]}');
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084326;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084326,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_ybnsr_ybhz_fpb#3#jzjtxssr',' ','增值税汇总一般企业分配表#3#一般货物及劳务即征即退销售收入','1','3','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_ybnsr_ybhz_fpb','jzjtxssr',' ',' ','{S[SELECT SUM(s.ftaxamount) FROM t_tcvat_hz_account_summar s,t_tpo_taxitemrateentry t WHERE s.FBUSINESSTYPEID = t.FENTRYID AND ( t.fmergecode LIKE ''1%'' OR t.fmergecode LIKE ''2%'') AND s.fjzjt= ''1'' AND s.fsuborgid =(SELECT fassignorg FROM t_tcvat_ybhz_assign WHERE fid IN (SELECT fid FROM t_tcvat_ybhz_policy_conf WHERE forgid = ''#orgid'' AND fstartdate = to_date(''#startDate'') AND fenddate = to_date(''#endDate''))  and fseq = 3) AND s.fstartdate = to_date(''#startDate'') AND s.fenddate = to_date(''#endDate'') AND s.ftaxpayertype = ''#taxpayertype''  AND s.fruleid IN (SELECT fruleid FROM t_tcvat_ybhz_income WHERE fid IN (SELECT fid FROM t_tcvat_ybhz_policy_conf WHERE forgid = ''#orgid'' AND fstartdate = to_date(''#startDate'') AND fenddate = to_date(''#endDate'')) AND fbelongsorg = (SELECT fassignorg FROM t_tcvat_ybhz_assign WHERE fid IN (SELECT fid FROM t_tcvat_ybhz_policy_conf WHERE forgid = ''#orgid'' AND fstartdate = to_date(''#startDate'') AND fenddate = to_date(''#endDate''))  and fseq = 3))]}');
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084327;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084327,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_ybnsr_ybhz_fpb#4#jzjtxssr',' ','增值税汇总一般企业分配表#4#一般货物及劳务即征即退销售收入','1','4','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_ybnsr_ybhz_fpb','jzjtxssr',' ',' ','{S[SELECT SUM(s.ftaxamount) FROM t_tcvat_hz_account_summar s,t_tpo_taxitemrateentry t WHERE s.FBUSINESSTYPEID = t.FENTRYID AND ( t.fmergecode LIKE ''1%'' OR t.fmergecode LIKE ''2%'') AND s.fjzjt= ''1'' AND s.fsuborgid =(SELECT fassignorg FROM t_tcvat_ybhz_assign WHERE fid IN (SELECT fid FROM t_tcvat_ybhz_policy_conf WHERE forgid = ''#orgid'' AND fstartdate = to_date(''#startDate'') AND fenddate = to_date(''#endDate''))  and fseq = 4) AND s.fstartdate = to_date(''#startDate'') AND s.fenddate = to_date(''#endDate'') AND s.ftaxpayertype = ''#taxpayertype''  AND s.fruleid IN (SELECT fruleid FROM t_tcvat_ybhz_income WHERE fid IN (SELECT fid FROM t_tcvat_ybhz_policy_conf WHERE forgid = ''#orgid'' AND fstartdate = to_date(''#startDate'') AND fenddate = to_date(''#endDate'')) AND fbelongsorg = (SELECT fassignorg FROM t_tcvat_ybhz_assign WHERE fid IN (SELECT fid FROM t_tcvat_ybhz_policy_conf WHERE forgid = ''#orgid'' AND fstartdate = to_date(''#startDate'') AND fenddate = to_date(''#endDate''))  and fseq = 4))]}');
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084328;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084328,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_ybnsr_ybhz_fpb#6#jzjtxssr',' ','增值税汇总一般企业分配表#6#一般货物及劳务即征即退销售收入','1','6','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_ybnsr_ybhz_fpb','jzjtxssr',' ',' ','{S[SELECT SUM(s.ftaxamount) FROM t_tcvat_hz_account_summar s,t_tpo_taxitemrateentry t WHERE s.FBUSINESSTYPEID = t.FENTRYID AND ( t.fmergecode LIKE ''1%'' OR t.fmergecode LIKE ''2%'') AND s.fjzjt= ''1'' AND s.fsuborgid =(SELECT fassignorg FROM t_tcvat_ybhz_assign WHERE fid IN (SELECT fid FROM t_tcvat_ybhz_policy_conf WHERE forgid = ''#orgid'' AND fstartdate = to_date(''#startDate'') AND fenddate = to_date(''#endDate''))  and fseq = 6) AND s.fstartdate = to_date(''#startDate'') AND s.fenddate = to_date(''#endDate'') AND s.ftaxpayertype = ''#taxpayertype''  AND s.fruleid IN (SELECT fruleid FROM t_tcvat_ybhz_income WHERE fid IN (SELECT fid FROM t_tcvat_ybhz_policy_conf WHERE forgid = ''#orgid'' AND fstartdate = to_date(''#startDate'') AND fenddate = to_date(''#endDate'')) AND fbelongsorg = (SELECT fassignorg FROM t_tcvat_ybhz_assign WHERE fid IN (SELECT fid FROM t_tcvat_ybhz_policy_conf WHERE forgid = ''#orgid'' AND fstartdate = to_date(''#startDate'') AND fenddate = to_date(''#endDate''))  and fseq = 6))]}');
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084329;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084329,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_ybnsr_ybhz_fpb#1#ysfwxssr',' ','增值税汇总一般企业分配表#1#应税服务销售收入','1','1','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_ybnsr_ybhz_fpb','ysfwxssr',' ',' ','{S[SELECT SUM(s.ftaxamount) FROM t_tcvat_hz_account_summar s,t_tpo_taxitemrateentry t WHERE s.FBUSINESSTYPEID = t.FENTRYID AND ( t.fmergecode LIKE ''3%'' OR t.fmergecode LIKE ''4%''  OR t.fmergecode LIKE ''5%'') AND s.fjzjt= ''0'' AND s.fsuborgid =(SELECT fassignorg FROM t_tcvat_ybhz_assign WHERE fid IN (SELECT fid FROM t_tcvat_ybhz_policy_conf WHERE forgid = ''#orgid'' AND fstartdate = to_date(''#startDate'') AND fenddate = to_date(''#endDate''))  and fseq = 1) AND s.fstartdate = to_date(''#startDate'') AND s.fenddate = to_date(''#endDate'') AND s.ftaxpayertype = ''#taxpayertype''  AND s.fruleid IN (SELECT fruleid FROM t_tcvat_ybhz_income WHERE fid IN (SELECT fid FROM t_tcvat_ybhz_policy_conf WHERE forgid = ''#orgid'' AND fstartdate = to_date(''#startDate'') AND fenddate = to_date(''#endDate'')) AND fbelongsorg = (SELECT fassignorg FROM t_tcvat_ybhz_assign WHERE fid IN (SELECT fid FROM t_tcvat_ybhz_policy_conf WHERE forgid = ''#orgid'' AND fstartdate = to_date(''#startDate'') AND fenddate = to_date(''#endDate''))  and fseq = 1))]}');
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084330;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084330,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_ybnsr_ybhz_fpb#2#ysfwxssr',' ','增值税汇总一般企业分配表#2#应税服务销售收入','1','2','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_ybnsr_ybhz_fpb','ysfwxssr',' ',' ','{S[SELECT SUM(s.ftaxamount) FROM t_tcvat_hz_account_summar s,t_tpo_taxitemrateentry t WHERE s.FBUSINESSTYPEID = t.FENTRYID AND ( t.fmergecode LIKE ''3%'' OR t.fmergecode LIKE ''4%''  OR t.fmergecode LIKE ''5%'') AND s.fjzjt= ''0'' AND s.fsuborgid =(SELECT fassignorg FROM t_tcvat_ybhz_assign WHERE fid IN (SELECT fid FROM t_tcvat_ybhz_policy_conf WHERE forgid = ''#orgid'' AND fstartdate = to_date(''#startDate'') AND fenddate = to_date(''#endDate''))  and fseq = 2) AND s.fstartdate = to_date(''#startDate'') AND s.fenddate = to_date(''#endDate'') AND s.ftaxpayertype = ''#taxpayertype''  AND s.fruleid IN (SELECT fruleid FROM t_tcvat_ybhz_income WHERE fid IN (SELECT fid FROM t_tcvat_ybhz_policy_conf WHERE forgid = ''#orgid'' AND fstartdate = to_date(''#startDate'') AND fenddate = to_date(''#endDate'')) AND fbelongsorg = (SELECT fassignorg FROM t_tcvat_ybhz_assign WHERE fid IN (SELECT fid FROM t_tcvat_ybhz_policy_conf WHERE forgid = ''#orgid'' AND fstartdate = to_date(''#startDate'') AND fenddate = to_date(''#endDate''))  and fseq = 2))]}');
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084331;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084331,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_ybnsr_ybhz_fpb#3#ysfwxssr',' ','增值税汇总一般企业分配表#3#应税服务销售收入','1','3','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_ybnsr_ybhz_fpb','ysfwxssr',' ',' ','{S[SELECT SUM(s.ftaxamount) FROM t_tcvat_hz_account_summar s,t_tpo_taxitemrateentry t WHERE s.FBUSINESSTYPEID = t.FENTRYID AND ( t.fmergecode LIKE ''3%'' OR t.fmergecode LIKE ''4%''  OR t.fmergecode LIKE ''5%'') AND s.fjzjt= ''0'' AND s.fsuborgid =(SELECT fassignorg FROM t_tcvat_ybhz_assign WHERE fid IN (SELECT fid FROM t_tcvat_ybhz_policy_conf WHERE forgid = ''#orgid'' AND fstartdate = to_date(''#startDate'') AND fenddate = to_date(''#endDate''))  and fseq = 3) AND s.fstartdate = to_date(''#startDate'') AND s.fenddate = to_date(''#endDate'') AND s.ftaxpayertype = ''#taxpayertype''  AND s.fruleid IN (SELECT fruleid FROM t_tcvat_ybhz_income WHERE fid IN (SELECT fid FROM t_tcvat_ybhz_policy_conf WHERE forgid = ''#orgid'' AND fstartdate = to_date(''#startDate'') AND fenddate = to_date(''#endDate'')) AND fbelongsorg = (SELECT fassignorg FROM t_tcvat_ybhz_assign WHERE fid IN (SELECT fid FROM t_tcvat_ybhz_policy_conf WHERE forgid = ''#orgid'' AND fstartdate = to_date(''#startDate'') AND fenddate = to_date(''#endDate''))  and fseq = 3))]}');
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084332;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084332,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_ybnsr_ybhz_fpb#4#ysfwxssr',' ','增值税汇总一般企业分配表#4#应税服务销售收入','1','4','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_ybnsr_ybhz_fpb','ysfwxssr',' ',' ','{S[SELECT SUM(s.ftaxamount) FROM t_tcvat_hz_account_summar s,t_tpo_taxitemrateentry t WHERE s.FBUSINESSTYPEID = t.FENTRYID AND ( t.fmergecode LIKE ''3%'' OR t.fmergecode LIKE ''4%''  OR t.fmergecode LIKE ''5%'') AND s.fjzjt= ''0'' AND s.fsuborgid =(SELECT fassignorg FROM t_tcvat_ybhz_assign WHERE fid IN (SELECT fid FROM t_tcvat_ybhz_policy_conf WHERE forgid = ''#orgid'' AND fstartdate = to_date(''#startDate'') AND fenddate = to_date(''#endDate''))  and fseq = 4) AND s.fstartdate = to_date(''#startDate'') AND s.fenddate = to_date(''#endDate'') AND s.ftaxpayertype = ''#taxpayertype''  AND s.fruleid IN (SELECT fruleid FROM t_tcvat_ybhz_income WHERE fid IN (SELECT fid FROM t_tcvat_ybhz_policy_conf WHERE forgid = ''#orgid'' AND fstartdate = to_date(''#startDate'') AND fenddate = to_date(''#endDate'')) AND fbelongsorg = (SELECT fassignorg FROM t_tcvat_ybhz_assign WHERE fid IN (SELECT fid FROM t_tcvat_ybhz_policy_conf WHERE forgid = ''#orgid'' AND fstartdate = to_date(''#startDate'') AND fenddate = to_date(''#endDate''))  and fseq = 4))]}');
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084333;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084333,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_ybnsr_ybhz_fpb#6#ysfwxssr',' ','增值税汇总一般企业分配表#6#应税服务销售收入','1','6','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_ybnsr_ybhz_fpb','ysfwxssr',' ',' ','{S[SELECT SUM(s.ftaxamount) FROM t_tcvat_hz_account_summar s,t_tpo_taxitemrateentry t WHERE s.FBUSINESSTYPEID = t.FENTRYID AND ( t.fmergecode LIKE ''3%'' OR t.fmergecode LIKE ''4%''  OR t.fmergecode LIKE ''5%'') AND s.fjzjt= ''0'' AND s.fsuborgid =(SELECT fassignorg FROM t_tcvat_ybhz_assign WHERE fid IN (SELECT fid FROM t_tcvat_ybhz_policy_conf WHERE forgid = ''#orgid'' AND fstartdate = to_date(''#startDate'') AND fenddate = to_date(''#endDate''))  and fseq = 6) AND s.fstartdate = to_date(''#startDate'') AND s.fenddate = to_date(''#endDate'') AND s.ftaxpayertype = ''#taxpayertype''  AND s.fruleid IN (SELECT fruleid FROM t_tcvat_ybhz_income WHERE fid IN (SELECT fid FROM t_tcvat_ybhz_policy_conf WHERE forgid = ''#orgid'' AND fstartdate = to_date(''#startDate'') AND fenddate = to_date(''#endDate'')) AND fbelongsorg = (SELECT fassignorg FROM t_tcvat_ybhz_assign WHERE fid IN (SELECT fid FROM t_tcvat_ybhz_policy_conf WHERE forgid = ''#orgid'' AND fstartdate = to_date(''#startDate'') AND fenddate = to_date(''#endDate''))  and fseq = 6))]}');
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084334;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084334,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_ybnsr_ybhz_fpb#1#ysfwjzjtxssr',' ','增值税汇总一般企业分配表#1#应税服务即征即退销售收入','1','1','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_ybnsr_ybhz_fpb','ysfwjzjtxssr',' ',' ','{S[SELECT SUM(s.ftaxamount) FROM t_tcvat_hz_account_summar s,t_tpo_taxitemrateentry t WHERE s.FBUSINESSTYPEID = t.FENTRYID AND ( t.fmergecode LIKE ''3%'' OR t.fmergecode LIKE ''4%''  OR t.fmergecode LIKE ''5%'') AND s.fjzjt= ''1'' AND s.fsuborgid =(SELECT fassignorg FROM t_tcvat_ybhz_assign WHERE fid IN (SELECT fid FROM t_tcvat_ybhz_policy_conf WHERE forgid = ''#orgid'' AND fstartdate = to_date(''#startDate'') AND fenddate = to_date(''#endDate''))  and fseq = 1) AND s.fstartdate = to_date(''#startDate'') AND s.fenddate = to_date(''#endDate'') AND s.ftaxpayertype = ''#taxpayertype''  AND s.fruleid IN (SELECT fruleid FROM t_tcvat_ybhz_income WHERE fid IN (SELECT fid FROM t_tcvat_ybhz_policy_conf WHERE forgid = ''#orgid'' AND fstartdate = to_date(''#startDate'') AND fenddate = to_date(''#endDate'')) AND fbelongsorg = (SELECT fassignorg FROM t_tcvat_ybhz_assign WHERE fid IN (SELECT fid FROM t_tcvat_ybhz_policy_conf WHERE forgid = ''#orgid'' AND fstartdate = to_date(''#startDate'') AND fenddate = to_date(''#endDate''))  and fseq = 1))]}');
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084335;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084335,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_ybnsr_ybhz_fpb#3#ysfwjzjtxssr',' ','增值税汇总一般企业分配表#3#应税服务即征即退销售收入','1','3','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_ybnsr_ybhz_fpb','ysfwjzjtxssr',' ',' ','{S[SELECT SUM(s.ftaxamount) FROM t_tcvat_hz_account_summar s,t_tpo_taxitemrateentry t WHERE s.FBUSINESSTYPEID = t.FENTRYID AND ( t.fmergecode LIKE ''3%'' OR t.fmergecode LIKE ''4%''  OR t.fmergecode LIKE ''5%'') AND s.fjzjt= ''1'' AND s.fsuborgid =(SELECT fassignorg FROM t_tcvat_ybhz_assign WHERE fid IN (SELECT fid FROM t_tcvat_ybhz_policy_conf WHERE forgid = ''#orgid'' AND fstartdate = to_date(''#startDate'') AND fenddate = to_date(''#endDate''))  and fseq = 3) AND s.fstartdate = to_date(''#startDate'') AND s.fenddate = to_date(''#endDate'') AND s.ftaxpayertype = ''#taxpayertype''  AND s.fruleid IN (SELECT fruleid FROM t_tcvat_ybhz_income WHERE fid IN (SELECT fid FROM t_tcvat_ybhz_policy_conf WHERE forgid = ''#orgid'' AND fstartdate = to_date(''#startDate'') AND fenddate = to_date(''#endDate'')) AND fbelongsorg = (SELECT fassignorg FROM t_tcvat_ybhz_assign WHERE fid IN (SELECT fid FROM t_tcvat_ybhz_policy_conf WHERE forgid = ''#orgid'' AND fstartdate = to_date(''#startDate'') AND fenddate = to_date(''#endDate''))  and fseq = 3))]}');
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084336;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084336,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_ybnsr_ybhz_fpb#5#ysfwjzjtxssr',' ','增值税汇总一般企业分配表#5#应税服务即征即退销售收入','1','5','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_ybnsr_ybhz_fpb','ysfwjzjtxssr',' ',' ','{S[SELECT SUM(s.ftaxamount) FROM t_tcvat_hz_account_summar s,t_tpo_taxitemrateentry t WHERE s.FBUSINESSTYPEID = t.FENTRYID AND ( t.fmergecode LIKE ''3%'' OR t.fmergecode LIKE ''4%''  OR t.fmergecode LIKE ''5%'') AND s.fjzjt= ''1'' AND s.fsuborgid =(SELECT fassignorg FROM t_tcvat_ybhz_assign WHERE fid IN (SELECT fid FROM t_tcvat_ybhz_policy_conf WHERE forgid = ''#orgid'' AND fstartdate = to_date(''#startDate'') AND fenddate = to_date(''#endDate''))  and fseq = 5) AND s.fstartdate = to_date(''#startDate'') AND s.fenddate = to_date(''#endDate'') AND s.ftaxpayertype = ''#taxpayertype''  AND s.fruleid IN (SELECT fruleid FROM t_tcvat_ybhz_income WHERE fid IN (SELECT fid FROM t_tcvat_ybhz_policy_conf WHERE forgid = ''#orgid'' AND fstartdate = to_date(''#startDate'') AND fenddate = to_date(''#endDate'')) AND fbelongsorg = (SELECT fassignorg FROM t_tcvat_ybhz_assign WHERE fid IN (SELECT fid FROM t_tcvat_ybhz_policy_conf WHERE forgid = ''#orgid'' AND fstartdate = to_date(''#startDate'') AND fenddate = to_date(''#endDate''))  and fseq = 5))]}');
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084337;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084337,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_ybnsr_ybhz_fpb#6#ysfwjzjtxssr',' ','增值税汇总一般企业分配表#6#应税服务即征即退销售收入','1','6','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_ybnsr_ybhz_fpb','ysfwjzjtxssr',' ',' ','{S[SELECT SUM(s.ftaxamount) FROM t_tcvat_hz_account_summar s,t_tpo_taxitemrateentry t WHERE s.FBUSINESSTYPEID = t.FENTRYID AND ( t.fmergecode LIKE ''3%'' OR t.fmergecode LIKE ''4%''  OR t.fmergecode LIKE ''5%'') AND s.fjzjt= ''1'' AND s.fsuborgid =(SELECT fassignorg FROM t_tcvat_ybhz_assign WHERE fid IN (SELECT fid FROM t_tcvat_ybhz_policy_conf WHERE forgid = ''#orgid'' AND fstartdate = to_date(''#startDate'') AND fenddate = to_date(''#endDate''))  and fseq = 6) AND s.fstartdate = to_date(''#startDate'') AND s.fenddate = to_date(''#endDate'') AND s.ftaxpayertype = ''#taxpayertype''  AND s.fruleid IN (SELECT fruleid FROM t_tcvat_ybhz_income WHERE fid IN (SELECT fid FROM t_tcvat_ybhz_policy_conf WHERE forgid = ''#orgid'' AND fstartdate = to_date(''#startDate'') AND fenddate = to_date(''#endDate'')) AND fbelongsorg = (SELECT fassignorg FROM t_tcvat_ybhz_assign WHERE fid IN (SELECT fid FROM t_tcvat_ybhz_policy_conf WHERE forgid = ''#orgid'' AND fstartdate = to_date(''#startDate'') AND fenddate = to_date(''#endDate''))  and fseq = 6))]}');
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084338;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084338,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_ybnsr_ybhz_fpb#1#fpbl',' ','增值税汇总一般企业分配表#1#一般货物及劳务分配比例','1','1','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_ybnsr_ybhz_fpb','fpbl',' ',' ','if({C[#assignplan]} = 0, if({Q[tcvat_zlb_ybnsr_ybhz_fpb#7#xssr]} > 0, {Q[tcvat_zlb_ybnsr_ybhz_fpb#1#xssr]}/{Q[tcvat_zlb_ybnsr_ybhz_fpb#7#xssr]} , 0), {S[SELECT fnormalgoods FROM t_tcvat_ybhz_assign WHERE fid = (SELECT fid FROM t_tcvat_ybhz_policy_conf WHERE forgid = ''#orgid'' AND fstartdate = to_date(''#startDate'') AND fenddate = to_date(''#endDate''))  and fseq = 1]})');
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084339;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084339,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_ybnsr_ybhz_fpb#2#fpbl',' ','增值税汇总一般企业分配表#2#一般货物及劳务分配比例','1','2','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_ybnsr_ybhz_fpb','fpbl',' ',' ','if({C[#assignplan]} = 0, if( {Q[tcvat_zlb_ybnsr_ybhz_fpb#7#xssr]} > 0,{Q[tcvat_zlb_ybnsr_ybhz_fpb#2#xssr]}/{Q[tcvat_zlb_ybnsr_ybhz_fpb#7#xssr]} , 0) ,{S[SELECT fnormalgoods FROM t_tcvat_ybhz_assign WHERE fid = (SELECT fid FROM t_tcvat_ybhz_policy_conf WHERE forgid = ''#orgid'' AND fstartdate = to_date(''#startDate'') AND fenddate = to_date(''#endDate''))  and fseq = 2]}) ');
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084340;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084340,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_ybnsr_ybhz_fpb#3#fpbl',' ','增值税汇总一般企业分配表#3#一般货物及劳务分配比例','1','3','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_ybnsr_ybhz_fpb','fpbl',' ',' ','if({C[#assignplan]} = 0, if( {Q[tcvat_zlb_ybnsr_ybhz_fpb#7#xssr]}> 0, {Q[tcvat_zlb_ybnsr_ybhz_fpb#3#xssr]}/{Q[tcvat_zlb_ybnsr_ybhz_fpb#7#xssr]}, 0) , {S[SELECT fnormalgoods FROM t_tcvat_ybhz_assign WHERE fid = (SELECT fid FROM t_tcvat_ybhz_policy_conf WHERE forgid = ''#orgid'' AND fstartdate = to_date(''#startDate'') AND fenddate = to_date(''#endDate''))  and fseq = 3]}) ');
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084341;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084341,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_ybnsr_ybhz_fpb#4#fpbl',' ','增值税汇总一般企业分配表#4#一般货物及劳务分配比例','1','4','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_ybnsr_ybhz_fpb','fpbl',' ',' ','if({C[#assignplan]} = 0,if( {Q[tcvat_zlb_ybnsr_ybhz_fpb#7#xssr]}> 0,{Q[tcvat_zlb_ybnsr_ybhz_fpb#4#xssr]}/{Q[tcvat_zlb_ybnsr_ybhz_fpb#7#xssr]}  , 0) , {S[SELECT fnormalgoods FROM t_tcvat_ybhz_assign WHERE fid = (SELECT fid FROM t_tcvat_ybhz_policy_conf WHERE forgid = ''#orgid'' AND fstartdate = to_date(''#startDate'') AND fenddate = to_date(''#endDate''))  and fseq = 4]}) ');
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084342;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084342,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_ybnsr_ybhz_fpb#5#fpbl',' ','增值税汇总一般企业分配表#5#一般货物及劳务分配比例','1','5','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_ybnsr_ybhz_fpb','fpbl',' ',' ','if({C[#assignplan]} = 0, if({Q[tcvat_zlb_ybnsr_ybhz_fpb#7#xssr]} > 0,{Q[tcvat_zlb_ybnsr_ybhz_fpb#5#xssr]}/{Q[tcvat_zlb_ybnsr_ybhz_fpb#7#xssr]} , 0) ,{S[SELECT fnormalgoods FROM t_tcvat_ybhz_assign WHERE fid = (SELECT fid FROM t_tcvat_ybhz_policy_conf WHERE forgid = ''#orgid'' AND fstartdate = to_date(''#startDate'') AND fenddate = to_date(''#endDate''))  and fseq = 5]}) ');
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084343;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084343,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_ybnsr_ybhz_fpb#6#fpbl',' ','增值税汇总一般企业分配表#6#一般货物及劳务分配比例','1','6','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_ybnsr_ybhz_fpb','fpbl',' ',' ','if({C[#assignplan]} = 0, if({Q[tcvat_zlb_ybnsr_ybhz_fpb#7#xssr]}> 0,{Q[tcvat_zlb_ybnsr_ybhz_fpb#6#xssr]}/{Q[tcvat_zlb_ybnsr_ybhz_fpb#7#xssr]} , 0) , {S[SELECT fnormalgoods FROM t_tcvat_ybhz_assign WHERE fid = (SELECT fid FROM t_tcvat_ybhz_policy_conf WHERE forgid = ''#orgid'' AND fstartdate = to_date(''#startDate'') AND fenddate = to_date(''#endDate''))  and fseq = 6]}) ');
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084344;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084344,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_ybnsr_ybhz_fpb#1#jzjtfpbl',' ','增值税汇总一般企业分配表#1#一般货物及劳务即征即退分配比例','1','1','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_ybnsr_ybhz_fpb','jzjtfpbl',' ',' ','if({C[#assignplan]} = 0, if({Q[tcvat_zlb_ybnsr_ybhz_fpb#7#jzjtxssr]} > 0,{Q[tcvat_zlb_ybnsr_ybhz_fpb#1#jzjtxssr]}/{Q[tcvat_zlb_ybnsr_ybhz_fpb#7#jzjtxssr]} , 0) , {S[SELECT fjzjtgoods FROM t_tcvat_ybhz_assign WHERE fid = (SELECT fid FROM t_tcvat_ybhz_policy_conf WHERE forgid = ''#orgid'' AND fstartdate = to_date(''#startDate'') AND fenddate = to_date(''#endDate''))  and fseq = 1]}) ');
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084345;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084345,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_ybnsr_ybhz_fpb#2#jzjtfpbl',' ','增值税汇总一般企业分配表#2#一般货物及劳务即征即退分配比例','1','2','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_ybnsr_ybhz_fpb','jzjtfpbl',' ',' ','if({C[#assignplan]} = 0, if({Q[tcvat_zlb_ybnsr_ybhz_fpb#7#jzjtxssr]}  > 0,{Q[tcvat_zlb_ybnsr_ybhz_fpb#2#jzjtxssr]}/{Q[tcvat_zlb_ybnsr_ybhz_fpb#7#jzjtxssr]}  , 0),{S[SELECT fjzjtgoods FROM t_tcvat_ybhz_assign WHERE fid = (SELECT fid FROM t_tcvat_ybhz_policy_conf WHERE forgid = ''#orgid'' AND fstartdate = to_date(''#startDate'') AND fenddate = to_date(''#endDate''))  and fseq = 2]}) ');
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084346;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084346,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_ybnsr_ybhz_fpb#3#jzjtfpbl',' ','增值税汇总一般企业分配表#3#一般货物及劳务即征即退分配比例','1','3','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_ybnsr_ybhz_fpb','jzjtfpbl',' ',' ','if({C[#assignplan]} = 0, if({Q[tcvat_zlb_ybnsr_ybhz_fpb#7#jzjtxssr]}> 0,{Q[tcvat_zlb_ybnsr_ybhz_fpb#3#jzjtxssr]}/{Q[tcvat_zlb_ybnsr_ybhz_fpb#7#jzjtxssr]} , 0) ,{S[SELECT fjzjtgoods FROM t_tcvat_ybhz_assign WHERE fid = (SELECT fid FROM t_tcvat_ybhz_policy_conf WHERE forgid = ''#orgid'' AND fstartdate = to_date(''#startDate'') AND fenddate = to_date(''#endDate''))  and fseq = 3]}) ');
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084347;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084347,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_ybnsr_ybhz_fpb#6#jzjtfpbl',' ','增值税汇总一般企业分配表#6#一般货物及劳务即征即退分配比例','1','6','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_ybnsr_ybhz_fpb','jzjtfpbl',' ',' ','if({C[#assignplan]} = 0, if({Q[tcvat_zlb_ybnsr_ybhz_fpb#7#jzjtxssr]}> 0,{Q[tcvat_zlb_ybnsr_ybhz_fpb#6#jzjtxssr]}/{Q[tcvat_zlb_ybnsr_ybhz_fpb#7#jzjtxssr]} , 0) , {S[SELECT fjzjtgoods FROM t_tcvat_ybhz_assign WHERE fid = (SELECT fid FROM t_tcvat_ybhz_policy_conf WHERE forgid = ''#orgid'' AND fstartdate = to_date(''#startDate'') AND fenddate = to_date(''#endDate''))  and fseq =6]}) ');
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084348;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084348,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_ybnsr_ybhz_fpb#1#ysfwfpbl',' ','增值税汇总一般企业分配表#1#应税服务分配比例','1','1','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_ybnsr_ybhz_fpb','ysfwfpbl',' ',' ','if({C[#assignplan]} = 0,if({Q[tcvat_zlb_ybnsr_ybhz_fpb#7#ysfwxssr]}> 0,{Q[tcvat_zlb_ybnsr_ybhz_fpb#1#ysfwxssr]}/{Q[tcvat_zlb_ybnsr_ybhz_fpb#7#ysfwxssr]} , 0)  ,{S[SELECT fnormaltax FROM t_tcvat_ybhz_assign WHERE fid = (SELECT fid FROM t_tcvat_ybhz_policy_conf WHERE forgid = ''#orgid'' AND fstartdate = to_date(''#startDate'') AND fenddate = to_date(''#endDate''))  and fseq = 1]}) ');
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084349;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084349,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_ybnsr_ybhz_fpb#2#ysfwfpbl',' ','增值税汇总一般企业分配表#2#应税服务分配比例','1','2','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_ybnsr_ybhz_fpb','ysfwfpbl',' ',' ','if({C[#assignplan]} = 0, if({Q[tcvat_zlb_ybnsr_ybhz_fpb#7#ysfwxssr]}> 0,{Q[tcvat_zlb_ybnsr_ybhz_fpb#2#ysfwxssr]}/{Q[tcvat_zlb_ybnsr_ybhz_fpb#7#ysfwxssr]} , 0) , {S[SELECT fnormaltax FROM t_tcvat_ybhz_assign WHERE fid = (SELECT fid FROM t_tcvat_ybhz_policy_conf WHERE forgid = ''#orgid'' AND fstartdate = to_date(''#startDate'') AND fenddate = to_date(''#endDate''))  and fseq = 2]}) ');
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084350;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084350,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_ybnsr_ybhz_fpb#3#ysfwfpbl',' ','增值税汇总一般企业分配表#3#应税服务分配比例','1','3','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_ybnsr_ybhz_fpb','ysfwfpbl',' ',' ','if({C[#assignplan]} = 0, if({Q[tcvat_zlb_ybnsr_ybhz_fpb#7#ysfwxssr]} > 0,{Q[tcvat_zlb_ybnsr_ybhz_fpb#3#ysfwxssr]}/{Q[tcvat_zlb_ybnsr_ybhz_fpb#7#ysfwxssr]}  , 0), {S[SELECT fnormaltax FROM t_tcvat_ybhz_assign WHERE fid = (SELECT fid FROM t_tcvat_ybhz_policy_conf WHERE forgid = ''#orgid'' AND fstartdate = to_date(''#startDate'') AND fenddate = to_date(''#endDate''))  and fseq = 3]}) ');
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084351;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084351,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_ybnsr_ybhz_fpb#4#ysfwfpbl',' ','增值税汇总一般企业分配表#4#应税服务分配比例','1','4','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_ybnsr_ybhz_fpb','ysfwfpbl',' ',' ','if({C[#assignplan]} = 0,if({Q[tcvat_zlb_ybnsr_ybhz_fpb#7#ysfwxssr]} > 0, {Q[tcvat_zlb_ybnsr_ybhz_fpb#4#ysfwxssr]}/{Q[tcvat_zlb_ybnsr_ybhz_fpb#7#ysfwxssr]}  , 0), {S[SELECT fnormaltax FROM t_tcvat_ybhz_assign WHERE fid = (SELECT fid FROM t_tcvat_ybhz_policy_conf WHERE forgid = ''#orgid'' AND fstartdate = to_date(''#startDate'') AND fenddate = to_date(''#endDate''))  and fseq = 4]}) ');
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084352;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084352,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_ybnsr_ybhz_fpb#5#ysfwfpbl',' ','增值税汇总一般企业分配表#5#应税服务分配比例','1','5','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_ybnsr_ybhz_fpb','ysfwfpbl',' ',' ','if({C[#assignplan]} = 0, if({Q[tcvat_zlb_ybnsr_ybhz_fpb#7#ysfwxssr]} > 0,{Q[tcvat_zlb_ybnsr_ybhz_fpb#5#ysfwxssr]}/{Q[tcvat_zlb_ybnsr_ybhz_fpb#7#ysfwxssr]}  , 0), {S[SELECT fnormaltax FROM t_tcvat_ybhz_assign WHERE fid = (SELECT fid FROM t_tcvat_ybhz_policy_conf WHERE forgid = ''#orgid'' AND fstartdate = to_date(''#startDate'') AND fenddate = to_date(''#endDate''))  and fseq = 5]}) ');
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084353;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084353,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_ybnsr_ybhz_fpb#6#ysfwfpbl',' ','增值税汇总一般企业分配表#6#应税服务分配比例','1','6','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_ybnsr_ybhz_fpb','ysfwfpbl',' ',' ','if({C[#assignplan]} = 0, if({Q[tcvat_zlb_ybnsr_ybhz_fpb#7#ysfwxssr]}> 0,{Q[tcvat_zlb_ybnsr_ybhz_fpb#6#ysfwxssr]}/{Q[tcvat_zlb_ybnsr_ybhz_fpb#7#ysfwxssr]} , 0) , {S[SELECT fnormaltax FROM t_tcvat_ybhz_assign WHERE fid = (SELECT fid FROM t_tcvat_ybhz_policy_conf WHERE forgid = ''#orgid'' AND fstartdate = to_date(''#startDate'') AND fenddate = to_date(''#endDate''))  and fseq = 6]}) ');
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084354;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084354,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_ybnsr_ybhz_fpb#1#ysfwjzjtfpbl',' ','增值税汇总一般企业分配表#1#应税服务即征即退分配比例','1','1','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_ybnsr_ybhz_fpb','ysfwjzjtfpbl',' ',' ','if({C[#assignplan]} = 0, if({Q[tcvat_zlb_ybnsr_ybhz_fpb#7#ysfwjzjtxssr]} > 0,{Q[tcvat_zlb_ybnsr_ybhz_fpb#1#ysfwjzjtxssr]}/{Q[tcvat_zlb_ybnsr_ybhz_fpb#7#ysfwjzjtxssr]}  , 0), {S[SELECT fjzjttax FROM t_tcvat_ybhz_assign WHERE fid = (SELECT fid FROM t_tcvat_ybhz_policy_conf WHERE forgid = ''#orgid'' AND fstartdate = to_date(''#startDate'') AND fenddate = to_date(''#endDate''))  and fseq = 1]}) ');
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084355;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084355,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_ybnsr_ybhz_fpb#3#ysfwjzjtfpbl',' ','增值税汇总一般企业分配表#3#应税服务即征即退分配比例','1','3','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_ybnsr_ybhz_fpb','ysfwjzjtfpbl',' ',' ','if({C[#assignplan]} = 0, if({Q[tcvat_zlb_ybnsr_ybhz_fpb#7#ysfwjzjtxssr]}  > 0, {Q[tcvat_zlb_ybnsr_ybhz_fpb#3#ysfwjzjtxssr]}/{Q[tcvat_zlb_ybnsr_ybhz_fpb#7#ysfwjzjtxssr]} , 0), {S[SELECT fjzjttax FROM t_tcvat_ybhz_assign WHERE fid = (SELECT fid FROM t_tcvat_ybhz_policy_conf WHERE forgid = ''#orgid'' AND fstartdate = to_date(''#startDate'') AND fenddate = to_date(''#endDate''))  and fseq = 3]}) ');
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084356;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084356,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_ybnsr_ybhz_fpb#4#ysfwjzjtfpbl',' ','增值税汇总一般企业分配表#4#应税服务即征即退分配比例','1','4','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_ybnsr_ybhz_fpb','ysfwjzjtfpbl',' ',' ','if({C[#assignplan]} = 0, if({Q[tcvat_zlb_ybnsr_ybhz_fpb#7#ysfwjzjtxssr]}  > 0,{Q[tcvat_zlb_ybnsr_ybhz_fpb#4#ysfwjzjtxssr]}/{Q[tcvat_zlb_ybnsr_ybhz_fpb#7#ysfwjzjtxssr]}  , 0), {S[SELECT fjzjttax FROM t_tcvat_ybhz_assign WHERE fid = (SELECT fid FROM t_tcvat_ybhz_policy_conf WHERE forgid = ''#orgid'' AND fstartdate = to_date(''#startDate'') AND fenddate = to_date(''#endDate''))  and fseq = 4]}) ');
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084357;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084357,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_ybnsr_ybhz_fpb#5#ysfwjzjtfpbl',' ','增值税汇总一般企业分配表#5#应税服务即征即退分配比例','1','5','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_ybnsr_ybhz_fpb','ysfwjzjtfpbl',' ',' ','if({C[#assignplan]} = 0, if({Q[tcvat_zlb_ybnsr_ybhz_fpb#7#ysfwjzjtxssr]} > 0,{Q[tcvat_zlb_ybnsr_ybhz_fpb#5#ysfwjzjtxssr]}/{Q[tcvat_zlb_ybnsr_ybhz_fpb#7#ysfwjzjtxssr]}  , 0), {S[SELECT fjzjttax FROM t_tcvat_ybhz_assign WHERE fid = (SELECT fid FROM t_tcvat_ybhz_policy_conf WHERE forgid = ''#orgid'' AND fstartdate = to_date(''#startDate'') AND fenddate = to_date(''#endDate''))  and fseq = 5]}) ');
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084358;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084358,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_ybnsr_ybhz_fpb#6#ysfwjzjtfpbl',' ','增值税汇总一般企业分配表#6#应税服务即征即退分配比例','1','6','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_ybnsr_ybhz_fpb','ysfwjzjtfpbl',' ',' ','if({C[#assignplan]} = 0, if({Q[tcvat_zlb_ybnsr_ybhz_fpb#7#ysfwjzjtxssr]} > 0, {Q[tcvat_zlb_ybnsr_ybhz_fpb#6#ysfwjzjtxssr]}/{Q[tcvat_zlb_ybnsr_ybhz_fpb#7#ysfwjzjtxssr]}, 0) ,{S[SELECT fjzjttax FROM t_tcvat_ybhz_assign WHERE fid = (SELECT fid FROM t_tcvat_ybhz_policy_conf WHERE forgid = ''#orgid'' AND fstartdate = to_date(''#startDate'') AND fenddate = to_date(''#endDate''))  and fseq = 6]}) ');
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084359;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084359,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_ybnsr_ybhz_fpb#5#jzjtxssr',' ','增值税汇总一般企业分配表#5#一般货物及劳务即征即退销售收入','1','5','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_ybnsr_ybhz_fpb','jzjtxssr',' ',' ','{S[SELECT SUM(s.ftaxamount) FROM t_tcvat_hz_account_summar s,t_tpo_taxitemrateentry t WHERE s.FBUSINESSTYPEID = t.FENTRYID AND ( t.fmergecode LIKE ''1%'' OR t.fmergecode LIKE ''2%'') AND s.fjzjt= ''1'' AND s.fsuborgid =(SELECT fassignorg FROM t_tcvat_ybhz_assign WHERE fid IN (SELECT fid FROM t_tcvat_ybhz_policy_conf WHERE forgid = ''#orgid'' AND fstartdate = to_date(''#startDate'') AND fenddate = to_date(''#endDate''))  and fseq = 5) AND s.fstartdate = to_date(''#startDate'') AND s.fenddate = to_date(''#endDate'') AND s.ftaxpayertype = ''#taxpayertype''  AND s.fruleid IN (SELECT fruleid FROM t_tcvat_ybhz_income WHERE fid IN (SELECT fid FROM t_tcvat_ybhz_policy_conf WHERE forgid = ''#orgid'' AND fstartdate = to_date(''#startDate'') AND fenddate = to_date(''#endDate'')) AND fbelongsorg = (SELECT fassignorg FROM t_tcvat_ybhz_assign WHERE fid IN (SELECT fid FROM t_tcvat_ybhz_policy_conf WHERE forgid = ''#orgid'' AND fstartdate = to_date(''#startDate'') AND fenddate = to_date(''#endDate''))  and fseq = 5))]}');
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084360;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084360,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_ybnsr_ybhz_fpb#5#ysfwxssr',' ','增值税汇总一般企业分配表#5#应税服务销售收入','1','5','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_ybnsr_ybhz_fpb','ysfwxssr',' ',' ','{S[SELECT SUM(s.ftaxamount) FROM t_tcvat_hz_account_summar s,t_tpo_taxitemrateentry t WHERE s.FBUSINESSTYPEID = t.FENTRYID AND ( t.fmergecode LIKE ''3%'' OR t.fmergecode LIKE ''4%''  OR t.fmergecode LIKE ''5%'') AND s.fjzjt= ''0'' AND s.fsuborgid =(SELECT fassignorg FROM t_tcvat_ybhz_assign WHERE fid IN (SELECT fid FROM t_tcvat_ybhz_policy_conf WHERE forgid = ''#orgid'' AND fstartdate = to_date(''#startDate'') AND fenddate = to_date(''#endDate''))  and fseq = 5) AND s.fstartdate = to_date(''#startDate'') AND s.fenddate = to_date(''#endDate'') AND s.ftaxpayertype = ''#taxpayertype''  AND s.fruleid IN (SELECT fruleid FROM t_tcvat_ybhz_income WHERE fid IN (SELECT fid FROM t_tcvat_ybhz_policy_conf WHERE forgid = ''#orgid'' AND fstartdate = to_date(''#startDate'') AND fenddate = to_date(''#endDate'')) AND fbelongsorg = (SELECT fassignorg FROM t_tcvat_ybhz_assign WHERE fid IN (SELECT fid FROM t_tcvat_ybhz_policy_conf WHERE forgid = ''#orgid'' AND fstartdate = to_date(''#startDate'') AND fenddate = to_date(''#endDate''))  and fseq = 5))]}');
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084361;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084361,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_ybnsr_ybhz_fpb#2#ysfwjzjtfpbl',' ','增值税汇总一般企业分配表#2#应税服务即征即退分配比例','1','2','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_ybnsr_ybhz_fpb','ysfwjzjtfpbl',' ',' ','if({C[#assignplan]} = 0, if({Q[tcvat_zlb_ybnsr_ybhz_fpb#7#ysfwjzjtxssr]} > 0,{Q[tcvat_zlb_ybnsr_ybhz_fpb#2#ysfwjzjtxssr]}/{Q[tcvat_zlb_ybnsr_ybhz_fpb#7#ysfwjzjtxssr]}  , 0), {S[SELECT fjzjttax FROM t_tcvat_ybhz_assign WHERE fid = (SELECT fid FROM t_tcvat_ybhz_policy_conf WHERE forgid = ''#orgid'' AND fstartdate = to_date(''#startDate'') AND fenddate = to_date(''#endDate''))  and fseq = 2]}) ');
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084362;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084362,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_ybnsr_ybhz_fpb#4#ysfwjzjtxssr',' ','增值税汇总一般企业分配表#4#应税服务即征即退销售收入','1','4','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_ybnsr_ybhz_fpb','ysfwjzjtxssr',' ',' ','{S[SELECT SUM(s.ftaxamount) FROM t_tcvat_hz_account_summar s,t_tpo_taxitemrateentry t WHERE s.FBUSINESSTYPEID = t.FENTRYID AND ( t.fmergecode LIKE ''3%'' OR t.fmergecode LIKE ''4%''  OR t.fmergecode LIKE ''5%'') AND s.fjzjt= ''1'' AND s.fsuborgid =(SELECT fassignorg FROM t_tcvat_ybhz_assign WHERE fid IN (SELECT fid FROM t_tcvat_ybhz_policy_conf WHERE forgid = ''#orgid'' AND fstartdate = to_date(''#startDate'') AND fenddate = to_date(''#endDate''))  and fseq = 4) AND s.fstartdate = to_date(''#startDate'') AND s.fenddate = to_date(''#endDate'') AND s.ftaxpayertype = ''#taxpayertype''  AND s.fruleid IN (SELECT fruleid FROM t_tcvat_ybhz_income WHERE fid IN (SELECT fid FROM t_tcvat_ybhz_policy_conf WHERE forgid = ''#orgid'' AND fstartdate = to_date(''#startDate'') AND fenddate = to_date(''#endDate'')) AND fbelongsorg = (SELECT fassignorg FROM t_tcvat_ybhz_assign WHERE fid IN (SELECT fid FROM t_tcvat_ybhz_policy_conf WHERE forgid = ''#orgid'' AND fstartdate = to_date(''#startDate'') AND fenddate = to_date(''#endDate''))  and fseq = 4))]}');
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084363;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084363,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_ybnsr_ybhz_fpb#4#jzjtfpbl',' ','增值税汇总一般企业分配表#4#一般货物及劳务即征即退分配比例','1','4','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_ybnsr_ybhz_fpb','jzjtfpbl',' ',' ','if({C[#assignplan]} = 0, if({Q[tcvat_zlb_ybnsr_ybhz_fpb#7#jzjtxssr]} > 0, {Q[tcvat_zlb_ybnsr_ybhz_fpb#4#jzjtxssr]}/{Q[tcvat_zlb_ybnsr_ybhz_fpb#7#jzjtxssr]}, 0) , {S[SELECT fjzjtgoods FROM t_tcvat_ybhz_assign WHERE fid = (SELECT fid FROM t_tcvat_ybhz_policy_conf WHERE forgid = ''#orgid'' AND fstartdate = to_date(''#startDate'') AND fenddate = to_date(''#endDate''))  and fseq = 4]}) ');
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084364;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084364,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_ybnsr_ybhz_fpb#5#jzjtfpbl',' ','增值税汇总一般企业分配表#5#一般货物及劳务即征即退分配比例','1','5','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_ybnsr_ybhz_fpb','jzjtfpbl',' ',' ','if({C[#assignplan]} = 0, if({Q[tcvat_zlb_ybnsr_ybhz_fpb#7#jzjtxssr]} > 0,{Q[tcvat_zlb_ybnsr_ybhz_fpb#5#jzjtxssr]}/{Q[tcvat_zlb_ybnsr_ybhz_fpb#7#jzjtxssr]}  , 0),{S[SELECT fjzjtgoods FROM t_tcvat_ybhz_assign WHERE fid = (SELECT fid FROM t_tcvat_ybhz_policy_conf WHERE forgid = ''#orgid'' AND fstartdate = to_date(''#startDate'') AND fenddate = to_date(''#endDate''))  and fseq = 5]}) ');
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084365;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084365,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_ybnsr_ybhz_fpb#2#ysfwjzjtxssr',' ','增值税汇总一般企业分配表#2#应税服务即征即退销售收入','1','2','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_ybnsr_ybhz_fpb','ysfwjzjtxssr',' ',' ','{S[SELECT SUM(s.ftaxamount) FROM t_tcvat_hz_account_summar s,t_tpo_taxitemrateentry t WHERE s.FBUSINESSTYPEID = t.FENTRYID AND ( t.fmergecode LIKE ''3%'' OR t.fmergecode LIKE ''4%''  OR t.fmergecode LIKE ''5%'') AND s.fjzjt= ''1'' AND s.fsuborgid =(SELECT fassignorg FROM t_tcvat_ybhz_assign WHERE fid IN (SELECT fid FROM t_tcvat_ybhz_policy_conf WHERE forgid = ''#orgid'' AND fstartdate = to_date(''#startDate'') AND fenddate = to_date(''#endDate''))  and fseq = 2) AND s.fstartdate = to_date(''#startDate'') AND s.fenddate = to_date(''#endDate'') AND s.ftaxpayertype = ''#taxpayertype''  AND s.fruleid IN (SELECT fruleid FROM t_tcvat_ybhz_income WHERE fid IN (SELECT fid FROM t_tcvat_ybhz_policy_conf WHERE forgid = ''#orgid'' AND fstartdate = to_date(''#startDate'') AND fenddate = to_date(''#endDate'')) AND fbelongsorg = (SELECT fassignorg FROM t_tcvat_ybhz_assign WHERE fid IN (SELECT fid FROM t_tcvat_ybhz_policy_conf WHERE forgid = ''#orgid'' AND fstartdate = to_date(''#startDate'') AND fenddate = to_date(''#endDate''))  and fseq =2))]}');
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084366;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084366,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_ybnsr_ybhz_fpb#5#xssr',' ','增值税汇总一般企业分配表#5#一般货物及劳务销售收入','1','5','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_ybnsr_ybhz_fpb','xssr',' ',' ','{S[SELECT SUM(s.ftaxamount) FROM t_tcvat_hz_account_summar s,t_tpo_taxitemrateentry t WHERE s.FBUSINESSTYPEID = t.FENTRYID AND ( t.fmergecode LIKE ''1%'' OR t.fmergecode LIKE ''2%'') AND s.fjzjt= ''0'' AND s.fsuborgid =(SELECT fassignorg FROM t_tcvat_ybhz_assign WHERE fid IN (SELECT fid FROM t_tcvat_ybhz_policy_conf WHERE forgid = ''#orgid'' AND fstartdate = to_date(''#startDate'') AND fenddate = to_date(''#endDate''))  and fseq = 5) AND s.fstartdate = to_date(''#startDate'') AND s.fenddate = to_date(''#endDate'') AND s.ftaxpayertype = ''#taxpayertype''  AND s.fruleid IN (SELECT fruleid FROM t_tcvat_ybhz_income WHERE fid IN (SELECT fid FROM t_tcvat_ybhz_policy_conf WHERE forgid = ''#orgid'' AND fstartdate = to_date(''#startDate'') AND fenddate = to_date(''#endDate'')) AND fbelongsorg = (SELECT fassignorg FROM t_tcvat_ybhz_assign WHERE fid IN (SELECT fid FROM t_tcvat_ybhz_policy_conf WHERE forgid = ''#orgid'' AND fstartdate = to_date(''#startDate'') AND fenddate = to_date(''#endDate''))  and fseq = 5))]}');
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084367;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084367,{ts'2023-11-09  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_zzsybnsr_ybhz#7#ybxm',' ','增值税汇总一般企业税额计算总览表#7#一般项目','1','7','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_zzsybnsr_ybhz','ybxm',' ',' ','if({C[#diff]}=0 || ({C[#diff]}=1 && {C[#cekcdgBqfseHj]}=0 && {C[#sqsbbFb3Qmye]}=0),{S[select sum(s.ftotaltaxamount) from t_tcvat_hz_account_summar s,t_tpo_taxitemrateentry t where s.ftaxpayertype=''#taxpayertype'' and s.fbusinesstypeid=t.fentryid and s.forgid=''#orgid'' and s.fstartdate=to_date(''#startDate'') and s.fenddate=to_date(''#endDate'') and s.fjzjt=''0'' and s.ftaxrate in(''6%'',''9%'',''10%'',''11%'',''13%'',''16%'',''17%'') and(t.flongnumber like ''3%'' or t.flongnumber like ''4%'' or t.flongnumber like ''5%'')]},({S[select sum(s.fpricetaxamount) from t_tcvat_hz_account_summar s,t_tpo_taxitemrateentry t where s.fbusinesstypeid=t.fentryid and s.ftaxpayertype=''#taxpayertype'' and s.forgid=''#orgid'' and s.fstartdate=to_date(''#startDate'') and s.fenddate=to_date(''#endDate'') and s.fjzjt=''0'' and s.ftaxrate=''13%'' and (t.flongnumber like ''3%'' or t.flongnumber like ''4%'' or t.flongnumber like ''5%'')]}-min({S[select sum(s.fpricetaxamount) from t_tcvat_hz_account_summar s,t_tpo_taxitemrateentry t where s.fbusinesstypeid=t.fentryid and s.ftaxpayertype=''#taxpayertype'' and s.forgid=''#orgid'' and s.fstartdate=to_date(''#startDate'') and s.fenddate=to_date(''#endDate'') and s.fjzjt=''0'' and s.ftaxrate=''13%'' and (t.flongnumber like ''3%'' or t.flongnumber like ''4%'' or t.flongnumber like ''5%'')]},{S[select sum(fcurrentamount) from t_tcvat_hz_diff_temp where ftaxpayertype=''#taxpayertype'' and forgid=''#orgid'' and fstartdate=to_date(''#startDate'') and fenddate=to_date(''#endDate'') and fdifftypeid=859352590188589056]}+{S[select sum(fqmye) from t_tcvat_ybnsr_fb3 where fsbbid=''#predeclaresbbid'' and fewblxh=''1'']}))/1.13*0.13+({S[select sum(s.fpricetaxamount) from t_tcvat_hz_account_summar s left join t_tpo_taxitemrateentry t on s.fbusinesstypeid=t.fentryid where s.ftaxpayertype=''#taxpayertype'' and s.forgid=''#orgid'' and s.fstartdate=to_date(''#startDate'') and s.fenddate=to_date(''#endDate'') and s.fjzjt=''0'' and s.ftaxrate=''9%'' and (t.flongnumber like ''3%'' or t.flongnumber like ''4%'' or t.flongnumber like ''5%'')]}-min({S[select sum(s.fpricetaxamount) from t_tcvat_hz_account_summar s left join t_tpo_taxitemrateentry t on s.fbusinesstypeid=t.fentryid where s.ftaxpayertype=''#taxpayertype'' and s.forgid=''#orgid'' and s.fstartdate=to_date(''#startDate'') and s.fenddate=to_date(''#endDate'') and s.fjzjt=''0'' and s.ftaxrate=''9%'' and (t.flongnumber like ''3%'' or t.flongnumber like ''4%'' or t.flongnumber like ''5%'')]},{S[select sum(fcurrentamount) from t_tcvat_hz_diff_temp where ftaxpayertype=''#taxpayertype'' and forgid=''#orgid'' and fstartdate=to_date(''#startDate'') and fenddate=to_date(''#endDate'') and fdifftypeid=859352590188589057]}+{S[select sum(fqmye) from t_tcvat_ybnsr_fb3 where fsbbid=''#predeclaresbbid'' and fewblxh=''2'']}))/1.09*0.09+({S[select sum(s.fpricetaxamount) from t_tcvat_hz_account_summar s,t_tpo_taxitemrateentry t where s.fbusinesstypeid=t.fentryid and s.ftaxpayertype=''#taxpayertype'' and s.forgid=''#orgid'' and s.fstartdate=to_date(''#startDate'') and s.fenddate=to_date(''#endDate'') and s.fjzjt=''0'' and s.ftaxrate=''6%'' and (t.flongnumber like ''3%'' or t.flongnumber like ''4%'' or t.flongnumber like ''5%'')]}-min({S[select sum(s.fpricetaxamount) from t_tcvat_hz_account_summar s,t_tpo_taxitemrateentry t where s.fbusinesstypeid=t.fentryid and s.ftaxpayertype=''#taxpayertype'' and s.forgid=''#orgid''  and s.fstartdate=to_date(''#startDate'') and s.fenddate=to_date(''#endDate'') and s.fjzjt=''0'' and s.ftaxrate=''6%'' and (t.flongnumber like ''3%'' or t.flongnumber like ''4%'' or t.flongnumber like ''5%'')]},{S[select sum(fcurrentamount) from t_tcvat_hz_diff_temp where ftaxpayertype=''#taxpayertype'' and forgid=''#orgid'' and fstartdate=to_date(''#startDate'') and fenddate=to_date(''#endDate'') and fdifftypeid in(859352590188589058,859352590188589059)]}+{S[select sum(fqmye) from t_tcvat_ybnsr_fb3 where fsbbid=''#predeclaresbbid'' and fewblxh in (''3'',''4'')]}))/1.06*0.06)');
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084368;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084368,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_zzsybnsr_ybhz#31#ybxm',' ','增值税汇总一般企业税额计算总览表#31#一般项目','1','31','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_zzsybnsr_ybhz','ybxm',' ',' ','if({Q[tcvat_zlb_zzsybnsr_ybhz#29#ybxm]}=0,0,{Q[tcvat_zlb_zzsybnsr_ybhz#29#ybxm]}-{Q[tcvat_zlb_zzsybnsr_ybhz#30#ybxm]})');
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084369;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084369,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_zzsybnsr_ybhz#21#ybxm',' ','增值税汇总一般企业税额计算总览表#21#一般项目','1','21','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_zzsybnsr_ybhz','ybxm',' ',' ','if({C[#firstmonsea]}=1,{S[select sum(t1.fqmye) from t_tcvat_ybnsr_jsxm t1 left join t_tctb_declare_main t2 on t1.fsbbid = CONCAT(t2.fid , '''') where t2.forgid=''#orgid'' and t2.fskssqq=to_date(''#prestartDate'') and t2.fskssqz=to_date(''#preendDate'') and t2.fnsrtype=''#taxpayertype'' and t1.fswsxdm not in (789806480307039232,789806484266464256,789806484274850816) and t1.fewblxh != ''1'']},{S[select t1.fqmye from t_tcvat_ybnsr_jsxm t1 left join t_tctb_declare_main t2 on t1.fsbbid = CONCAT(t2.fid , '''') where t1.fewblxh=''1'' and t2.forgid=''#orgid'' and t2.fskssqq=to_date(''#prestartDate'') and t2.fskssqz=to_date(''#preendDate'') and t2.fnsrtype=''#taxpayertype'']}-{S[select sum(t1.fjmsfe) from t_tcvat_sb_fjsf t1 left join t_tctb_declare_main t2 on t1.fsbbid = CONCAT(t2.fid , '''') where t1.fjmxzdm in (789806478352493568,789806478377661440,1355833647369817089,790466954849808384,790466954891627520,1355833647369822210,790468283471097856,790468283504528384,1355833647369817090) and t2.forgid=''#orgid'' and t2.fskssqq=to_date(''#prestartDate'') and t2.fskssqz=to_date(''#preendDate'') and t2.fnsrtype=''#taxpayertype'']})');
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084370;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084370,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_zzsybnsr_ybhz#30#ybxm',' ','增值税汇总一般企业税额计算总览表#30#一般项目','1','30','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_zzsybnsr_ybhz','ybxm',' ',' ','{S[SELECT sum(fyjsjje) FROM t_tctb_declare_entry WHERE fid IN (SELECT fid FROM t_tcvat_prepay_declare WHERE fskssqq>=to_date(''#startDate'') AND fskssqz<=to_date(''#endDate'') AND forgid in(select forgid from  t_tctb_org_group_detail where fcollectorg = ''#orgid'' and fid  in (select fid from t_tctb_org_group where ftaxtype=''zzs'' and feffectdate<=to_date(''#startDate'') and (finvaliddate>=to_date(''#endDate'') or finvaliddate is null) and fstatus = ''2'')) AND fpaystatus=''1'' AND  fdeductionperiod=''0'') AND ftaxtype=''1'']}');
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084371;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084371,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_zzsybnsr_ybhz#29#ybxm',' ','增值税汇总一般企业税额计算总览表#29#一般项目','1','29','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_zzsybnsr_ybhz','ybxm',' ',' ','{Q[tcvat_zlb_zzsybnsr_ybhz#26#ybxm]}+{Q[tcvat_zlb_zzsybnsr_ybhz#27#ybxm]}-{Q[tcvat_zlb_zzsybnsr_ybhz#28#ybxm]}');
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084372;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084372,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_zzsybnsr_ybhz#29#jzjtxm',' ','增值税汇总一般企业税额计算总览表#29#即征即退项目','1','29','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_zzsybnsr_ybhz','jzjtxm',' ',' ','{Q[tcvat_zlb_zzsybnsr_ybhz#26#jzjtxm]}+{Q[tcvat_zlb_zzsybnsr_ybhz#27#jzjtxm]}-{Q[tcvat_zlb_zzsybnsr_ybhz#28#jzjtxm]}');
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084373;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084373,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_zzsybnsr_ybhz#31#jzjtxm',' ','增值税汇总一般企业税额计算总览表#31#即征即退项目','1','31','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_zzsybnsr_ybhz','jzjtxm',' ',' ','{Q[tcvat_zlb_zzsybnsr_ybhz#29#jzjtxm]}-{Q[tcvat_zlb_zzsybnsr_ybhz#30#jzjtxm]}');
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084374;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084374,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_dg_ybnsr_ybhz#1#ybhzxse',' ','底稿单据表#1#销售额','1','1','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_dg_ybnsr_ybhz','ybhzxse','1',' ','{Q[tcvat_zlb_zzsybnsr_ybhz#5#ybxm]}+{Q[tcvat_zlb_zzsybnsr_ybhz#5#jzjtxm]}');
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084375;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084375,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_ybnsr_ybhz_bt#1#lwxssr',' ','增值税汇总一般企业税额分配总览表基本信息#1#一般货物及劳务销售收入','1','1','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_ybnsr_ybhz_bt','lwxssr',' ',' ','{Q[tcvat_zlb_ybnsr_ybhz_fpb#7#xssr]}');
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084376;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084376,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_zzsybnsr_ybhz#5#ybxm',' ','增值税汇总一般企业税额计算总览表#5#一般项目','1','5','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_zzsybnsr_ybhz','ybxm',' ',' ','{Q[tcvat_zlb_zzsybnsr_ybhz#1#ybxm]}+{Q[tcvat_zlb_zzsybnsr_ybhz#2#ybxm]}+{Q[tcvat_zlb_zzsybnsr_ybhz#3#ybxm]}+{Q[tcvat_zlb_zzsybnsr_ybhz#4#ybxm]}');
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084377;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084377,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_zzsybnsr_ybhz#8#ybxm',' ','增值税汇总一般企业税额计算总览表#8#一般项目','1','8','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_zzsybnsr_ybhz','ybxm',' ',' ','{Q[tcvat_zlb_zzsybnsr_ybhz#6#ybxm]}+{Q[tcvat_zlb_zzsybnsr_ybhz#7#ybxm]}');
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084378;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084378,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_dg_ybnsr_ybhz#1#ybhzxxse',' ','底稿单据表#1#销项税额','1','1','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_dg_ybnsr_ybhz','ybhzxxse','1',' ','{Q[tcvat_zlb_zzsybnsr_ybhz#8#ybxm]}+{Q[tcvat_zlb_zzsybnsr_ybhz#8#jzjtxm]}');
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084379;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084379,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_zzsybnsr_ybhz#19#ybxm',' ','增值税汇总一般企业税额计算总览表#19#一般项目','1','19','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_zzsybnsr_ybhz','ybxm',' ',' ','if({Q[tcvat_zlb_zzsybnsr_ybhz#16#ybxm]}+{Q[tcvat_zlb_zzsybnsr_ybhz#17#ybxm]}-{Q[tcvat_zlb_zzsybnsr_ybhz#18#ybxm]}>=0, if({Q[tcvat_zlb_zzsybnsr_ybhz#16#ybxm]}+{Q[tcvat_zlb_zzsybnsr_ybhz#17#ybxm]}-{Q[tcvat_zlb_zzsybnsr_ybhz#18#ybxm]} < {Q[tcvat_zlb_zzsybnsr_ybhz#8#ybxm]}-{Q[tcvat_zlb_zzsybnsr_ybhz#14#ybxm]}, {Q[tcvat_zlb_zzsybnsr_ybhz#16#ybxm]}+{Q[tcvat_zlb_zzsybnsr_ybhz#17#ybxm]}-{Q[tcvat_zlb_zzsybnsr_ybhz#18#ybxm]}, {Q[tcvat_zlb_zzsybnsr_ybhz#8#ybxm]}-{Q[tcvat_zlb_zzsybnsr_ybhz#14#ybxm]}), 0)');
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084380;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084380,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_zzsybnsr_ybhz#20#ybxm',' ','增值税汇总一般企业税额计算总览表#20#一般项目','1','20','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_zzsybnsr_ybhz','ybxm',' ',' ','{Q[tcvat_zlb_zzsybnsr_ybhz#16#ybxm]}+{Q[tcvat_zlb_zzsybnsr_ybhz#17#ybxm]}-{Q[tcvat_zlb_zzsybnsr_ybhz#18#ybxm]}-{Q[tcvat_zlb_zzsybnsr_ybhz#19#ybxm]}');
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084381;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084381,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_zzsybnsr_ybhz#13#ybxm',' ','增值税汇总一般企业税额计算总览表#13#一般项目','1','13','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_zzsybnsr_ybhz','ybxm',' ',' ','{Q[tcvat_zlb_zzsybnsr_ybhz#9#ybxm]} - {Q[tcvat_zlb_zzsybnsr_ybhz#10#ybxm]}-{Q[tcvat_zlb_zzsybnsr_ybhz#11#ybxm]}+{Q[tcvat_zlb_zzsybnsr_ybhz#12#ybxm]}');
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084382;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084382,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_zzsybnsr_ybhz#14#ybxm',' ','增值税汇总一般企业税额计算总览表#14#一般项目','1','14','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_zzsybnsr_ybhz','ybxm',' ',' ','if({Q[tcvat_zlb_zzsybnsr_ybhz#8#ybxm]} > {Q[tcvat_zlb_zzsybnsr_ybhz#13#ybxm]}, {Q[tcvat_zlb_zzsybnsr_ybhz#13#ybxm]}, {Q[tcvat_zlb_zzsybnsr_ybhz#8#ybxm]})');
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084383;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084383,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_zzsybnsr_ybhz#15#ybxm',' ','增值税汇总一般企业税额计算总览表#15#一般项目','1','15','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_zzsybnsr_ybhz','ybxm',' ',' ','{Q[tcvat_zlb_zzsybnsr_ybhz#13#ybxm]}-{Q[tcvat_zlb_zzsybnsr_ybhz#14#ybxm]}');
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084384;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084384,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_zzsybnsr_ybhz#24#ybxm',' ','增值税汇总一般企业税额计算总览表#24#一般项目','1','24','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_zzsybnsr_ybhz','ybxm',' ',' ','if({Q[tcvat_zlb_zzsybnsr_ybhz#23#ybxm]} < ({Q[tcvat_zlb_zzsybnsr_ybhz#26#ybxm]} + {Q[tcvat_zlb_zzsybnsr_ybhz#27#ybxm]}) , if({Q[tcvat_zlb_zzsybnsr_ybhz#23#ybxm]} < 0, 0, {Q[tcvat_zlb_zzsybnsr_ybhz#23#ybxm]}), if(({Q[tcvat_zlb_zzsybnsr_ybhz#26#ybxm]} + {Q[tcvat_zlb_zzsybnsr_ybhz#27#ybxm]}) < 0, 0, {Q[tcvat_zlb_zzsybnsr_ybhz#26#ybxm]} + {Q[tcvat_zlb_zzsybnsr_ybhz#27#ybxm]}))');
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084385;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084385,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_zzsybnsr_ybhz#24#jzjtxm',' ','增值税汇总一般企业税额计算总览表#24#即征即退项目','1','24','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_zzsybnsr_ybhz','jzjtxm',' ',' ','if(({Q[tcvat_zlb_zzsybnsr_ybhz#23#ybxm]}-{Q[tcvat_zlb_zzsybnsr_ybhz#24#ybxm]}) <= ({Q[tcvat_zlb_zzsybnsr_ybhz#26#jzjtxm]}+{Q[tcvat_zlb_zzsybnsr_ybhz#27#jzjtxm]}), if(({Q[tcvat_zlb_zzsybnsr_ybhz#23#ybxm]}-{Q[tcvat_zlb_zzsybnsr_ybhz#24#ybxm]}) < 0, 0, ({Q[tcvat_zlb_zzsybnsr_ybhz#23#ybxm]}-{Q[tcvat_zlb_zzsybnsr_ybhz#24#ybxm]})), if(({Q[tcvat_zlb_zzsybnsr_ybhz#26#jzjtxm]}+{Q[tcvat_zlb_zzsybnsr_ybhz#27#jzjtxm]})< 0, 0, ({Q[tcvat_zlb_zzsybnsr_ybhz#26#jzjtxm]}+{Q[tcvat_zlb_zzsybnsr_ybhz#27#jzjtxm]})))');
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084386;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084386,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_zzsybnsr_ybhz#25#ybxm',' ','增值税汇总一般企业税额计算总览表#25#一般项目','1','25','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_zzsybnsr_ybhz','ybxm',' ',' ','{Q[tcvat_zlb_zzsybnsr_ybhz#23#ybxm]}-{Q[tcvat_zlb_zzsybnsr_ybhz#24#ybxm]}-{Q[tcvat_zlb_zzsybnsr_ybhz#24#jzjtxm]}');
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084387;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084387,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_zzsybnsr_ybhz#26#ybxm',' ','增值税汇总一般企业税额计算总览表#26#一般项目','1','26','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_zzsybnsr_ybhz','ybxm',' ',' ','{Q[tcvat_zlb_zzsybnsr_ybhz#8#ybxm]}-{Q[tcvat_zlb_zzsybnsr_ybhz#14#ybxm]}-{Q[tcvat_zlb_zzsybnsr_ybhz#19#ybxm]}');
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084388;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084388,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_zzsybnsr_ybhz#28#ybxm',' ','增值税汇总一般企业税额计算总览表#28#一般项目','1','28','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_zzsybnsr_ybhz','ybxm',' ',' ','{Q[tcvat_zlb_zzsybnsr_ybhz#24#ybxm]}');
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084389;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084389,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_dg_ybnsr_ybhz#1#ybhzjxse',' ','底稿单据表#1#进项税额','1','1','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_dg_ybnsr_ybhz','ybhzjxse','1',' ','{Q[tcvat_zlb_zzsybnsr_ybhz#9#ybxm]}+{Q[tcvat_zlb_zzsybnsr_ybhz#9#jzjtxm]}');
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084390;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084390,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_zzsybnsr_ybhz#5#jzjtxm',' ','增值税汇总一般企业税额计算总览表#5#即征即退项目','1','5','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_zzsybnsr_ybhz','jzjtxm',' ',' ','{Q[tcvat_zlb_zzsybnsr_ybhz#1#jzjtxm]}+{Q[tcvat_zlb_zzsybnsr_ybhz#2#jzjtxm]}');
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084391;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084391,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_zzsybnsr_ybhz#8#jzjtxm',' ','增值税汇总一般企业税额计算总览表#8#即征即退项目','1','8','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_zzsybnsr_ybhz','jzjtxm',' ',' ','{Q[tcvat_zlb_zzsybnsr_ybhz#6#jzjtxm]}+{Q[tcvat_zlb_zzsybnsr_ybhz#7#jzjtxm]}');
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084392;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084392,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_zzsybnsr_ybhz#15#jzjtxm',' ','增值税汇总一般企业税额计算总览表#15#即征即退项目','1','15','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_zzsybnsr_ybhz','jzjtxm',' ',' ','{Q[tcvat_zlb_zzsybnsr_ybhz#13#jzjtxm]}-{Q[tcvat_zlb_zzsybnsr_ybhz#14#jzjtxm]}');
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084393;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084393,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_zzsybnsr_ybhz#19#jzjtxm',' ','增值税汇总一般企业税额计算总览表#19#即征即退项目','1','19','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_zzsybnsr_ybhz','jzjtxm',' ',' ','if({Q[tcvat_zlb_zzsybnsr_ybhz#16#jzjtxm]}+{Q[tcvat_zlb_zzsybnsr_ybhz#17#jzjtxm]}-{Q[tcvat_zlb_zzsybnsr_ybhz#18#jzjtxm]}>=0, if({Q[tcvat_zlb_zzsybnsr_ybhz#16#jzjtxm]}+{Q[tcvat_zlb_zzsybnsr_ybhz#17#jzjtxm]}-{Q[tcvat_zlb_zzsybnsr_ybhz#18#jzjtxm]} < {Q[tcvat_zlb_zzsybnsr_ybhz#8#jzjtxm]}-{Q[tcvat_zlb_zzsybnsr_ybhz#14#jzjtxm]}, {Q[tcvat_zlb_zzsybnsr_ybhz#16#jzjtxm]}+{Q[tcvat_zlb_zzsybnsr_ybhz#17#jzjtxm]}-{Q[tcvat_zlb_zzsybnsr_ybhz#18#jzjtxm]}, {Q[tcvat_zlb_zzsybnsr_ybhz#8#jzjtxm]}-{Q[tcvat_zlb_zzsybnsr_ybhz#14#jzjtxm]}), 0)');
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084394;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084394,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_zzsybnsr_ybhz#20#jzjtxm',' ','增值税汇总一般企业税额计算总览表#20#即征即退项目','1','20','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_zzsybnsr_ybhz','jzjtxm',' ',' ','{Q[tcvat_zlb_zzsybnsr_ybhz#16#jzjtxm]}+{Q[tcvat_zlb_zzsybnsr_ybhz#17#jzjtxm]}-{Q[tcvat_zlb_zzsybnsr_ybhz#18#jzjtxm]}-{Q[tcvat_zlb_zzsybnsr_ybhz#19#jzjtxm]}');
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084395;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084395,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_zzsybnsr_ybhz#13#jzjtxm',' ','增值税汇总一般企业税额计算总览表#13#即征即退项目','1','13','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_zzsybnsr_ybhz','jzjtxm',' ',' ','{Q[tcvat_zlb_zzsybnsr_ybhz#9#jzjtxm]}-{Q[tcvat_zlb_zzsybnsr_ybhz#10#jzjtxm]}-{Q[tcvat_zlb_zzsybnsr_ybhz#11#jzjtxm]}+{Q[tcvat_zlb_zzsybnsr_ybhz#12#jzjtxm]}');
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084396;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084396,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_zzsybnsr_ybhz#14#jzjtxm',' ','增值税汇总一般企业税额计算总览表#14#即征即退项目','1','14','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_zzsybnsr_ybhz','jzjtxm',' ',' ','if({Q[tcvat_zlb_zzsybnsr_ybhz#8#jzjtxm]}<{Q[tcvat_zlb_zzsybnsr_ybhz#13#jzjtxm]}, {Q[tcvat_zlb_zzsybnsr_ybhz#8#jzjtxm]},{Q[tcvat_zlb_zzsybnsr_ybhz#13#jzjtxm]})');
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084397;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084397,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_zzsybnsr_ybhz#26#jzjtxm',' ','增值税汇总一般企业税额计算总览表#26#即征即退项目','1','26','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_zzsybnsr_ybhz','jzjtxm',' ',' ','{Q[tcvat_zlb_zzsybnsr_ybhz#8#jzjtxm]}-{Q[tcvat_zlb_zzsybnsr_ybhz#14#jzjtxm]}-{Q[tcvat_zlb_zzsybnsr_ybhz#19#jzjtxm]}');
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084398;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084398,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_zzsybnsr_ybhz#28#jzjtxm',' ','增值税汇总一般企业税额计算总览表#28#即征即退项目','1','28','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_zzsybnsr_ybhz','jzjtxm',' ',' ','{Q[tcvat_zlb_zzsybnsr_ybhz#24#jzjtxm]}');
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084399;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084399,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_dg_ybnsr_ybhz#1#ybhzjxsezc',' ','底稿单据表#1#进项税额转出','1','1','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_dg_ybnsr_ybhz','ybhzjxsezc','1',' ','{Q[tcvat_zlb_zzsybnsr_ybhz#10#ybxm]}+{Q[tcvat_zlb_zzsybnsr_ybhz#10#jzjtxm]}');
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084400;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084400,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_dg_ybnsr_ybhz#1#ybhzjyffynse',' ','底稿单据表#1#简易方法应纳税额','1','1','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_dg_ybnsr_ybhz','ybhzjyffynse','1',' ','{Q[tcvat_zlb_zzsybnsr_ybhz#7#ybxm]}+{Q[tcvat_zlb_zzsybnsr_ybhz#7#jzjtxm]}');
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084401;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084401,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_dg_ybnsr_ybhz#1#ybhzynse',' ','底稿单据表#1#应纳税额','1','1','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_dg_ybnsr_ybhz','ybhzynse','1',' ','{Q[tcvat_zlb_zzsybnsr_ybhz#29#ybxm]}+{Q[tcvat_zlb_zzsybnsr_ybhz#29#jzjtxm]}');
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084402;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084402,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_dg_ybnsr_ybhz#1#ybhzynsejze',' ','底稿单据表#1#应纳税额减征额','1','1','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_dg_ybnsr_ybhz','ybhzynsejze','1',' ','{Q[tcvat_zlb_zzsybnsr_ybhz#28#ybxm]}+{Q[tcvat_zlb_zzsybnsr_ybhz#28#jzjtxm]}');
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084403;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084403,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_zzsybnsr_ybhz#32#ybxm',' ','增值税汇总一般企业税额计算总览表#32#一般项目','1','32','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_zzsybnsr_ybhz','ybxm',' ',' ','{Q[tcvat_zlb_ybnsr_ybhz_fpb#1#fpse]} + {Q[tcvat_zlb_ybnsr_ybhz_fpb#1#ysfwfpse]}');
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084404;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084404,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_zzsybnsr_ybhz#32#jzjtxm',' ','增值税汇总一般企业税额计算总览表#32#即征即退项目','1','32','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_zzsybnsr_ybhz','jzjtxm',' ',' ','{Q[tcvat_zlb_ybnsr_ybhz_fpb#1#jzjtfpse]}+{Q[tcvat_zlb_ybnsr_ybhz_fpb#1#ysfwjzjtfpse]}');
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084405;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084405,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_zzsybnsr_ybhz#33#ybxm',' ','增值税汇总一般企业税额计算总览表#33#一般项目','1','33','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_zzsybnsr_ybhz','ybxm',' ',' ','{Q[tcvat_zlb_ybnsr_ybhz_fpb#2#fpse]}+ {Q[tcvat_zlb_ybnsr_ybhz_fpb#2#ysfwfpse]}');
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084406;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084406,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_zzsybnsr_ybhz#33#jzjtxm',' ','增值税汇总一般企业税额计算总览表#33#即征即退项目','1','33','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_zzsybnsr_ybhz','jzjtxm',' ',' ','{Q[tcvat_zlb_ybnsr_ybhz_fpb#2#jzjtfpse]}+{Q[tcvat_zlb_ybnsr_ybhz_fpb#2#ysfwjzjtfpse]}');
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084407;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084407,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_zzsybnsr_ybhz#34#ybxm',' ','增值税汇总一般企业税额计算总览表#34#一般项目','1','34','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_zzsybnsr_ybhz','ybxm',' ',' ','{Q[tcvat_zlb_ybnsr_ybhz_fpb#3#fpse]}+ {Q[tcvat_zlb_ybnsr_ybhz_fpb#3#ysfwfpse]}');
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084408;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084408,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_zzsybnsr_ybhz#35#ybxm',' ','增值税汇总一般企业税额计算总览表#35#一般项目','1','35','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_zzsybnsr_ybhz','ybxm',' ',' ','{Q[tcvat_zlb_ybnsr_ybhz_fpb#4#fpse]}+ {Q[tcvat_zlb_ybnsr_ybhz_fpb#4#ysfwfpse]}');
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084409;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084409,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_zzsybnsr_ybhz#36#ybxm',' ','增值税汇总一般企业税额计算总览表#36#一般项目','1','36','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_zzsybnsr_ybhz','ybxm',' ',' ','{Q[tcvat_zlb_ybnsr_ybhz_fpb#5#fpse]}+ {Q[tcvat_zlb_ybnsr_ybhz_fpb#5#ysfwfpse]}');
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084410;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084410,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_zzsybnsr_ybhz#37#ybxm',' ','增值税汇总一般企业税额计算总览表#37#一般项目','1','37','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_zzsybnsr_ybhz','ybxm',' ',' ','{Q[tcvat_zlb_ybnsr_ybhz_fpb#6#fpse]}+ {Q[tcvat_zlb_ybnsr_ybhz_fpb#6#ysfwfpse]}');
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084411;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084411,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_zzsybnsr_ybhz#34#jzjtxm',' ','增值税汇总一般企业税额计算总览表#34#即征即退项目','1','34','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_zzsybnsr_ybhz','jzjtxm',' ',' ','{Q[tcvat_zlb_ybnsr_ybhz_fpb#3#jzjtfpse]}+{Q[tcvat_zlb_ybnsr_ybhz_fpb#3#ysfwjzjtfpse]}');
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084412;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084412,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_zzsybnsr_ybhz#35#jzjtxm',' ','增值税汇总一般企业税额计算总览表#35#即征即退项目','1','35','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_zzsybnsr_ybhz','jzjtxm',' ',' ','{Q[tcvat_zlb_ybnsr_ybhz_fpb#4#jzjtfpse]}+{Q[tcvat_zlb_ybnsr_ybhz_fpb#4#ysfwjzjtfpse]}');
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084413;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084413,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_zzsybnsr_ybhz#36#jzjtxm',' ','增值税汇总一般企业税额计算总览表#36#即征即退项目','1','36','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_zzsybnsr_ybhz','jzjtxm',' ',' ','{Q[tcvat_zlb_ybnsr_ybhz_fpb#5#jzjtfpse]}+{Q[tcvat_zlb_ybnsr_ybhz_fpb#5#ysfwjzjtfpse]}');
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084414;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084414,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_zzsybnsr_ybhz#37#jzjtxm',' ','增值税汇总一般企业税额计算总览表#37#即征即退项目','1','37','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_zzsybnsr_ybhz','jzjtxm',' ',' ','{Q[tcvat_zlb_ybnsr_ybhz_fpb#6#jzjtfpse]}+{Q[tcvat_zlb_ybnsr_ybhz_fpb#6#ysfwjzjtfpse]}');
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084415;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084415,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_ybnsr_ybhz_bt#1#jzjtxse',' ','增值税汇总一般企业税额分配总览表基本信息#1#一般货物及劳务即征即退销售额','1','1','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_ybnsr_ybhz_bt','jzjtxse',' ',' ','{Q[tcvat_zlb_ybnsr_ybhz_fpb#7#jzjtxssr]}');
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084416;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084416,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_dg_ybnsr_ybhz#1#ybhzyjse',' ','底稿单据表#1#预缴税额','1','1','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_dg_ybnsr_ybhz','ybhzyjse','1',' ','{Q[tcvat_zlb_zzsybnsr_ybhz#30#ybxm]}+{Q[tcvat_zlb_zzsybnsr_ybhz#30#jzjtxm]}');
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084417;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084417,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_dg_ybnsr_ybhz#1#ybhzybtse',' ','底稿单据表#1#应补(退)税额','1','1','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_dg_ybnsr_ybhz','ybhzybtse','1',' ','{Q[tcvat_zlb_zzsybnsr_ybhz#31#ybxm]}+{Q[tcvat_zlb_zzsybnsr_ybhz#31#jzjtxm]}');
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084418;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084418,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_dg_ybnsr_ybhz#1#ybhzqmldse',' ','底稿单据表#1#期末留抵税额','1','1','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_dg_ybnsr_ybhz','ybhzqmldse','1',' ','{Q[tcvat_zlb_zzsybnsr_ybhz#15#ybxm]}+{Q[tcvat_zlb_zzsybnsr_ybhz#15#jzjtxm]}');
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084419;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084419,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_dg_ybnsr_ybhz#1#ybhzjjdjse',' ','底稿单据表#1#加计抵减税额','1','1','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_dg_ybnsr_ybhz','ybhzjjdjse','1',' ','{Q[tcvat_zlb_zzsybnsr_ybhz#19#ybxm]}+{Q[tcvat_zlb_zzsybnsr_ybhz#19#jzjtxm]}');
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084420;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084420,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_ybnsr_ybhz_bt#1#ysfwxse',' ','增值税汇总一般企业税额分配总览表基本信息#1#应税服务销售额','1','1','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_ybnsr_ybhz_bt','ysfwxse',' ',' ','{Q[tcvat_zlb_ybnsr_ybhz_fpb#7#ysfwxssr]}');
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084421;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084421,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_ybnsr_ybhz_bt#1#ysfwjzjtxse',' ','增值税汇总一般企业税额分配总览表基本信息#1#应税服务即征即退销售额','1','1','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_ybnsr_ybhz_bt','ysfwjzjtxse',' ',' ','{Q[tcvat_zlb_ybnsr_ybhz_fpb#7#ysfwjzjtxssr]}');
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084422;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084422,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_ybnsr_ybhz_bt#1#xsehj',' ','增值税汇总一般企业税额分配总览表基本信息#1#销售额合计','1','1','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_ybnsr_ybhz_bt','xsehj',' ',' ','{Q[tcvat_zlb_ybnsr_ybhz_bt#1#lwxssr]}+{Q[tcvat_zlb_ybnsr_ybhz_bt#1#jzjtxse]}+{Q[tcvat_zlb_ybnsr_ybhz_bt#1#ysfwxse]}+{Q[tcvat_zlb_ybnsr_ybhz_bt#1#ysfwjzjtxse]}');
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084423;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084423,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_ybnsr_ybhz_bt#1#lwxszb',' ','增值税汇总一般企业税额分配总览表基本信息#1#一般货物及劳务销售额占比','1','1','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_ybnsr_ybhz_bt','lwxszb',' ',' ','if({Q[tcvat_zlb_ybnsr_ybhz_bt#1#xsehj]} > 0, {Q[tcvat_zlb_ybnsr_ybhz_bt#1#lwxssr]}/{Q[tcvat_zlb_ybnsr_ybhz_bt#1#xsehj]}, 0)');
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084424;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084424,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_ybnsr_ybhz_bt#1#jzjtxszb',' ','增值税汇总一般企业税额分配总览表基本信息#1#一般货物及劳务即征即退销售占比','1','1','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_ybnsr_ybhz_bt','jzjtxszb',' ',' ','if({Q[tcvat_zlb_ybnsr_ybhz_bt#1#xsehj]} > 0, {Q[tcvat_zlb_ybnsr_ybhz_bt#1#jzjtxse]}/{Q[tcvat_zlb_ybnsr_ybhz_bt#1#xsehj]}, 0)');
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084425;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084425,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_ybnsr_ybhz_bt#1#ysfwxszb',' ','增值税汇总一般企业税额分配总览表基本信息#1#应税服务销售额占比','1','1','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_ybnsr_ybhz_bt','ysfwxszb',' ',' ','if({Q[tcvat_zlb_ybnsr_ybhz_bt#1#xsehj]} > 0, {Q[tcvat_zlb_ybnsr_ybhz_bt#1#ysfwxse]}/{Q[tcvat_zlb_ybnsr_ybhz_bt#1#xsehj]}, 0)');
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084426;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084426,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_ybnsr_ybhz_bt#1#ysfwjzjtxsezb',' ','增值税汇总一般企业税额分配总览表基本信息#1#应税服务即征即退销售额占比','1','1','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_ybnsr_ybhz_bt','ysfwjzjtxsezb',' ',' ','if({Q[tcvat_zlb_ybnsr_ybhz_bt#1#xsehj]}> 0, {Q[tcvat_zlb_ybnsr_ybhz_bt#1#ysfwjzjtxse]}/{Q[tcvat_zlb_ybnsr_ybhz_bt#1#xsehj]}, 0)');
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084427;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084427,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_ybnsr_ybhz_bt#1#xsezbhj',' ','增值税汇总一般企业税额分配总览表基本信息#1#销售额占比合计','1','1','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_ybnsr_ybhz_bt','xsezbhj',' ',' ','{Q[tcvat_zlb_ybnsr_ybhz_bt#1#lwxszb]}+{Q[tcvat_zlb_ybnsr_ybhz_bt#1#jzjtxszb]}+{Q[tcvat_zlb_ybnsr_ybhz_bt#1#ysfwxszb]}+{Q[tcvat_zlb_ybnsr_ybhz_bt#1#ysfwjzjtxsezb]}');
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084428;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084428,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_ybnsr_ybhz_bt#1#ybtsehj',' ','增值税汇总一般企业税额分配总览表基本信息#1#应补(退)税额合计','1','1','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_ybnsr_ybhz_bt','ybtsehj',' ',' ','{Q[tcvat_zlb_zzsybnsr_ybhz#31#ybxm]}+{Q[tcvat_zlb_zzsybnsr_ybhz#31#jzjtxm]}');
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084429;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084429,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_ybnsr_ybhz_bt#1#lwybtse',' ','增值税汇总一般企业税额分配总览表基本信息#1#一般货物及劳务应补（退）税额','1','1','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_ybnsr_ybhz_bt','lwybtse',' ',' ','{Q[tcvat_zlb_ybnsr_ybhz_bt#1#ybtsehj]}*{Q[tcvat_zlb_ybnsr_ybhz_bt#1#lwxszb]}');
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084430;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084430,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_ybnsr_ybhz_bt#1#jzjtybtse',' ','增值税汇总一般企业税额分配总览表基本信息#1#一般货物及劳务即征即退应补（退）税额','1','1','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_ybnsr_ybhz_bt','jzjtybtse',' ',' ','{Q[tcvat_zlb_ybnsr_ybhz_bt#1#ybtsehj]}*{Q[tcvat_zlb_ybnsr_ybhz_bt#1#jzjtxszb]}');
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084431;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084431,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_ybnsr_ybhz_bt#1#ysfwybtse',' ','增值税汇总一般企业税额分配总览表基本信息#1#应税服务应补（退）税额','1','1','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_ybnsr_ybhz_bt','ysfwybtse',' ',' ','{Q[tcvat_zlb_ybnsr_ybhz_bt#1#ybtsehj]}*{Q[tcvat_zlb_ybnsr_ybhz_bt#1#ysfwxszb]}');
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084432;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084432,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_ybnsr_ybhz_bt#1#ysfwjzjtybtse',' ','增值税汇总一般企业税额分配总览表基本信息#1#应税服务即征即退应补（退）税额','1','1','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_ybnsr_ybhz_bt','ysfwjzjtybtse',' ',' ','{Q[tcvat_zlb_ybnsr_ybhz_bt#1#ybtsehj]}*{Q[tcvat_zlb_ybnsr_ybhz_bt#1#ysfwjzjtxsezb]}');
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084433;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084433,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_ybnsr_ybhz_fpb#1#pbsehj',' ','增值税汇总一般企业分配表#1#分配税额合计','1','1','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_ybnsr_ybhz_fpb','pbsehj',' ',' ','{Q[tcvat_zlb_ybnsr_ybhz_fpb#1#fpse]}+{Q[tcvat_zlb_ybnsr_ybhz_fpb#1#jzjtfpse]}+{Q[tcvat_zlb_ybnsr_ybhz_fpb#1#ysfwfpse]}+{Q[tcvat_zlb_ybnsr_ybhz_fpb#1#ysfwjzjtfpse]}');
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084434;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084434,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_ybnsr_ybhz_fpb#2#pbsehj',' ','增值税汇总一般企业分配表#2#分配税额合计','1','2','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_ybnsr_ybhz_fpb','pbsehj',' ',' ','{Q[tcvat_zlb_ybnsr_ybhz_fpb#2#fpse]}+{Q[tcvat_zlb_ybnsr_ybhz_fpb#2#jzjtfpse]}+{Q[tcvat_zlb_ybnsr_ybhz_fpb#2#ysfwfpse]}+{Q[tcvat_zlb_ybnsr_ybhz_fpb#2#ysfwjzjtfpse]}');
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084435;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084435,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_ybnsr_ybhz_fpb#3#pbsehj',' ','增值税汇总一般企业分配表#3#分配税额合计','1','3','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_ybnsr_ybhz_fpb','pbsehj',' ',' ','{Q[tcvat_zlb_ybnsr_ybhz_fpb#3#fpse]}+{Q[tcvat_zlb_ybnsr_ybhz_fpb#3#jzjtfpse]}+{Q[tcvat_zlb_ybnsr_ybhz_fpb#3#ysfwfpse]}+{Q[tcvat_zlb_ybnsr_ybhz_fpb#3#ysfwjzjtfpse]}');
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084436;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084436,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_ybnsr_ybhz_fpb#4#pbsehj',' ','增值税汇总一般企业分配表#4#分配税额合计','1','4','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_ybnsr_ybhz_fpb','pbsehj',' ',' ','{Q[tcvat_zlb_ybnsr_ybhz_fpb#4#fpse]}+{Q[tcvat_zlb_ybnsr_ybhz_fpb#4#jzjtfpse]}+{Q[tcvat_zlb_ybnsr_ybhz_fpb#4#ysfwfpse]}+{Q[tcvat_zlb_ybnsr_ybhz_fpb#4#ysfwjzjtfpse]}');
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084437;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084437,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_ybnsr_ybhz_fpb#5#pbsehj',' ','增值税汇总一般企业分配表#5#分配税额合计','1','5','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_ybnsr_ybhz_fpb','pbsehj',' ',' ','{Q[tcvat_zlb_ybnsr_ybhz_fpb#5#fpse]}+{Q[tcvat_zlb_ybnsr_ybhz_fpb#5#jzjtfpse]}+{Q[tcvat_zlb_ybnsr_ybhz_fpb#5#ysfwfpse]}+{Q[tcvat_zlb_ybnsr_ybhz_fpb#5#ysfwjzjtfpse]}');
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084438;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084438,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_ybnsr_ybhz_fpb#6#pbsehj',' ','增值税汇总一般企业分配表#6#分配税额合计','1','6','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_ybnsr_ybhz_fpb','pbsehj',' ',' ','{Q[tcvat_zlb_ybnsr_ybhz_fpb#6#fpse]}+{Q[tcvat_zlb_ybnsr_ybhz_fpb#6#jzjtfpse]}+{Q[tcvat_zlb_ybnsr_ybhz_fpb#6#ysfwfpse]}+{Q[tcvat_zlb_ybnsr_ybhz_fpb#6#ysfwjzjtfpse]}');
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084439;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084439,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_ybnsr_ybhz_fpb#7#pbsehj',' ','增值税汇总一般企业分配表#7#分配税额合计','1','7','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_ybnsr_ybhz_fpb','pbsehj',' ',' ','{Q[tcvat_zlb_ybnsr_ybhz_fpb#1#pbsehj]}+{Q[tcvat_zlb_ybnsr_ybhz_fpb#2#pbsehj]}+{Q[tcvat_zlb_ybnsr_ybhz_fpb#3#pbsehj]}+{Q[tcvat_zlb_ybnsr_ybhz_fpb#4#pbsehj]}+{Q[tcvat_zlb_ybnsr_ybhz_fpb#5#pbsehj]}+{Q[tcvat_zlb_ybnsr_ybhz_fpb#6#pbsehj]}');
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084440;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084440,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_ybnsr_ybhz_fpb#2#jzjtfpse',' ','增值税汇总一般企业分配表#2#一般货物及劳务即征即退分配税额','1','2','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_ybnsr_ybhz_fpb','jzjtfpse',' ',' ','{Q[tcvat_zlb_ybnsr_ybhz_fpb#2#jzjtfpbl]}*{Q[tcvat_zlb_ybnsr_ybhz_bt#1#jzjtybtse]}');
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084441;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084441,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_ybnsr_ybhz_fpb#3#jzjtfpse',' ','增值税汇总一般企业分配表#3#一般货物及劳务即征即退分配税额','1','3','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_ybnsr_ybhz_fpb','jzjtfpse',' ',' ','{Q[tcvat_zlb_ybnsr_ybhz_fpb#3#jzjtfpbl]}*{Q[tcvat_zlb_ybnsr_ybhz_bt#1#jzjtybtse]}');
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084442;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084442,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_ybnsr_ybhz_fpb#4#jzjtfpse',' ','增值税汇总一般企业分配表#4#一般货物及劳务即征即退分配税额','1','4','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_ybnsr_ybhz_fpb','jzjtfpse',' ',' ','{Q[tcvat_zlb_ybnsr_ybhz_fpb#4#jzjtfpbl]}*{Q[tcvat_zlb_ybnsr_ybhz_bt#1#jzjtybtse]}');
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084443;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084443,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_ybnsr_ybhz_fpb#5#jzjtfpse',' ','增值税汇总一般企业分配表#5#一般货物及劳务即征即退分配税额','1','5','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_ybnsr_ybhz_fpb','jzjtfpse',' ',' ','{Q[tcvat_zlb_ybnsr_ybhz_fpb#5#jzjtfpbl]}*{Q[tcvat_zlb_ybnsr_ybhz_bt#1#jzjtybtse]}');
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084444;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084444,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_ybnsr_ybhz_fpb#1#fpse',' ','增值税汇总一般企业分配表#1#一般货物及劳务分配税额','1','1','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_ybnsr_ybhz_fpb','fpse',' ',' ','{Q[tcvat_zlb_ybnsr_ybhz_fpb#1#fpbl]}*{Q[tcvat_zlb_ybnsr_ybhz_bt#1#lwybtse]}');
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084445;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084445,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_ybnsr_ybhz_fpb#2#fpse',' ','增值税汇总一般企业分配表#2#一般货物及劳务分配税额','1','2','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_ybnsr_ybhz_fpb','fpse',' ',' ','{Q[tcvat_zlb_ybnsr_ybhz_fpb#2#fpbl]}*{Q[tcvat_zlb_ybnsr_ybhz_bt#1#lwybtse]}');
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084446;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084446,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_ybnsr_ybhz_fpb#3#fpse',' ','增值税汇总一般企业分配表#3#一般货物及劳务分配税额','1','3','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_ybnsr_ybhz_fpb','fpse',' ',' ','{Q[tcvat_zlb_ybnsr_ybhz_fpb#3#fpbl]}*{Q[tcvat_zlb_ybnsr_ybhz_bt#1#lwybtse]}');
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084447;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084447,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_ybnsr_ybhz_fpb#4#fpse',' ','增值税汇总一般企业分配表#4#一般货物及劳务分配税额','1','4','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_ybnsr_ybhz_fpb','fpse',' ',' ','{Q[tcvat_zlb_ybnsr_ybhz_fpb#4#fpbl]}*{Q[tcvat_zlb_ybnsr_ybhz_bt#1#lwybtse]}');
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084448;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084448,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_ybnsr_ybhz_fpb#5#fpse',' ','增值税汇总一般企业分配表#5#一般货物及劳务分配税额','1','5','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_ybnsr_ybhz_fpb','fpse',' ',' ','{Q[tcvat_zlb_ybnsr_ybhz_fpb#5#fpbl]}*{Q[tcvat_zlb_ybnsr_ybhz_bt#1#lwybtse]}');
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084449;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084449,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_ybnsr_ybhz_fpb#6#fpse',' ','增值税汇总一般企业分配表#6#一般货物及劳务分配税额','1','6','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_ybnsr_ybhz_fpb','fpse',' ',' ','{Q[tcvat_zlb_ybnsr_ybhz_fpb#6#fpbl]}*{Q[tcvat_zlb_ybnsr_ybhz_bt#1#lwybtse]}');
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084450;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084450,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_ybnsr_ybhz_fpb#1#jzjtfpse',' ','增值税汇总一般企业分配表#1#一般货物及劳务即征即退分配税额','1','1','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_ybnsr_ybhz_fpb','jzjtfpse',' ',' ','{Q[tcvat_zlb_ybnsr_ybhz_fpb#1#jzjtfpbl]}*{Q[tcvat_zlb_ybnsr_ybhz_bt#1#jzjtybtse]}');
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084451;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084451,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_ybnsr_ybhz_fpb#6#jzjtfpse',' ','增值税汇总一般企业分配表#6#一般货物及劳务即征即退分配税额','1','6','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_ybnsr_ybhz_fpb','jzjtfpse',' ',' ','{Q[tcvat_zlb_ybnsr_ybhz_fpb#6#jzjtfpbl]}*{Q[tcvat_zlb_ybnsr_ybhz_bt#1#jzjtybtse]}');
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084452;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084452,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_ybnsr_ybhz_fpb#1#ysfwfpse',' ','增值税汇总一般企业分配表#1#应税服务分配税额','1','1','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_ybnsr_ybhz_fpb','ysfwfpse',' ',' ','{Q[tcvat_zlb_ybnsr_ybhz_fpb#1#ysfwfpbl]}*{Q[tcvat_zlb_ybnsr_ybhz_bt#1#ysfwybtse]}');
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084453;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084453,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_ybnsr_ybhz_fpb#2#ysfwfpse',' ','增值税汇总一般企业分配表#2#应税服务分配税额','1','2','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_ybnsr_ybhz_fpb','ysfwfpse',' ',' ','{Q[tcvat_zlb_ybnsr_ybhz_fpb#2#ysfwfpbl]}*{Q[tcvat_zlb_ybnsr_ybhz_bt#1#ysfwybtse]}');
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084454;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084454,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_ybnsr_ybhz_fpb#3#ysfwfpse',' ','增值税汇总一般企业分配表#3#应税服务分配税额','1','3','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_ybnsr_ybhz_fpb','ysfwfpse',' ',' ','{Q[tcvat_zlb_ybnsr_ybhz_fpb#3#ysfwfpbl]}*{Q[tcvat_zlb_ybnsr_ybhz_bt#1#ysfwybtse]}');
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084455;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084455,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_ybnsr_ybhz_fpb#4#ysfwfpse',' ','增值税汇总一般企业分配表#4#应税服务分配税额','1','4','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_ybnsr_ybhz_fpb','ysfwfpse',' ',' ','{Q[tcvat_zlb_ybnsr_ybhz_fpb#4#ysfwfpbl]}*{Q[tcvat_zlb_ybnsr_ybhz_bt#1#ysfwybtse]}');
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084456;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084456,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_ybnsr_ybhz_fpb#5#ysfwfpse',' ','增值税汇总一般企业分配表#5#应税服务分配税额','1','5','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_ybnsr_ybhz_fpb','ysfwfpse',' ',' ','{Q[tcvat_zlb_ybnsr_ybhz_fpb#5#ysfwfpbl]}*{Q[tcvat_zlb_ybnsr_ybhz_bt#1#ysfwybtse]}');
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084457;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084457,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_ybnsr_ybhz_fpb#6#ysfwfpse',' ','增值税汇总一般企业分配表#6#应税服务分配税额','1','6','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_ybnsr_ybhz_fpb','ysfwfpse',' ',' ','{Q[tcvat_zlb_ybnsr_ybhz_fpb#6#ysfwfpbl]}*{Q[tcvat_zlb_ybnsr_ybhz_bt#1#ysfwybtse]}');
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084458;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084458,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_ybnsr_ybhz_fpb#1#ysfwjzjtfpse',' ','增值税汇总一般企业分配表#1#应税服务即征即退分配税额','1','1','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_ybnsr_ybhz_fpb','ysfwjzjtfpse',' ',' ','{Q[tcvat_zlb_ybnsr_ybhz_fpb#1#ysfwjzjtfpbl]}*{Q[tcvat_zlb_ybnsr_ybhz_bt#1#ysfwjzjtybtse]}');
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084459;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084459,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_ybnsr_ybhz_fpb#2#ysfwjzjtfpse',' ','增值税汇总一般企业分配表#2#应税服务即征即退分配税额','1','2','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_ybnsr_ybhz_fpb','ysfwjzjtfpse',' ',' ','{Q[tcvat_zlb_ybnsr_ybhz_fpb#2#ysfwjzjtfpbl]}*{Q[tcvat_zlb_ybnsr_ybhz_bt#1#ysfwjzjtybtse]}');
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084460;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084460,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_ybnsr_ybhz_fpb#3#ysfwjzjtfpse',' ','增值税汇总一般企业分配表#3#应税服务即征即退分配税额','1','3','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_ybnsr_ybhz_fpb','ysfwjzjtfpse',' ',' ','{Q[tcvat_zlb_ybnsr_ybhz_fpb#3#ysfwjzjtfpbl]}*{Q[tcvat_zlb_ybnsr_ybhz_bt#1#ysfwjzjtybtse]}');
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084461;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084461,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_ybnsr_ybhz_fpb#4#ysfwjzjtfpse',' ','增值税汇总一般企业分配表#4#应税服务即征即退分配税额','1','4','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_ybnsr_ybhz_fpb','ysfwjzjtfpse',' ',' ','{Q[tcvat_zlb_ybnsr_ybhz_fpb#4#ysfwjzjtfpbl]}*{Q[tcvat_zlb_ybnsr_ybhz_bt#1#ysfwjzjtybtse]}');
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084462;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084462,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_ybnsr_ybhz_fpb#5#ysfwjzjtfpse',' ','增值税汇总一般企业分配表#5#应税服务即征即退分配税额','1','5','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_ybnsr_ybhz_fpb','ysfwjzjtfpse',' ',' ','{Q[tcvat_zlb_ybnsr_ybhz_fpb#5#ysfwjzjtfpbl]}*{Q[tcvat_zlb_ybnsr_ybhz_bt#1#ysfwjzjtybtse]}');
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084463;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084463,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_ybnsr_ybhz_fpb#6#ysfwjzjtfpse',' ','增值税汇总一般企业分配表#6#应税服务即征即退分配税额','1','6','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_ybnsr_ybhz_fpb','ysfwjzjtfpse',' ',' ','{Q[tcvat_zlb_ybnsr_ybhz_fpb#6#ysfwjzjtfpbl]}*{Q[tcvat_zlb_ybnsr_ybhz_bt#1#ysfwjzjtybtse]}');
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084464;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084464,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_ybnsr_ybhz_fpb#7#xssr',' ','增值税汇总一般企业分配表#7#一般货物及劳务销售收入','1','7','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_ybnsr_ybhz_fpb','xssr',' ',' ','{Q[tcvat_zlb_ybnsr_ybhz_fpb#1#xssr]}+{Q[tcvat_zlb_ybnsr_ybhz_fpb#2#xssr]}+{Q[tcvat_zlb_ybnsr_ybhz_fpb#3#xssr]}+{Q[tcvat_zlb_ybnsr_ybhz_fpb#4#xssr]}+{Q[tcvat_zlb_ybnsr_ybhz_fpb#5#xssr]}+{Q[tcvat_zlb_ybnsr_ybhz_fpb#6#xssr]}');
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084465;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084465,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_ybnsr_ybhz_fpb#7#fpbl',' ','增值税汇总一般企业分配表#7#一般货物及劳务分配比例','1','7','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_ybnsr_ybhz_fpb','fpbl',' ',' ','{Q[tcvat_zlb_ybnsr_ybhz_fpb#1#fpbl]}+{Q[tcvat_zlb_ybnsr_ybhz_fpb#2#fpbl]}+{Q[tcvat_zlb_ybnsr_ybhz_fpb#3#fpbl]}+{Q[tcvat_zlb_ybnsr_ybhz_fpb#4#fpbl]}+{Q[tcvat_zlb_ybnsr_ybhz_fpb#5#fpbl]}+{Q[tcvat_zlb_ybnsr_ybhz_fpb#6#fpbl]}');
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084466;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084466,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_ybnsr_ybhz_fpb#7#fpse',' ','增值税汇总一般企业分配表#7#一般货物及劳务分配税额','1','7','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_ybnsr_ybhz_fpb','fpse',' ',' ','{Q[tcvat_zlb_ybnsr_ybhz_fpb#1#fpse]}+{Q[tcvat_zlb_ybnsr_ybhz_fpb#2#fpse]}+{Q[tcvat_zlb_ybnsr_ybhz_fpb#3#fpse]}+{Q[tcvat_zlb_ybnsr_ybhz_fpb#4#fpse]}+{Q[tcvat_zlb_ybnsr_ybhz_fpb#5#fpse]}+{Q[tcvat_zlb_ybnsr_ybhz_fpb#6#fpse]}');
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084467;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084467,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_ybnsr_ybhz_fpb#7#jzjtxssr',' ','增值税汇总一般企业分配表#7#一般货物及劳务即征即退销售收入','1','7','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_ybnsr_ybhz_fpb','jzjtxssr',' ',' ','{Q[tcvat_zlb_ybnsr_ybhz_fpb#1#jzjtxssr]}+{Q[tcvat_zlb_ybnsr_ybhz_fpb#2#jzjtxssr]}+{Q[tcvat_zlb_ybnsr_ybhz_fpb#3#jzjtxssr]}+{Q[tcvat_zlb_ybnsr_ybhz_fpb#4#jzjtxssr]}+{Q[tcvat_zlb_ybnsr_ybhz_fpb#5#jzjtxssr]}+{Q[tcvat_zlb_ybnsr_ybhz_fpb#6#jzjtxssr]}');
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084468;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084468,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_ybnsr_ybhz_fpb#7#jzjtfpbl',' ','增值税汇总一般企业分配表#7#一般货物及劳务即征即退分配比例','1','7','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_ybnsr_ybhz_fpb','jzjtfpbl',' ',' ','{Q[tcvat_zlb_ybnsr_ybhz_fpb#1#jzjtfpbl]}+{Q[tcvat_zlb_ybnsr_ybhz_fpb#2#jzjtfpbl]}+{Q[tcvat_zlb_ybnsr_ybhz_fpb#3#jzjtfpbl]}+{Q[tcvat_zlb_ybnsr_ybhz_fpb#4#jzjtfpbl]}+{Q[tcvat_zlb_ybnsr_ybhz_fpb#5#jzjtfpbl]}+{Q[tcvat_zlb_ybnsr_ybhz_fpb#6#jzjtfpbl]}');
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084469;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084469,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_ybnsr_ybhz_fpb#7#jzjtfpse',' ','增值税汇总一般企业分配表#7#一般货物及劳务即征即退分配税额','1','7','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_ybnsr_ybhz_fpb','jzjtfpse',' ',' ','{Q[tcvat_zlb_ybnsr_ybhz_fpb#1#jzjtfpse]}+{Q[tcvat_zlb_ybnsr_ybhz_fpb#2#jzjtfpse]}+{Q[tcvat_zlb_ybnsr_ybhz_fpb#3#jzjtfpse]}+{Q[tcvat_zlb_ybnsr_ybhz_fpb#4#jzjtfpse]}+{Q[tcvat_zlb_ybnsr_ybhz_fpb#5#jzjtfpse]}+{Q[tcvat_zlb_ybnsr_ybhz_fpb#6#jzjtfpse]}');
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084470;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084470,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_ybnsr_ybhz_fpb#7#ysfwxssr',' ','增值税汇总一般企业分配表#7#应税服务销售收入','1','7','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_ybnsr_ybhz_fpb','ysfwxssr',' ',' ','{Q[tcvat_zlb_ybnsr_ybhz_fpb#1#ysfwxssr]}+{Q[tcvat_zlb_ybnsr_ybhz_fpb#2#ysfwxssr]}+{Q[tcvat_zlb_ybnsr_ybhz_fpb#3#ysfwxssr]}+{Q[tcvat_zlb_ybnsr_ybhz_fpb#4#ysfwxssr]}+{Q[tcvat_zlb_ybnsr_ybhz_fpb#5#ysfwxssr]}+{Q[tcvat_zlb_ybnsr_ybhz_fpb#6#ysfwxssr]}');
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084471;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084471,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_ybnsr_ybhz_fpb#7#ysfwfpbl',' ','增值税汇总一般企业分配表#7#应税服务分配比例','1','7','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_ybnsr_ybhz_fpb','ysfwfpbl',' ',' ','{Q[tcvat_zlb_ybnsr_ybhz_fpb#1#ysfwfpbl]}+{Q[tcvat_zlb_ybnsr_ybhz_fpb#2#ysfwfpbl]}+{Q[tcvat_zlb_ybnsr_ybhz_fpb#3#ysfwfpbl]}+{Q[tcvat_zlb_ybnsr_ybhz_fpb#4#ysfwfpbl]}+{Q[tcvat_zlb_ybnsr_ybhz_fpb#5#ysfwfpbl]}+{Q[tcvat_zlb_ybnsr_ybhz_fpb#6#ysfwfpbl]}');
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084472;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084472,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_ybnsr_ybhz_fpb#7#ysfwfpse',' ','增值税汇总一般企业分配表#7#应税服务分配税额','1','7','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_ybnsr_ybhz_fpb','ysfwfpse',' ',' ','{Q[tcvat_zlb_ybnsr_ybhz_fpb#1#ysfwfpse]}+{Q[tcvat_zlb_ybnsr_ybhz_fpb#2#ysfwfpse]}+{Q[tcvat_zlb_ybnsr_ybhz_fpb#3#ysfwfpse]}+{Q[tcvat_zlb_ybnsr_ybhz_fpb#4#ysfwfpse]}+{Q[tcvat_zlb_ybnsr_ybhz_fpb#5#ysfwfpse]}+{Q[tcvat_zlb_ybnsr_ybhz_fpb#6#ysfwfpse]}');
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084473;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084473,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_ybnsr_ybhz_fpb#7#ysfwjzjtxssr',' ','增值税汇总一般企业分配表#7#应税服务即征即退销售收入','1','7','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_ybnsr_ybhz_fpb','ysfwjzjtxssr',' ',' ','{Q[tcvat_zlb_ybnsr_ybhz_fpb#1#ysfwjzjtxssr]}+{Q[tcvat_zlb_ybnsr_ybhz_fpb#2#ysfwjzjtxssr]}+{Q[tcvat_zlb_ybnsr_ybhz_fpb#3#ysfwjzjtxssr]}+{Q[tcvat_zlb_ybnsr_ybhz_fpb#4#ysfwjzjtxssr]}+{Q[tcvat_zlb_ybnsr_ybhz_fpb#5#ysfwjzjtxssr]}+{Q[tcvat_zlb_ybnsr_ybhz_fpb#6#ysfwjzjtxssr]}');
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084474;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084474,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_ybnsr_ybhz_fpb#7#ysfwjzjtfpbl',' ','增值税汇总一般企业分配表#7#应税服务即征即退分配比例','1','7','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_ybnsr_ybhz_fpb','ysfwjzjtfpbl',' ',' ','{Q[tcvat_zlb_ybnsr_ybhz_fpb#1#ysfwjzjtfpbl]}+{Q[tcvat_zlb_ybnsr_ybhz_fpb#2#ysfwjzjtfpbl]}+{Q[tcvat_zlb_ybnsr_ybhz_fpb#3#ysfwjzjtfpbl]}+{Q[tcvat_zlb_ybnsr_ybhz_fpb#4#ysfwjzjtfpbl]}+{Q[tcvat_zlb_ybnsr_ybhz_fpb#5#ysfwjzjtfpbl]}+{Q[tcvat_zlb_ybnsr_ybhz_fpb#6#ysfwjzjtfpbl]}');
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084475;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084475,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_ybnsr_ybhz_fpb#7#ysfwjzjtfpse',' ','增值税汇总一般企业分配表#7#应税服务即征即退分配税额','1','7','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_ybnsr_ybhz_fpb','ysfwjzjtfpse',' ',' ','{Q[tcvat_zlb_ybnsr_ybhz_fpb#1#ysfwjzjtfpse]}+{Q[tcvat_zlb_ybnsr_ybhz_fpb#2#ysfwjzjtfpse]}+{Q[tcvat_zlb_ybnsr_ybhz_fpb#3#ysfwjzjtfpse]}+{Q[tcvat_zlb_ybnsr_ybhz_fpb#4#ysfwjzjtfpse]}+{Q[tcvat_zlb_ybnsr_ybhz_fpb#5#ysfwjzjtfpse]}+{Q[tcvat_zlb_ybnsr_ybhz_fpb#6#ysfwjzjtfpse]}');
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084476;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084476,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_zzsybnsr_ybhz#23#ybxm',' ','增值税汇总一般企业税额计算总览表#23#一般项目','1','23','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_zzsybnsr_ybhz','ybxm',' ',' ','{Q[tcvat_zlb_zzsybnsr_ybhz#21#ybxm]}+{Q[tcvat_zlb_zzsybnsr_ybhz#22#ybxm]}');
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084477;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084477,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_zzsybnsr_ybhz#33#org',' ','增值税汇总一般企业税额计算总览表#33#组织','4','33','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_zzsybnsr_ybhz','org',' ',' ','{Q[tcvat_zlb_ybnsr_ybhz_fpb#2#org]}');
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084478;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084478,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_zzsybnsr_ybhz#32#org',' ','增值税汇总一般企业税额计算总览表#32#组织','4','32','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_zzsybnsr_ybhz','org',' ',' ','{Q[tcvat_zlb_ybnsr_ybhz_fpb#1#org]}');
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084479;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084479,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_zzsybnsr_ybhz#34#org',' ','增值税汇总一般企业税额计算总览表#34#组织','4','34','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_zzsybnsr_ybhz','org',' ',' ','{Q[tcvat_zlb_ybnsr_ybhz_fpb#3#org]}');
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084480;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084480,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_zzsybnsr_ybhz#35#org',' ','增值税汇总一般企业税额计算总览表#35#组织','4','35','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_zzsybnsr_ybhz','org',' ',' ','{Q[tcvat_zlb_ybnsr_ybhz_fpb#4#org]}');
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084481;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084481,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_zzsybnsr_ybhz#36#org',' ','增值税汇总一般企业税额计算总览表#36#组织','4','36','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_zzsybnsr_ybhz','org',' ',' ','{Q[tcvat_zlb_ybnsr_ybhz_fpb#5#org]}');
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084482;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084482,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_zzsybnsr_ybhz#37#org',' ','增值税汇总一般企业税额计算总览表#37#组织','4','37','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_zzsybnsr_ybhz','org',' ',' ','{Q[tcvat_zlb_ybnsr_ybhz_fpb#6#org]}');
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084483;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084483,{ts'2023-10-31  00:00:00'},'“一般项目列”的“实际减征抵减税额”是【{F[{Q[tcvat_zlb_zzsybnsr_ybhz#24#ybxm]}]}】，应小于等于“一般计税项目”和“简易计税项目”的税额合计数，即【{F[{Q[tcvat_zlb_zzsybnsr_ybhz#26#ybxm]} + {Q[tcvat_zlb_zzsybnsr_ybhz#27#ybxm]}]}】','《税额计算总览表》的一般项目实际减征抵减税额异常','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_zzsybnsr_ybhz#24#ybxm',' ','增值税汇总一般企业税额计算总览表#24#一般项目','2','24','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_zzsybnsr_ybhz','ybxm',' ',' ','{Q[tcvat_zlb_zzsybnsr_ybhz#24#ybxm]} <= {Q[tcvat_zlb_zzsybnsr_ybhz#26#ybxm]}+{Q[tcvat_zlb_zzsybnsr_ybhz#27#ybxm]}'); 
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084484;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084484,{ts'2023-10-31  00:00:00'},'“即征即退项目列”的“实际减征抵减税额”是【{F[{Q[tcvat_zlb_zzsybnsr_ybhz#24#jzjtxm]}]}】，应小于等于“一般计税项目”和“简易计税项目”的税额合计数，即【{F[{Q[tcvat_zlb_zzsybnsr_ybhz#26#jzjtxm]} + {Q[tcvat_zlb_zzsybnsr_ybhz#27#jzjtxm]}]}】','《税额计算总览表》的即征即退项目实际减征抵减税额异常','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_zzsybnsr_ybhz#24#jzjtxm',' ','增值税汇总一般企业税额计算总览表#24#即征即退项目','2','24','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_zzsybnsr_ybhz','jzjtxm',' ',' ','{Q[tcvat_zlb_zzsybnsr_ybhz#24#jzjtxm]}<={Q[tcvat_zlb_zzsybnsr_ybhz#26#jzjtxm]}+{Q[tcvat_zlb_zzsybnsr_ybhz#27#jzjtxm]}'); 
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084485;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084485,{ts'2023-10-31  00:00:00'},'税额分配总览表的各销售收入的合计数是【{F[{Q[tcvat_zlb_zzsybnsr_ybhz#5#ybxm]} +{Q[tcvat_zlb_zzsybnsr_ybhz#5#jzjtxm]}]}】，应等于税额计算总览表的“一般项目”和“即征即退项目”的销售额合计数，即【{F[{Q[tcvat_zlb_ybnsr_ybhz_fpb#7#xssr]} +{Q[tcvat_zlb_ybnsr_ybhz_fpb#7#jzjtxssr]} + {Q[tcvat_zlb_ybnsr_ybhz_fpb#7#ysfwxssr]} + {Q[tcvat_zlb_ybnsr_ybhz_fpb#7#ysfwjzjtxssr]}]}】,请修改税额分配表各组织的不同类型销售收入','《税额分配总览表》的各组织的不同类型销售收入异常','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_zzsybnsr_ybhz#5#ybxm',' ','增值税汇总一般企业税额计算总览表#5#一般项目','2','5','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_zzsybnsr_ybhz','ybxm',' ',' ','({Q[tcvat_zlb_zzsybnsr_ybhz#5#ybxm]} +{Q[tcvat_zlb_zzsybnsr_ybhz#5#jzjtxm]}) = {Q[tcvat_zlb_ybnsr_ybhz_fpb#7#xssr]} +{Q[tcvat_zlb_ybnsr_ybhz_fpb#7#jzjtxssr]} + {Q[tcvat_zlb_ybnsr_ybhz_fpb#7#ysfwxssr]} + {Q[tcvat_zlb_ybnsr_ybhz_fpb#7#ysfwjzjtxssr]}'); 
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084486;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084486,{ts'2023-10-31  00:00:00'},'税额分配总览表的各销售收入的合计数是【{F[{Q[tcvat_zlb_zzsybnsr_ybhz#5#ybxm]} +{Q[tcvat_zlb_zzsybnsr_ybhz#5#jzjtxm]}]}】，应等于税额计算总览表的“一般项目”和“即征即退项目”的销售额合计数，即【{F[{Q[tcvat_zlb_ybnsr_ybhz_fpb#7#xssr]} +{Q[tcvat_zlb_ybnsr_ybhz_fpb#7#jzjtxssr]} + {Q[tcvat_zlb_ybnsr_ybhz_fpb#7#ysfwxssr]} + {Q[tcvat_zlb_ybnsr_ybhz_fpb#7#ysfwjzjtxssr]}]}】,请修改税额分配表各组织的不同类型销售收入','《税额分配总览表》的各组织的不同类型销售收入异常','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_zzsybnsr_ybhz#5#jzjtxm',' ','增值税汇总一般企业税额计算总览表#5#即征即退项目','2','5','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_zzsybnsr_ybhz','jzjtxm',' ',' ','({Q[tcvat_zlb_zzsybnsr_ybhz#5#ybxm]} +{Q[tcvat_zlb_zzsybnsr_ybhz#5#jzjtxm]}) = {Q[tcvat_zlb_ybnsr_ybhz_fpb#7#xssr]} +{Q[tcvat_zlb_ybnsr_ybhz_fpb#7#jzjtxssr]} + {Q[tcvat_zlb_ybnsr_ybhz_fpb#7#ysfwxssr]} + {Q[tcvat_zlb_ybnsr_ybhz_fpb#7#ysfwjzjtxssr]}'); 
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084487;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084487,{ts'2023-10-31  00:00:00'},'不同类型的应补（退）税额的合计数是【{F[ {Q[tcvat_zlb_ybnsr_ybhz_bt#1#lwybtse]}+{Q[tcvat_zlb_ybnsr_ybhz_bt#1#jzjtybtse]}+{Q[tcvat_zlb_ybnsr_ybhz_bt#1#ysfwybtse]} +{Q[tcvat_zlb_ybnsr_ybhz_bt#1#ysfwjzjtybtse]}]}】，应等于“应补（退）税额”列“合计”行的金额，即【{F[{Q[tcvat_zlb_ybnsr_ybhz_bt#1#ybtsehj]}]}】','《税额分配总览表》的不同类型的应补退税额异常','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_ybnsr_ybhz_bt#1#ybtsehj',' ','增值税汇总一般企业税额分配总览表基本信息#1#应补(退)税额合计','2','1','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_ybnsr_ybhz_bt','ybtsehj',' ',' ','{Q[tcvat_zlb_ybnsr_ybhz_bt#1#ybtsehj]} = {Q[tcvat_zlb_ybnsr_ybhz_bt#1#lwybtse]}+{Q[tcvat_zlb_ybnsr_ybhz_bt#1#jzjtybtse]}+{Q[tcvat_zlb_ybnsr_ybhz_bt#1#ysfwybtse]} +{Q[tcvat_zlb_ybnsr_ybhz_bt#1#ysfwjzjtybtse]}'); 
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084488;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084488,{ts'2023-10-31  00:00:00'},'所有组织的“一般货物及劳务分配比例”的合计数是【{F[{Q[tcvat_zlb_ybnsr_ybhz_fpb#1#fpbl]}+{Q[tcvat_zlb_ybnsr_ybhz_fpb#2#fpbl]}+{Q[tcvat_zlb_ybnsr_ybhz_fpb#3#fpbl]}+{Q[tcvat_zlb_ybnsr_ybhz_fpb#4#fpbl]}+{Q[tcvat_zlb_ybnsr_ybhz_fpb#5#fpbl]}+{Q[tcvat_zlb_ybnsr_ybhz_fpb#6#fpbl]} ]}】，应等于1','《税额分配总览表》的“一般货物及劳务分配比例”异常','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_ybnsr_ybhz_fpb#7#fpbl',' ','增值税汇总一般企业分配表#7#一般货物及劳务分配比例','2','7','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_ybnsr_ybhz_fpb','fpbl',' ',' ','{Q[tcvat_zlb_ybnsr_ybhz_fpb#1#fpbl]}+{Q[tcvat_zlb_ybnsr_ybhz_fpb#2#fpbl]}+{Q[tcvat_zlb_ybnsr_ybhz_fpb#3#fpbl]}+{Q[tcvat_zlb_ybnsr_ybhz_fpb#4#fpbl]}+{Q[tcvat_zlb_ybnsr_ybhz_fpb#5#fpbl]}+{Q[tcvat_zlb_ybnsr_ybhz_fpb#6#fpbl]} = 1'); 
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084489;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084489,{ts'2023-10-31  00:00:00'},'所有组织的“一般货物及劳务即征即退分配比例”的合计数是【{F[{Q[tcvat_zlb_ybnsr_ybhz_fpb#1#jzjtfpbl]}+{Q[tcvat_zlb_ybnsr_ybhz_fpb#2#jzjtfpbl]}+{Q[tcvat_zlb_ybnsr_ybhz_fpb#3#jzjtfpbl]}+{Q[tcvat_zlb_ybnsr_ybhz_fpb#4#jzjtfpbl]}+{Q[tcvat_zlb_ybnsr_ybhz_fpb#5#jzjtfpbl]}+{Q[tcvat_zlb_ybnsr_ybhz_fpb#6#jzjtfpbl]}]}】，应等于1','《税额分配总览表》的“一般货物及劳务即征即退分配比例”异常','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_ybnsr_ybhz_fpb#7#jzjtfpbl',' ','增值税汇总一般企业分配表#7#一般货物及劳务即征即退分配比例','2','7','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_ybnsr_ybhz_fpb','jzjtfpbl',' ',' ','{Q[tcvat_zlb_ybnsr_ybhz_fpb#1#jzjtfpbl]}+{Q[tcvat_zlb_ybnsr_ybhz_fpb#2#jzjtfpbl]}+{Q[tcvat_zlb_ybnsr_ybhz_fpb#3#jzjtfpbl]}+{Q[tcvat_zlb_ybnsr_ybhz_fpb#4#jzjtfpbl]}+{Q[tcvat_zlb_ybnsr_ybhz_fpb#5#jzjtfpbl]}+{Q[tcvat_zlb_ybnsr_ybhz_fpb#6#jzjtfpbl]} = 1'); 
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084490;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084490,{ts'2023-10-31  00:00:00'},'所有组织的“应税服务分配比例”的合计数是【{F[{Q[tcvat_zlb_ybnsr_ybhz_fpb#1#ysfwfpbl]}+{Q[tcvat_zlb_ybnsr_ybhz_fpb#2#ysfwfpbl]}+{Q[tcvat_zlb_ybnsr_ybhz_fpb#3#ysfwfpbl]}+{Q[tcvat_zlb_ybnsr_ybhz_fpb#4#ysfwfpbl]}+{Q[tcvat_zlb_ybnsr_ybhz_fpb#5#ysfwfpbl]}+{Q[tcvat_zlb_ybnsr_ybhz_fpb#6#ysfwfpbl]}]}】，应等于1','《税额分配总览表》的“应税服务分配比例”异常','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_ybnsr_ybhz_fpb#7#ysfwfpbl',' ','增值税汇总一般企业分配表#7#应税服务分配比例','2','7','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_ybnsr_ybhz_fpb','ysfwfpbl',' ',' ','{Q[tcvat_zlb_ybnsr_ybhz_fpb#1#ysfwfpbl]}+{Q[tcvat_zlb_ybnsr_ybhz_fpb#2#ysfwfpbl]}+{Q[tcvat_zlb_ybnsr_ybhz_fpb#3#ysfwfpbl]}+{Q[tcvat_zlb_ybnsr_ybhz_fpb#4#ysfwfpbl]}+{Q[tcvat_zlb_ybnsr_ybhz_fpb#5#ysfwfpbl]}+{Q[tcvat_zlb_ybnsr_ybhz_fpb#6#ysfwfpbl]} = 1'); 
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084491;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084491,{ts'2023-10-31  00:00:00'},'所有组织的“应税服务即征即退分配比例”的合计数是【{F[{Q[tcvat_zlb_ybnsr_ybhz_fpb#1#ysfwjzjtfpbl]}+{Q[tcvat_zlb_ybnsr_ybhz_fpb#2#ysfwjzjtfpbl]}+{Q[tcvat_zlb_ybnsr_ybhz_fpb#3#ysfwjzjtfpbl]}+{Q[tcvat_zlb_ybnsr_ybhz_fpb#4#ysfwjzjtfpbl]}+{Q[tcvat_zlb_ybnsr_ybhz_fpb#5#ysfwjzjtfpbl]}+{Q[tcvat_zlb_ybnsr_ybhz_fpb#6#ysfwjzjtfpbl]}]}】，应等于1','《税额分配总览表》的“应税服务即征即退分配比例”异常','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_ybnsr_ybhz_fpb#7#ysfwjzjtfpbl',' ','增值税汇总一般企业分配表#7#应税服务即征即退分配比例','2','7','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_ybnsr_ybhz_fpb','ysfwjzjtfpbl',' ',' ','{Q[tcvat_zlb_ybnsr_ybhz_fpb#1#ysfwjzjtfpbl]}+{Q[tcvat_zlb_ybnsr_ybhz_fpb#2#ysfwjzjtfpbl]}+{Q[tcvat_zlb_ybnsr_ybhz_fpb#3#ysfwjzjtfpbl]}+{Q[tcvat_zlb_ybnsr_ybhz_fpb#4#ysfwjzjtfpbl]}+{Q[tcvat_zlb_ybnsr_ybhz_fpb#5#ysfwjzjtfpbl]}+{Q[tcvat_zlb_ybnsr_ybhz_fpb#6#ysfwjzjtfpbl]} = 1'); 
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084492;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084492,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_ybnsr_ybhz_fpb#1#org','[{"val":"bastax_taxorg","text":"{org.number}|{taxpayer}"}]','增值税汇总一般企业分配表#1#组织','3','1','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_ybnsr_ybhz_fpb','org','5',' ',' '); 
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084493;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084493,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_ybnsr_ybhz_fpb#2#org','[{"val":"bastax_taxorg","text":"{org.number}|{taxpayer}"}]','增值税汇总一般企业分配表#2#组织','3','2','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_ybnsr_ybhz_fpb','org','5',' ',' '); 
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084494;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084494,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_ybnsr_ybhz_fpb#3#org','[{"val":"bastax_taxorg","text":"{org.number}|{taxpayer}"}]','增值税汇总一般企业分配表#3#组织','3','3','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_ybnsr_ybhz_fpb','org','5',' ',' '); 
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084495;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084495,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_ybnsr_ybhz_fpb#4#org','[{"val":"bastax_taxorg","text":"{org.number}|{taxpayer}"}]','增值税汇总一般企业分配表#4#组织','3','4','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_ybnsr_ybhz_fpb','org','5',' ',' '); 
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084496;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084496,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_ybnsr_ybhz_fpb#5#org','[{"val":"bastax_taxorg","text":"{org.number}|{taxpayer}"}]','增值税汇总一般企业分配表#5#组织','3','5','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_ybnsr_ybhz_fpb','org','5',' ',' '); 
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084497;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084497,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_ybnsr_ybhz_fpb#6#org','[{"val":"bastax_taxorg","text":"{org.number}|{taxpayer}"}]','增值税汇总一般企业分配表#6#组织','3','6','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_ybnsr_ybhz_fpb','org','5',' ',' '); 
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084498;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084498,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_zzsybnsr_ybhz#32#org','[{"val":"bastax_taxorg","text":"{org.number}|{taxpayer}"}]','增值税汇总一般企业税额计算总览表#32#组织','3','32','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_zzsybnsr_ybhz','org','5',' ',' '); 
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084499;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084499,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_zzsybnsr_ybhz#33#org','[{"val":"bastax_taxorg","text":"{org.number}|{taxpayer}"}]','增值税汇总一般企业税额计算总览表#33#组织','3','33','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_zzsybnsr_ybhz','org','5',' ',' '); 
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084500;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084500,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_zzsybnsr_ybhz#34#org','[{"val":"bastax_taxorg","text":"{org.number}|{taxpayer}"}]','增值税汇总一般企业税额计算总览表#34#组织','3','34','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_zzsybnsr_ybhz','org','5',' ',' '); 
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084501;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084501,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_zzsybnsr_ybhz#35#org','[{"val":"bastax_taxorg","text":"{org.number}|{taxpayer}"}]','增值税汇总一般企业税额计算总览表#35#组织','3','35','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_zzsybnsr_ybhz','org','5',' ',' '); 
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084502;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084502,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_zzsybnsr_ybhz#36#org','[{"val":"bastax_taxorg","text":"{org.number}|{taxpayer}"}]','增值税汇总一般企业税额计算总览表#36#组织','3','36','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_zzsybnsr_ybhz','org','5',' ',' '); 
DELETE FROM t_tctb_formula WHERE FID = 1808078374355084503;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808078374355084503,{ts'2023-10-31  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_zzsybnsr_ybhz#37#org','[{"val":"bastax_taxorg","text":"{org.number}|{taxpayer}"}]','增值税汇总一般企业税额计算总览表#37#组织','3','37','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_zzsybnsr_ybhz','org','5',' ',' '); 
DELETE FROM t_tctb_formula WHERE FID = 1808731930074991616;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808731930074991616,{ts'2023-11-01  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_02','tcvat_zlb_ybnsr#35#ybxm',' ','增值税一般纳税人总览表#35#一般项目','1','35','1808077452505784320','draft_zzsybnsr','tcvat_zlb_ybnsr','ybxm',' ',' ','if({C[#cswhjssenable]} = 1, min({Q[tcvat_zlb_ybnsr#34#ybxm]}+{Q[tcvat_zlb_ybnsr#34#jzjtxm]}+{S[select sum(t1.fqmye) from t_tcvat_ybnsr_jsxm t1 left join t_tctb_declare_main t2 on t1.fsbbid = CONCAT(t2.fid , '''') where t2.forgid=''#orgid'' and t2.fskssqq=to_date(''#prestartDate'') and t2.fskssqz=to_date(''#preendDate'') and t2.fnsrtype=''zzsybnsr'' and t1.fswsxdm in (789806480298652672,789806480307039232,789806484249687040,789806484258073600,789806484266464256,789806484274850816) and t1.fewblxh != ''1'']}+{S[select sum(fcurrentamount) from t_tcvat_taxreduce_summary where forgid=''#orgid'' and ftaxperiod in (''#startPeriod'',''#middlePeriod'',''#endPeriod'') and fdeadline=''#deadline'' and ftaxreductionid in (789806480298652672,789806480307039232,789806484249687040,789806484258073600,789806484266464256,789806484274850816)]},{Q[tcvat_zlb_ybnsr#28#ybxm]}+{Q[tcvat_zlb_ybnsr#28#jzjtxm]}),0)'); 
DELETE FROM t_tctb_formula WHERE FID = 1808806235450297344;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808806235450297344,{ts'2023-11-01  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_02','tcvat_zlb_ybnsr#37#ybxm',' ','增值税一般纳税人总览表#37#一般项目','1','37','1808077452505784320','draft_zzsybnsr','tcvat_zlb_ybnsr','ybxm',' ',' ','if({Q[tcvat_zlb_ybnsr#35#ybxm]}+{Q[tcvat_zlb_ybnsr#36#ybxm]}>=0 && {Q[tcvat_zlb_ybnsr#59#ybxm]}+{Q[tcvat_zlb_ybnsr#60#ybxm]}>=0,min({Q[tcvat_zlb_ybnsr#35#ybxm]}+{Q[tcvat_zlb_ybnsr#36#ybxm]},{Q[tcvat_zlb_ybnsr#59#ybxm]}+{Q[tcvat_zlb_ybnsr#60#ybxm]}),0)'); 
DELETE FROM t_tctb_formula WHERE FID = 1808809930724271104;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808809930724271104,{ts'2023-11-01  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_02','tcvat_zlb_ybnsr#38#ybxm',' ','增值税一般纳税人总览表#38#一般项目','1','38','1808077452505784320','draft_zzsybnsr','tcvat_zlb_ybnsr','ybxm',' ',' ','if({C[#cswhjssenable]} = 1,{P[CSWHJSS]},0)'); 
DELETE FROM t_tctb_formula WHERE FID = 1808810740560612352;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808810740560612352,{ts'2023-11-01  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_02','tcvat_zlb_ybnsr#39#ybxm',' ','增值税一般纳税人总览表#39#一般项目','1','39','1808077452505784320','draft_zzsybnsr','tcvat_zlb_ybnsr','ybxm',' ',' ','({Q[tcvat_zlb_ybnsr#35#ybxm]}+{Q[tcvat_zlb_ybnsr#36#ybxm]}-{Q[tcvat_zlb_ybnsr#37#ybxm]})*{Q[tcvat_zlb_ybnsr#38#ybxm]}'); 
DELETE FROM t_tctb_formula WHERE FID = 1808811299308889088;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808811299308889088,{ts'2023-11-01  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_02','tcvat_zlb_ybnsr#42#ybxm',' ','增值税一般纳税人总览表#42#一般项目','1','42','1808077452505784320','draft_zzsybnsr','tcvat_zlb_ybnsr','ybxm',' ',' ','{Q[tcvat_zlb_ybnsr#39#ybxm]}-{Q[tcvat_zlb_ybnsr#40#ybxm]}-{Q[tcvat_zlb_ybnsr#41#ybxm]}'); 
DELETE FROM t_tctb_formula WHERE FID = 1808812474754196480;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808812474754196480,{ts'2023-11-01  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_02','tcvat_zlb_ybnsr#43#ybxm',' ','增值税一般纳税人总览表#43#一般项目','1','43','1808077452505784320','draft_zzsybnsr','tcvat_zlb_ybnsr','ybxm',' ',' ','if({C[#jyffjenable]} = 1,{Q[tcvat_zlb_ybnsr#35#ybxm]},0)'); 
DELETE FROM t_tctb_formula WHERE FID = 1808815009405658112;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808815009405658112,{ts'2023-11-01  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_02','tcvat_zlb_ybnsr#44#ybxm',' ','增值税一般纳税人总览表#44#一般项目','1','44','1808077452505784320','draft_zzsybnsr','tcvat_zlb_ybnsr','ybxm',' ',' ','{Q[tcvat_zlb_ybnsr#36#ybxm]}'); 
DELETE FROM t_tctb_formula WHERE FID = 1808815215656363008;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808815215656363008,{ts'2023-11-01  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_02','tcvat_zlb_ybnsr#45#ybxm',' ','增值税一般纳税人总览表#45#一般项目','1','45','1808077452505784320','draft_zzsybnsr','tcvat_zlb_ybnsr','ybxm',' ',' ','{Q[tcvat_zlb_ybnsr#37#ybxm]}'); 
DELETE FROM t_tctb_formula WHERE FID = 1808815465486011392;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808815465486011392,{ts'2023-11-01  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_02','tcvat_zlb_ybnsr#46#ybxm',' ','增值税一般纳税人总览表#46#一般项目','1','46','1808077452505784320','draft_zzsybnsr','tcvat_zlb_ybnsr','ybxm',' ',' ','if({C[#jyffjenable]} = 1,{P[JYFFJ]},0)'); 
DELETE FROM t_tctb_formula WHERE FID = 1808815972317193216;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808815972317193216,{ts'2023-11-01  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_02','tcvat_zlb_ybnsr#47#ybxm',' ','增值税一般纳税人总览表#47#一般项目','1','47','1808077452505784320','draft_zzsybnsr','tcvat_zlb_ybnsr','ybxm',' ',' ','({Q[tcvat_zlb_ybnsr#43#ybxm]}+{Q[tcvat_zlb_ybnsr#44#ybxm]}-{Q[tcvat_zlb_ybnsr#45#ybxm]})*{Q[tcvat_zlb_ybnsr#46#ybxm]}'); 
DELETE FROM t_tctb_formula WHERE FID = 1808816426577093632;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808816426577093632,{ts'2023-11-01  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_02','tcvat_zlb_ybnsr#50#ybxm',' ','增值税一般纳税人总览表#50#一般项目','1','50','1808077452505784320','draft_zzsybnsr','tcvat_zlb_ybnsr','ybxm',' ',' ','{Q[tcvat_zlb_ybnsr#47#ybxm]}-{Q[tcvat_zlb_ybnsr#48#ybxm]}-{Q[tcvat_zlb_ybnsr#49#ybxm]}'); 
DELETE FROM t_tctb_formula WHERE FID = 1808817030238227456;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808817030238227456,{ts'2023-11-01  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_02','tcvat_zlb_ybnsr#51#ybxm',' ','增值税一般纳税人总览表#51#一般项目','1','51','1808077452505784320','draft_zzsybnsr','tcvat_zlb_ybnsr','ybxm',' ',' ','if({C[#dfjyffjenable]} = 1,{Q[tcvat_zlb_ybnsr#35#ybxm]},0)'); 
DELETE FROM t_tctb_formula WHERE FID = 1808817335977698304;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808817335977698304,{ts'2023-11-01  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_02','tcvat_zlb_ybnsr#52#ybxm',' ','增值税一般纳税人总览表#52#一般项目','1','52','1808077452505784320','draft_zzsybnsr','tcvat_zlb_ybnsr','ybxm',' ',' ','{Q[tcvat_zlb_ybnsr#36#ybxm]}'); 
DELETE FROM t_tctb_formula WHERE FID = 1808817552923878400;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808817552923878400,{ts'2023-11-01  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_02','tcvat_zlb_ybnsr#53#ybxm',' ','增值税一般纳税人总览表#53#一般项目','1','53','1808077452505784320','draft_zzsybnsr','tcvat_zlb_ybnsr','ybxm',' ',' ','{Q[tcvat_zlb_ybnsr#37#ybxm]}'); 
DELETE FROM t_tctb_formula WHERE FID = 1808817737632637952;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808817737632637952,{ts'2023-11-01  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_02','tcvat_zlb_ybnsr#54#ybxm',' ','增值税一般纳税人总览表#54#一般项目','1','54','1808077452505784320','draft_zzsybnsr','tcvat_zlb_ybnsr','ybxm',' ',' ','if({C[#dfjyffjenable]} = 1,{P[DFJYFJ]},0)'); 
DELETE FROM t_tctb_formula WHERE FID = 1808818027081681920;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808818027081681920,{ts'2023-11-01  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_02','tcvat_zlb_ybnsr#55#ybxm',' ','增值税一般纳税人总览表#55#一般项目','1','55','1808077452505784320','draft_zzsybnsr','tcvat_zlb_ybnsr','ybxm',' ',' ','({Q[tcvat_zlb_ybnsr#51#ybxm]}+{Q[tcvat_zlb_ybnsr#52#ybxm]}-{Q[tcvat_zlb_ybnsr#53#ybxm]})*{Q[tcvat_zlb_ybnsr#54#ybxm]}'); 
DELETE FROM t_tctb_formula WHERE FID = 1808818502497526784;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808818502497526784,{ts'2023-11-01  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_02','tcvat_zlb_ybnsr#58#ybxm',' ','增值税一般纳税人总览表#58#一般项目','1','58','1808077452505784320','draft_zzsybnsr','tcvat_zlb_ybnsr','ybxm',' ',' ','{Q[tcvat_zlb_ybnsr#55#ybxm]}-{Q[tcvat_zlb_ybnsr#56#ybxm]}-{Q[tcvat_zlb_ybnsr#57#ybxm]}'); 
DELETE FROM t_tctb_formula WHERE FID = 1808821928916864000;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808821928916864000,{ts'2023-11-01  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_02','tcvat_zlb_ybnsr#59#ybxm',' ','增值税一般纳税人总览表#59#一般项目','1','59','1808077452505784320','draft_zzsybnsr','tcvat_zlb_ybnsr','ybxm',' ',' ','{S[select sum(faccountingamount) from t_tcvat_roll_out_summary where frollouttype=''11'' and forgid =#orgid and ftaxperiod in (''#startPeriod'',''#middlePeriod'',''#endPeriod'') and fdeadline=''#deadline'']}'); 
DELETE FROM t_tctb_formula WHERE FID = 1808822199357197312;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808822199357197312,{ts'2023-11-01  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_02','tcvat_zlb_ybnsr#60#ybxm',' ','增值税一般纳税人总览表#60#一般项目','1','60','1808077452505784320','draft_zzsybnsr','tcvat_zlb_ybnsr','ybxm',' ',' ','{S[select fsqjckyykcdldtse from t_tcvat_sb_fjsf_jz where fsbbid =''#predeclaresbbid'' and fewblxh =''1'']}'); 
DELETE FROM t_tctb_formula WHERE FID = 1808822332048073728;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808822332048073728,{ts'2023-11-01  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_02','tcvat_zlb_ybnsr#61#ybxm',' ','增值税一般纳税人总览表#61#一般项目','1','61','1808077452505784320','draft_zzsybnsr','tcvat_zlb_ybnsr','ybxm',' ',' ','{Q[tcvat_zlb_ybnsr#59#ybxm]} + {Q[tcvat_zlb_ybnsr#60#ybxm]}-{Q[tcvat_zlb_ybnsr#37#ybxm]}'); 
DELETE FROM t_tctb_formula WHERE FID = 1809376443982128128;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1809376443982128128,{ts'2023-11-02  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_zzsybnsr_ybhz#40#ybxm',' ','增值税汇总一般企业税额计算总览表#40#一般项目','1','40','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_zzsybnsr_ybhz','ybxm',' ',' ','if({Q[tcvat_zlb_zzsybnsr_ybhz#38#ybxm]}+{Q[tcvat_zlb_zzsybnsr_ybhz#39#ybxm]}>=0 && {Q[tcvat_zlb_zzsybnsr_ybhz#62#ybxm]}+{Q[tcvat_zlb_zzsybnsr_ybhz#63#ybxm]}>=0,min({Q[tcvat_zlb_zzsybnsr_ybhz#38#ybxm]}+{Q[tcvat_zlb_zzsybnsr_ybhz#39#ybxm]},{Q[tcvat_zlb_zzsybnsr_ybhz#62#ybxm]}+{Q[tcvat_zlb_zzsybnsr_ybhz#63#ybxm]}),0)'); 
DELETE FROM t_tctb_formula WHERE FID = 1809376778284934144;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1809376778284934144,{ts'2023-11-02  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_zzsybnsr_ybhz#41#ybxm',' ','增值税汇总一般企业税额计算总览表#41#一般项目','1','41','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_zzsybnsr_ybhz','ybxm',' ',' ','if({C[#cswhjssenable]} = 1,{P[CSWHJSS]},0)'); 
DELETE FROM t_tctb_formula WHERE FID = 1809377722171108352;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1809377722171108352,{ts'2023-11-02  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_zzsybnsr_ybhz#42#ybxm',' ','增值税汇总一般企业税额计算总览表#42#一般项目','1','42','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_zzsybnsr_ybhz','ybxm',' ',' ','({Q[tcvat_zlb_zzsybnsr_ybhz#38#ybxm]}+{Q[tcvat_zlb_zzsybnsr_ybhz#39#ybxm]}-{Q[tcvat_zlb_zzsybnsr_ybhz#40#ybxm]})*{Q[tcvat_zlb_zzsybnsr_ybhz#41#ybxm]}'); 
DELETE FROM t_tctb_formula WHERE FID = 1809378482145436672;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1809378482145436672,{ts'2023-11-02  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_zzsybnsr_ybhz#45#ybxm',' ','增值税汇总一般企业税额计算总览表#45#一般项目','1','45','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_zzsybnsr_ybhz','ybxm',' ',' ','{Q[tcvat_zlb_zzsybnsr_ybhz#42#ybxm]}-{Q[tcvat_zlb_zzsybnsr_ybhz#43#ybxm]}-{Q[tcvat_zlb_zzsybnsr_ybhz#44#ybxm]}'); 
DELETE FROM t_tctb_formula WHERE FID = 1809379055045422080;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1809379055045422080,{ts'2023-11-02  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_zzsybnsr_ybhz#46#ybxm',' ','增值税汇总一般企业税额计算总览表#46#一般项目','1','46','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_zzsybnsr_ybhz','ybxm',' ',' ','if({C[#jyffjenable]} = 1,{Q[tcvat_zlb_zzsybnsr_ybhz#38#ybxm]},0)'); 
DELETE FROM t_tctb_formula WHERE FID = 1809379593275288576;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1809379593275288576,{ts'2023-11-02  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_zzsybnsr_ybhz#47#ybxm',' ','增值税汇总一般企业税额计算总览表#47#一般项目','1','47','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_zzsybnsr_ybhz','ybxm',' ',' ','{Q[tcvat_zlb_zzsybnsr_ybhz#39#ybxm]}'); 
DELETE FROM t_tctb_formula WHERE FID = 1809379730445804544;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1809379730445804544,{ts'2023-11-02  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_zzsybnsr_ybhz#48#ybxm',' ','增值税汇总一般企业税额计算总览表#48#一般项目','1','48','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_zzsybnsr_ybhz','ybxm',' ',' ','{Q[tcvat_zlb_zzsybnsr_ybhz#40#ybxm]}'); 
DELETE FROM t_tctb_formula WHERE FID = 1809379992354925568;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1809379992354925568,{ts'2023-11-02  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_zzsybnsr_ybhz#49#ybxm',' ','增值税汇总一般企业税额计算总览表#49#一般项目','1','49','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_zzsybnsr_ybhz','ybxm',' ',' ','if({C[#jyffjenable]} = 1,{P[JYFFJ]},0)'); 
DELETE FROM t_tctb_formula WHERE FID = 1809380469842881536;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1809380469842881536,{ts'2023-11-02  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_zzsybnsr_ybhz#50#ybxm',' ','增值税汇总一般企业税额计算总览表#50#一般项目','1','50','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_zzsybnsr_ybhz','ybxm',' ',' ','({Q[tcvat_zlb_zzsybnsr_ybhz#46#ybxm]}+{Q[tcvat_zlb_zzsybnsr_ybhz#47#ybxm]}-{Q[tcvat_zlb_zzsybnsr_ybhz#48#ybxm]})*{Q[tcvat_zlb_zzsybnsr_ybhz#49#ybxm]}'); 
DELETE FROM t_tctb_formula WHERE FID = 1809380820201481216;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1809380820201481216,{ts'2023-11-02  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_zzsybnsr_ybhz#53#ybxm',' ','增值税汇总一般企业税额计算总览表#53#一般项目','1','53','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_zzsybnsr_ybhz','ybxm',' ',' ','{Q[tcvat_zlb_zzsybnsr_ybhz#50#ybxm]}-{Q[tcvat_zlb_zzsybnsr_ybhz#51#ybxm]}-{Q[tcvat_zlb_zzsybnsr_ybhz#52#ybxm]}'); 
DELETE FROM t_tctb_formula WHERE FID = 1809381334758695936;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1809381334758695936,{ts'2023-11-02  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_zzsybnsr_ybhz#54#ybxm',' ','增值税汇总一般企业税额计算总览表#54#一般项目','1','54','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_zzsybnsr_ybhz','ybxm',' ',' ','if({C[#dfjyffjenable]} = 1,{Q[tcvat_zlb_zzsybnsr_ybhz#38#ybxm]},0)'); 
DELETE FROM t_tctb_formula WHERE FID = 1809381571158060032;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1809381571158060032,{ts'2023-11-02  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_zzsybnsr_ybhz#55#ybxm',' ','增值税汇总一般企业税额计算总览表#55#一般项目','1','55','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_zzsybnsr_ybhz','ybxm',' ',' ','{Q[tcvat_zlb_zzsybnsr_ybhz#39#ybxm]}'); 
DELETE FROM t_tctb_formula WHERE FID = 1809381683741568000;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1809381683741568000,{ts'2023-11-02  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_zzsybnsr_ybhz#56#ybxm',' ','增值税汇总一般企业税额计算总览表#56#一般项目','1','56','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_zzsybnsr_ybhz','ybxm',' ',' ','{Q[tcvat_zlb_zzsybnsr_ybhz#40#ybxm]}'); 
DELETE FROM t_tctb_formula WHERE FID = 1809381808866044928;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1809381808866044928,{ts'2023-11-02  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_zzsybnsr_ybhz#57#ybxm',' ','增值税汇总一般企业税额计算总览表#57#一般项目','1','57','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_zzsybnsr_ybhz','ybxm',' ',' ','if({C[#dfjyffjenable]} = 1,{P[DFJYFJ]},0)'); 
DELETE FROM t_tctb_formula WHERE FID = 1809382197283759104;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1809382197283759104,{ts'2023-11-02  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_zzsybnsr_ybhz#58#ybxm',' ','增值税汇总一般企业税额计算总览表#58#一般项目','1','58','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_zzsybnsr_ybhz','ybxm',' ',' ','({Q[tcvat_zlb_zzsybnsr_ybhz#54#ybxm]}+{Q[tcvat_zlb_zzsybnsr_ybhz#55#ybxm]}-{Q[tcvat_zlb_zzsybnsr_ybhz#56#ybxm]})*{Q[tcvat_zlb_zzsybnsr_ybhz#57#ybxm]}'); 
DELETE FROM t_tctb_formula WHERE FID = 1809382438707897344;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1809382438707897344,{ts'2023-11-02  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_zzsybnsr_ybhz#61#ybxm',' ','增值税汇总一般企业税额计算总览表#61#一般项目','1','61','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_zzsybnsr_ybhz','ybxm',' ',' ','{Q[tcvat_zlb_zzsybnsr_ybhz#58#ybxm]}-{Q[tcvat_zlb_zzsybnsr_ybhz#59#ybxm]}-{Q[tcvat_zlb_zzsybnsr_ybhz#60#ybxm]}'); 
DELETE FROM t_tctb_formula WHERE FID = 1809374033087802368;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1809374033087802368,{ts'2023-11-02  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_zzsybnsr_ybhz#38#ybxm',' ','增值税汇总一般企业税额计算总览表#38#一般项目','1','38','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_zzsybnsr_ybhz','ybxm',' ',' ','if({C[#cswhjssenable]} = 1, min({Q[tcvat_zlb_zzsybnsr_ybhz#31#ybxm]}+{Q[tcvat_zlb_zzsybnsr_ybhz#31#jzjtxm]}+{S[select sum(t1.fqmye) from t_tcvat_ybnsr_jsxm t1 left join t_tctb_declare_main t2 on t1.fsbbid = CONCAT(t2.fid , '''') where t2.forgid=''#orgid'' and t2.fskssqq=to_date(''#prestartDate'') and t2.fskssqz=to_date(''#preendDate'') and t2.fnsrtype=''#taxpayertype'' and t1.fswsxdm in (789806480298652672,789806480307039232,789806484249687040,789806484258073600,789806484266464256,789806484274850816) and t1.fewblxh != ''1'']}+{S[select sum(fcurrentamount) from t_tcvat_hz_taxreduce_sum where forgid=''#orgid'' and fstartdate=to_date(''#startDate'') AND fenddate=to_date(''#endDate'') and ftaxpayertype=''#taxpayertype'' and ftaxreductionid in (789806480298652672,789806480307039232,789806484249687040,789806484258073600,789806484266464256,789806484274850816)]},{Q[tcvat_zlb_zzsybnsr_ybhz#28#ybxm]}+{Q[tcvat_zlb_zzsybnsr_ybhz#28#jzjtxm]}),0)'); 
DELETE FROM t_tctb_formula WHERE FID = 1809390359005080576;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1809390359005080576,{ts'2023-11-02  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_zzsybnsr_ybhz#62#ybxm',' ','增值税汇总一般企业税额计算总览表#62#一般项目','1','62','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_zzsybnsr_ybhz','ybxm',' ',' ','{S[select sum(faccountingamount) from t_tcvat_hz_roll_out_sum where frollouttype=''11'' and forgid=''#orgid'' and fstartdate=to_date(''#startDate'') AND fenddate=to_date(''#endDate'') and ftaxpayertype=''#taxpayertype'']}'); 
DELETE FROM t_tctb_formula WHERE FID = 1809390827794050048;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1809390827794050048,{ts'2023-11-02  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_zzsybnsr_ybhz#63#ybxm',' ','增值税汇总一般企业税额计算总览表#63#一般项目','1','63','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_zzsybnsr_ybhz','ybxm',' ',' ','{S[select fsqjckyykcdldtse from t_tcvat_sb_fjsf_jz where fsbbid =''#predeclaresbbid'' and fewblxh =''1'']}'); 
DELETE FROM t_tctb_formula WHERE FID = 1809391458541874176;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1809391458541874176,{ts'2023-11-02  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_zzsybnsr_ybhz#64#ybxm',' ','增值税汇总一般企业税额计算总览表#64#一般项目','1','64','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_zzsybnsr_ybhz','ybxm',' ',' ','{Q[tcvat_zlb_zzsybnsr_ybhz#62#ybxm]}+{Q[tcvat_zlb_zzsybnsr_ybhz#63#ybxm]}-{Q[tcvat_zlb_zzsybnsr_ybhz#40#ybxm]}'); 
DELETE FROM t_tctb_formula WHERE FID = 1812423267986967552;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1812423267986967552,{ts'2023-11-06  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_02','tcvat_zlb_ybnsr#11#ybxm',' ','增值税一般纳税人总览表#11#一般项目','1','11','1808077452505784320','draft_zzsybnsr','tcvat_zlb_ybnsr','ybxm',' ',' ','{C[#mdtYtse]}'); 
DELETE FROM t_tctb_formula WHERE FID = 1812423384982883328;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1812423384982883328,{ts'2023-11-06  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_02','tcvat_zlb_ybnsr#36#ybxm',' ','增值税一般纳税人总览表#36#一般项目','1','36','1808077452505784320','draft_zzsybnsr','tcvat_zlb_ybnsr','ybxm',' ',' ','{C[#mdYtse]}'); 
DELETE FROM t_tctb_formula WHERE FID = 1812423936047320064;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1812423936047320064,{ts'2023-11-06  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_zzsybnsr_ybhz#39#ybxm',' ','增值税汇总一般企业税额计算总览表#39#一般项目','1','39','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_zzsybnsr_ybhz','ybxm',' ',' ','{C[#mdYtse]}'); 
DELETE FROM t_tctb_formula WHERE FID = 1812424028103670784;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1812424028103670784,{ts'2023-11-06  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_02','tcvat_zlb_zzsybnsr_ybhz#11#ybxm',' ','增值税汇总一般企业税额计算总览表#11#一般项目','1','11','1808078373642051584','draft_zzsybnsr_ybhz','tcvat_zlb_zzsybnsr_ybhz','ybxm',' ',' ','{C[#mdtYtse]}'); 
DELETE FROM t_tctb_formula WHERE FID = 1808077454846207006;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1808077454846207006,{ts'2023-11-09  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_02','tcvat_zlb_ybnsr#7#ybxm',' ','增值税一般纳税人总览表#7#一般项目','1','7','1808077452505784320','draft_zzsybnsr','tcvat_zlb_ybnsr','ybxm',' ',' ','if({C[#diff]}=0 || ({C[#diff]}=1 && {C[#cekcdgBqfseHj]}=0 && {C[#sqsbbFb3Qmye]}=0),{S[select sum(a.ftotaltaxamount) from t_tcvat_income_summary a inner join t_tpo_taxitemrateentry b on a.fbusinesstypeid=b.fentryid where a.forgid=''#orgid'' and a.ftaxperiod in (''#sPeriod'',''#mPeriod'',''#ePeriod'') and a.fjzjt=''0'' and a.ftaxrate in (''6%'',''9%'',''10%'',''11%'',''13%'',''16%'',''17%'') and (b.flongnumber like ''3%'' or b.flongnumber like ''4%'' or b.flongnumber like ''5%'')]},({S[select sum(a.fpricetaxamount) from t_tcvat_income_summary a left join t_tpo_taxitemrateentry b on a.fbusinesstypeid=b.fentryid where a.forgid=''#orgid'' and a.ftaxperiod in (''#sPeriod'',''#mPeriod'',''#ePeriod'') and a.fjzjt=''0'' and a.ftaxrate=''13%'' and (b.flongnumber like ''3%'' or b.flongnumber like ''4%'' or b.flongnumber like ''5%'')]}-min({S[select sum(a.fpricetaxamount) from t_tcvat_income_summary a left join t_tpo_taxitemrateentry b on a.fbusinesstypeid=b.fentryid where a.forgid=''#orgid'' and a.ftaxperiod in (''#sPeriod'',''#mPeriod'',''#ePeriod'') and a.fjzjt=''0'' and a.ftaxrate=''13%'' and (b.flongnumber like ''3%'' or b.flongnumber like ''4%'' or b.flongnumber like ''5%'')]},{S[select sum(fcurrentamount) from t_tcvat_diffdeduct where forgid=''#orgid'' and ftaxperiod in (''#sPeriod'',''#mPeriod'',''#ePeriod'') and fdifftypeid=859352590188589056]}+{S[select sum(a.fqmye) from t_tcvat_ybnsr_fb3 a left join t_tctb_declare_main b on a.fsbbid=CONCAT(b.fid,'''') where a.fewblxh=''1'' and b.forgid=''#orgid'' and b.fskssqq=to_date(''#prestartDate'') and b.fskssqz=to_date(''#preendDate'') and b.fnsrtype=''zzsybnsr'']}))/1.13*0.13+({S[select sum(a.fpricetaxamount) from t_tcvat_income_summary a left join t_tpo_taxitemrateentry b on a.fbusinesstypeid=b.fentryid where a.forgid=''#orgid'' and a.ftaxperiod in (''#sPeriod'',''#mPeriod'',''#ePeriod'') and a.fjzjt=''0'' and a.ftaxrate=''9%'' and (b.flongnumber like ''3%'' or b.flongnumber like ''4%'' or b.flongnumber like ''5%'')]}-min({S[select sum(a.fpricetaxamount) from t_tcvat_income_summary a left join t_tpo_taxitemrateentry b on a.fbusinesstypeid=b.fentryid where a.forgid=''#orgid'' and a.ftaxperiod in (''#sPeriod'',''#mPeriod'',''#ePeriod'') and a.fjzjt=''0'' and a.ftaxrate=''9%'' and (b.flongnumber like ''3%'' or b.flongnumber like ''4%'' or b.flongnumber like ''5%'')]},{S[select sum(fcurrentamount) from t_tcvat_diffdeduct where forgid=''#orgid'' and ftaxperiod in (''#sPeriod'',''#mPeriod'',''#ePeriod'') and fdifftypeid=859352590188589057]}+{S[select sum(a.fqmye) from t_tcvat_ybnsr_fb3 a left join t_tctb_declare_main b on a.fsbbid=CONCAT(b.fid,'''') where a.fewblxh=''2'' and b.forgid=''#orgid'' and b.fskssqq=to_date(''#prestartDate'') and b.fskssqz=to_date(''#preendDate'') and b.fnsrtype=''zzsybnsr'']}))/1.09*0.09+({S[select sum(a.fpricetaxamount) from t_tcvat_income_summary a left join t_tpo_taxitemrateentry b on a.fbusinesstypeid=b.fentryid where a.forgid=''#orgid'' and a.ftaxperiod in (''#sPeriod'',''#mPeriod'',''#ePeriod'') and a.fjzjt=''0'' and a.ftaxrate=''6%'' and (b.flongnumber like ''3%'' or b.flongnumber like ''4%'' or b.flongnumber like ''5%'')]}-min({S[select sum(a.fpricetaxamount) from t_tcvat_income_summary a left join t_tpo_taxitemrateentry b on a.fbusinesstypeid=b.fentryid where a.forgid=''#orgid'' and a.ftaxperiod in (''#sPeriod'',''#mPeriod'',''#ePeriod'') and a.fjzjt=''0'' and a.ftaxrate=''6%'' and (b.flongnumber like ''3%'' or b.flongnumber like ''4%'' or b.flongnumber like ''5%'')]},{S[select sum(fcurrentamount) from t_tcvat_diffdeduct where forgid=''#orgid'' and ftaxperiod in (''#sPeriod'',''#mPeriod'',''#ePeriod'') and fdifftypeid in(859352590188589058,859352590188589059)]}+{S[select sum(a.fqmye) from t_tcvat_ybnsr_fb3 a left join t_tctb_declare_main b on a.fsbbid=CONCAT(b.fid,'''') where a.fewblxh in(''3'', ''4'') and b.forgid=''#orgid'' and b.fskssqq=to_date(''#prestartDate'') and b.fskssqz=to_date(''#preendDate'') and b.fnsrtype=''zzsybnsr'']}))/1.06*0.06)');
DELETE FROM t_tctb_formula WHERE FID = 1103368218732634112;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1103368218732634112,{ts'2023-11-09  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_01','tcvat_zlb_ybnsr#7#ybxm',' ','增值税一般纳税人总览表#7#一般项目','1','7','1102685677520327680','draft_zzsybnsr','tcvat_zlb_ybnsr','ybxm',' ',' ','if({C[#diff]}=0 || ({C[#diff]}=1 && {C[#cekcdgBqfseHj]}=0 && {C[#sqsbbFb3Qmye]}=0),{S[select sum(a.ftotaltaxamount) from t_tcvat_income_summary a inner join t_tpo_taxitemrateentry b on a.fbusinesstypeid=b.fentryid where a.forgid=''#orgid'' and a.ftaxperiod in (''#sPeriod'',''#mPeriod'',''#ePeriod'') and a.fjzjt=''0'' and a.ftaxrate in (''6%'',''9%'',''10%'',''11%'',''13%'',''16%'',''17%'') and (b.flongnumber like ''3%'' or b.flongnumber like ''4%'' or b.flongnumber like ''5%'')]},({S[select sum(a.fpricetaxamount) from t_tcvat_income_summary a left join t_tpo_taxitemrateentry b on a.fbusinesstypeid=b.fentryid where a.forgid=''#orgid'' and a.ftaxperiod in (''#sPeriod'',''#mPeriod'',''#ePeriod'') and a.fjzjt=''0'' and a.ftaxrate=''13%'' and (b.flongnumber like ''3%'' or b.flongnumber like ''4%'' or b.flongnumber like ''5%'')]}-min({S[select sum(a.fpricetaxamount) from t_tcvat_income_summary a left join t_tpo_taxitemrateentry b on a.fbusinesstypeid=b.fentryid where a.forgid=''#orgid'' and a.ftaxperiod in (''#sPeriod'',''#mPeriod'',''#ePeriod'') and a.fjzjt=''0'' and a.ftaxrate=''13%'' and (b.flongnumber like ''3%'' or b.flongnumber like ''4%'' or b.flongnumber like ''5%'')]},{S[select sum(fcurrentamount) from t_tcvat_diffdeduct where forgid=''#orgid'' and ftaxperiod in (''#sPeriod'',''#mPeriod'',''#ePeriod'') and fdifftypeid=859352590188589056]}+{S[select sum(a.fqmye) from t_tcvat_ybnsr_fb3 a left join t_tctb_declare_main b on a.fsbbid=CONCAT(b.fid,'''') where a.fewblxh=''1'' and b.forgid=''#orgid'' and b.fskssqq=to_date(''#prestartDate'') and b.fskssqz=to_date(''#preendDate'') and b.fnsrtype=''zzsybnsr'']}))/1.13*0.13+({S[select sum(a.fpricetaxamount) from t_tcvat_income_summary a left join t_tpo_taxitemrateentry b on a.fbusinesstypeid=b.fentryid where a.forgid=''#orgid'' and a.ftaxperiod in (''#sPeriod'',''#mPeriod'',''#ePeriod'') and a.fjzjt=''0'' and a.ftaxrate=''9%'' and (b.flongnumber like ''3%'' or b.flongnumber like ''4%'' or b.flongnumber like ''5%'')]}-min({S[select sum(a.fpricetaxamount) from t_tcvat_income_summary a left join t_tpo_taxitemrateentry b on a.fbusinesstypeid=b.fentryid where a.forgid=''#orgid'' and a.ftaxperiod in (''#sPeriod'',''#mPeriod'',''#ePeriod'') and a.fjzjt=''0'' and a.ftaxrate=''9%'' and (b.flongnumber like ''3%'' or b.flongnumber like ''4%'' or b.flongnumber like ''5%'')]},{S[select sum(fcurrentamount) from t_tcvat_diffdeduct where forgid=''#orgid'' and ftaxperiod in (''#sPeriod'',''#mPeriod'',''#ePeriod'') and fdifftypeid=859352590188589057]}+{S[select sum(a.fqmye) from t_tcvat_ybnsr_fb3 a left join t_tctb_declare_main b on a.fsbbid=CONCAT(b.fid,'''') where a.fewblxh=''2'' and b.forgid=''#orgid'' and b.fskssqq=to_date(''#prestartDate'') and b.fskssqz=to_date(''#preendDate'') and b.fnsrtype=''zzsybnsr'']}))/1.09*0.09+({S[select sum(a.fpricetaxamount) from t_tcvat_income_summary a left join t_tpo_taxitemrateentry b on a.fbusinesstypeid=b.fentryid where a.forgid=''#orgid'' and a.ftaxperiod in (''#sPeriod'',''#mPeriod'',''#ePeriod'') and a.fjzjt=''0'' and a.ftaxrate=''6%'' and (b.flongnumber like ''3%'' or b.flongnumber like ''4%'' or b.flongnumber like ''5%'')]}-min({S[select sum(a.fpricetaxamount) from t_tcvat_income_summary a left join t_tpo_taxitemrateentry b on a.fbusinesstypeid=b.fentryid where a.forgid=''#orgid'' and a.ftaxperiod in (''#sPeriod'',''#mPeriod'',''#ePeriod'') and a.fjzjt=''0'' and a.ftaxrate=''6%'' and (b.flongnumber like ''3%'' or b.flongnumber like ''4%'' or b.flongnumber like ''5%'')]},{S[select sum(fcurrentamount) from t_tcvat_diffdeduct where forgid=''#orgid'' and ftaxperiod in (''#sPeriod'',''#mPeriod'',''#ePeriod'') and fdifftypeid in(859352590188589058,859352590188589059)]}+{S[select sum(a.fqmye) from t_tcvat_ybnsr_fb3 a left join t_tctb_declare_main b on a.fsbbid=CONCAT(b.fid,'''') where a.fewblxh in(''3'', ''4'') and b.forgid=''#orgid'' and b.fskssqq=to_date(''#prestartDate'') and b.fskssqz=to_date(''#preendDate'') and b.fnsrtype=''zzsybnsr'']}))/1.06*0.06)');
DELETE FROM t_tctb_formula WHERE FID = 1611554578313296957;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1611554578313296957,{ts'2023-11-09  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_01','tcvat_zlb_ybnsr#7#ybxm',' ','增值税一般纳税人总览表#7#一般项目','1','7','1611554577046620160','draft_zzsybnsr_sjjt','tcvat_zlb_ybnsr','ybxm',' ',' ','if({C[#diff]}=0 || ({C[#diff]}=1 && {C[#cekcdgBqfseHj]}=0 && {C[#sqsbbFb3Qmye]}=0),{S[select sum(a.ftotaltaxamount) from t_tcvat_income_sum_sjjt a inner join t_tpo_taxitemrateentry b on a.fbusinesstypeid=b.fentryid where a.forgid=''#orgid'' and a.ftaxperiod in (''#sPeriod'',''#mPeriod'',''#ePeriod'') and a.fjzjt=''0'' and a.ftaxrate in (''6%'',''9%'',''10%'',''11%'',''13%'',''16%'',''17%'') and (b.flongnumber like ''3%'' or b.flongnumber like ''4%'' or b.flongnumber like ''5%'')]},({S[select sum(a.fpricetaxamount) from t_tcvat_income_sum_sjjt a left join t_tpo_taxitemrateentry b on a.fbusinesstypeid=b.fentryid where a.forgid=''#orgid'' and a.ftaxperiod in (''#sPeriod'',''#mPeriod'',''#ePeriod'') and a.fjzjt=''0'' and a.ftaxrate=''13%'' and (b.flongnumber like ''3%'' or b.flongnumber like ''4%'' or b.flongnumber like ''5%'')]}-min({S[select sum(a.fpricetaxamount) from t_tcvat_income_sum_sjjt a left join t_tpo_taxitemrateentry b on a.fbusinesstypeid=b.fentryid where a.forgid=''#orgid'' and a.ftaxperiod in (''#sPeriod'',''#mPeriod'',''#ePeriod'') and a.fjzjt=''0'' and a.ftaxrate=''13%'' and (b.flongnumber like ''3%'' or b.flongnumber like ''4%'' or b.flongnumber like ''5%'')]}, {S[select sum(fcurrentamount) from t_tcvat_diffdeduct_sjjt where forgid=''#orgid'' and ftaxperiod in (''#sPeriod'',''#mPeriod'',''#ePeriod'') and fdifftypeid=859352590188589056]}+{S[select sum(a.fqmye) from t_tcvat_ybnsr_fb3 a left join t_tctb_declare_main b on a.fsbbid=CONCAT(b.fid,'''') where a.fewblxh=''1'' and b.forgid=''#orgid'' and b.fskssqq=to_date(''#prestartDate'') and b.fskssqz=to_date(''#preendDate'') and b.fnsrtype=''zzsybnsr'']}))/1.13*0.13+({S[select sum(a.fpricetaxamount) from t_tcvat_income_sum_sjjt a left join t_tpo_taxitemrateentry b on a.fbusinesstypeid=b.fentryid where a.forgid=''#orgid'' and a.ftaxperiod in (''#sPeriod'',''#mPeriod'',''#ePeriod'') and a.fjzjt=''0'' and a.ftaxrate=''9%'' and (b.flongnumber like ''3%'' or b.flongnumber like ''4%'' or b.flongnumber like ''5%'')]}-min({S[select sum(a.fpricetaxamount) from t_tcvat_income_sum_sjjt a left join t_tpo_taxitemrateentry b on a.fbusinesstypeid=b.fentryid where a.forgid=''#orgid'' and a.ftaxperiod in (''#sPeriod'',''#mPeriod'',''#ePeriod'') and a.fjzjt=''0'' and a.ftaxrate=''9%'' and (b.flongnumber like ''3%'' or b.flongnumber like ''4%'' or b.flongnumber like ''5%'')]},{S[select sum(fcurrentamount) from t_tcvat_diffdeduct_sjjt where forgid=''#orgid'' and ftaxperiod in (''#sPeriod'',''#mPeriod'',''#ePeriod'') and fdifftypeid=859352590188589057]}+{S[select sum(a.fqmye) from t_tcvat_ybnsr_fb3 a left join t_tctb_declare_main b on a.fsbbid=CONCAT(b.fid,'''') where a.fewblxh=''2'' and b.forgid=''#orgid'' and b.fskssqq=to_date(''#prestartDate'') and b.fskssqz=to_date(''#preendDate'') and b.fnsrtype=''zzsybnsr'']}))/1.09*0.09+({S[select sum(a.fpricetaxamount) from t_tcvat_income_sum_sjjt a left join t_tpo_taxitemrateentry b on a.fbusinesstypeid=b.fentryid where a.forgid=''#orgid'' and a.ftaxperiod in (''#sPeriod'',''#mPeriod'',''#ePeriod'') and a.fjzjt=''0'' and a.ftaxrate=''6%'' and (b.flongnumber like ''3%'' or b.flongnumber like ''4%'' or b.flongnumber like ''5%'')]}-min({S[select sum(a.fpricetaxamount) from t_tcvat_income_sum_sjjt a left join t_tpo_taxitemrateentry b on a.fbusinesstypeid=b.fentryid where a.forgid=''#orgid'' and a.ftaxperiod in (''#sPeriod'',''#mPeriod'',''#ePeriod'') and a.fjzjt=''0'' and a.ftaxrate=''6%'' and (b.flongnumber like ''3%'' or b.flongnumber like ''4%'' or b.flongnumber like ''5%'')]},{S[select sum(fcurrentamount) from t_tcvat_diffdeduct_sjjt where forgid=''#orgid'' and ftaxperiod in (''#sPeriod'',''#mPeriod'',''#ePeriod'') and fdifftypeid in(859352590188589058,859352590188589059)]}+{S[select sum(a.fqmye) from t_tcvat_ybnsr_fb3 a left join t_tctb_declare_main b on a.fsbbid=CONCAT(b.fid,'''') where a.fewblxh in (''3'',''4'') and b.forgid=''#orgid'' and b.fskssqq=to_date(''#prestartDate'') and b.fskssqz=to_date(''#preendDate'') and b.fnsrtype=''zzsybnsr'']}))/1.06*0.06)');
DELETE FROM t_tctb_formula WHERE FID = 1119592992584261632;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1119592992584261632,{ts'2023-11-09  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_01','tcvat_zlb_zzsybnsr_ybhz#7#ybxm',' ','增值税汇总一般企业税额计算总览表#7#一般项目','1','7','1119375361449286656','draft_zzsybnsr_ybhz','tcvat_zlb_zzsybnsr_ybhz','ybxm',' ',' ','if({C[#diff]}=0 || ({C[#diff]}=1 && {C[#cekcdgBqfseHj]}=0 && {C[#sqsbbFb3Qmye]}=0),{S[select sum(s.ftotaltaxamount) from t_tcvat_hz_account_summar s,t_tpo_taxitemrateentry t where s.ftaxpayertype=''#taxpayertype'' and s.fbusinesstypeid=t.fentryid and s.forgid=''#orgid'' and s.fstartdate=to_date(''#startDate'') and s.fenddate=to_date(''#endDate'') and s.fjzjt=''0'' and s.ftaxrate in(''6%'',''9%'',''10%'',''11%'',''13%'',''16%'',''17%'') and(t.flongnumber like ''3%'' or t.flongnumber like ''4%'' or t.flongnumber like ''5%'')]},({S[select sum(s.fpricetaxamount) from t_tcvat_hz_account_summar s,t_tpo_taxitemrateentry t where s.fbusinesstypeid=t.fentryid and s.ftaxpayertype=''#taxpayertype'' and s.forgid=''#orgid'' and s.fstartdate=to_date(''#startDate'') and s.fenddate=to_date(''#endDate'') and s.fjzjt=''0'' and s.ftaxrate=''13%'' and (t.flongnumber like ''3%'' or t.flongnumber like ''4%'' or t.flongnumber like ''5%'')]}-min({S[select sum(s.fpricetaxamount) from t_tcvat_hz_account_summar s,t_tpo_taxitemrateentry t where s.fbusinesstypeid=t.fentryid and s.ftaxpayertype=''#taxpayertype'' and s.forgid=''#orgid'' and s.fstartdate=to_date(''#startDate'') and s.fenddate=to_date(''#endDate'') and s.fjzjt=''0'' and s.ftaxrate=''13%'' and (t.flongnumber like ''3%'' or t.flongnumber like ''4%'' or t.flongnumber like ''5%'')]},{S[select sum(fcurrentamount) from t_tcvat_hz_diff_temp where ftaxpayertype=''#taxpayertype'' and forgid=''#orgid'' and fstartdate=to_date(''#startDate'') and fenddate=to_date(''#endDate'') and fdifftypeid=859352590188589056]}+{S[select sum(fqmye) from t_tcvat_ybnsr_fb3 where fsbbid=''#predeclaresbbid'' and fewblxh=''1'']}))/1.13*0.13+({S[select sum(s.fpricetaxamount) from t_tcvat_hz_account_summar s left join t_tpo_taxitemrateentry t on s.fbusinesstypeid=t.fentryid where s.ftaxpayertype=''#taxpayertype'' and s.forgid=''#orgid'' and s.fstartdate=to_date(''#startDate'') and s.fenddate=to_date(''#endDate'') and s.fjzjt=''0'' and s.ftaxrate=''9%'' and (t.flongnumber like ''3%'' or t.flongnumber like ''4%'' or t.flongnumber like ''5%'')]}-min({S[select sum(s.fpricetaxamount) from t_tcvat_hz_account_summar s left join t_tpo_taxitemrateentry t on s.fbusinesstypeid=t.fentryid where s.ftaxpayertype=''#taxpayertype'' and s.forgid=''#orgid'' and s.fstartdate=to_date(''#startDate'') and s.fenddate=to_date(''#endDate'') and s.fjzjt=''0'' and s.ftaxrate=''9%'' and (t.flongnumber like ''3%'' or t.flongnumber like ''4%'' or t.flongnumber like ''5%'')]},{S[select sum(fcurrentamount) from t_tcvat_hz_diff_temp where ftaxpayertype=''#taxpayertype'' and forgid=''#orgid'' and fstartdate=to_date(''#startDate'') and fenddate=to_date(''#endDate'') and fdifftypeid=859352590188589057]}+{S[select sum(fqmye) from t_tcvat_ybnsr_fb3 where fsbbid=''#predeclaresbbid'' and fewblxh=''2'']}))/1.09*0.09+({S[select sum(s.fpricetaxamount) from t_tcvat_hz_account_summar s,t_tpo_taxitemrateentry t where s.fbusinesstypeid=t.fentryid and s.ftaxpayertype=''#taxpayertype'' and s.forgid=''#orgid'' and s.fstartdate=to_date(''#startDate'') and s.fenddate=to_date(''#endDate'') and s.fjzjt=''0'' and s.ftaxrate=''6%'' and (t.flongnumber like ''3%'' or t.flongnumber like ''4%'' or t.flongnumber like ''5%'')]}-min({S[select sum(s.fpricetaxamount) from t_tcvat_hz_account_summar s,t_tpo_taxitemrateentry t where s.fbusinesstypeid=t.fentryid and s.ftaxpayertype=''#taxpayertype'' and s.forgid=''#orgid''  and s.fstartdate=to_date(''#startDate'') and s.fenddate=to_date(''#endDate'') and s.fjzjt=''0'' and s.ftaxrate=''6%'' and (t.flongnumber like ''3%'' or t.flongnumber like ''4%'' or t.flongnumber like ''5%'')]},{S[select sum(fcurrentamount) from t_tcvat_hz_diff_temp where ftaxpayertype=''#taxpayertype'' and forgid=''#orgid'' and fstartdate=to_date(''#startDate'') and fenddate=to_date(''#endDate'') and fdifftypeid in(859352590188589058,859352590188589059)]}+{S[select sum(fqmye) from t_tcvat_ybnsr_fb3 where fsbbid=''#predeclaresbbid'' and fewblxh in (''3'',''4'')]}))/1.06*0.06)');
DELETE FROM t_tctb_formula WHERE FID = 1626005309807968271;
INSERT INTO t_tctb_formula(FID,FUPDATETIME,FCONTENT,FTITLE,FTEMPLATENUM,FFORMULAKEY,FFORMULANAME,FNAME,FFORMULATYPE,FROW,FTEMPLATEID,FTAXTYPE,FTABLE,FCOLUMN,FCELLTYPE,FDESCRIBE,FFORMULA) VALUES (1626005309807968271,{ts'2023-11-09  00:00:00'},' ',' ','VAT_DRAFT_YBNSR_YBHZ_01','tcvat_zlb_zzsybnsr_ybhz#7#ybxm',' ','增值税汇总一般企业税额计算总览表#7#一般项目','1','7','1626005309052994560','draft_zzsybnsr_ybhz_sjjt','tcvat_zlb_zzsybnsr_ybhz','ybxm',' ',' ','if({C[#diff]}=0 || ({C[#diff]}=1 && {C[#cekcdgBqfseHj]}=0 && {C[#sqsbbFb3Qmye]}=0),{S[select sum(s.ftotaltaxamount) from t_tcvat_hz_account_sum_jt s,t_tpo_taxitemrateentry t where s.ftaxpayertype=''#taxpayertype'' and s.fbusinesstypeid=t.fentryid and s.forgid=''#orgid'' and s.fstartdate=to_date(''#startDate'') and s.fenddate=to_date(''#endDate'') and s.fjzjt=''0'' and s.ftaxrate in(''6%'',''9%'',''10%'',''11%'',''13%'',''16%'',''17%'') and(t.flongnumber like ''3%'' or t.flongnumber like ''4%'' or t.flongnumber like ''5%'')]},({S[select sum(s.fpricetaxamount) from t_tcvat_hz_account_sum_jt s,t_tpo_taxitemrateentry t where s.fbusinesstypeid=t.fentryid and s.ftaxpayertype=''#taxpayertype'' and s.forgid=''#orgid'' and s.fstartdate=to_date(''#startDate'') and s.fenddate=to_date(''#endDate'') and s.fjzjt=''0'' and s.ftaxrate=''13%'' and (t.flongnumber like ''3%'' or t.flongnumber like ''4%'' or t.flongnumber like ''5%'')]}-min({S[select sum(s.fpricetaxamount) from t_tcvat_hz_account_sum_jt s,t_tpo_taxitemrateentry t where s.fbusinesstypeid=t.fentryid and s.ftaxpayertype=''#taxpayertype'' and s.forgid=''#orgid'' and s.fstartdate=to_date(''#startDate'') and s.fenddate=to_date(''#endDate'') and s.fjzjt=''0'' and s.ftaxrate=''13%'' and (t.flongnumber like ''3%'' or t.flongnumber like ''4%'' or t.flongnumber like ''5%'')]},{S[select sum(fcurrentamount) from t_tcvat_hz_diff_temp_sjjt where ftaxpayertype=''#taxpayertype'' and forgid=''#orgid'' and fstartdate=to_date(''#startDate'') and fenddate=to_date(''#endDate'') and fdifftypeid=859352590188589056]}+{S[select sum(fqmye) from t_tcvat_ybnsr_fb3 where fsbbid=''#predeclaresbbid'' and fewblxh=''1'']}))/1.13*0.13+({S[select sum(s.fpricetaxamount) from t_tcvat_hz_account_sum_jt s left join t_tpo_taxitemrateentry t on s.fbusinesstypeid=t.fentryid where s.ftaxpayertype=''#taxpayertype'' and s.forgid=''#orgid'' and s.fstartdate=to_date(''#startDate'') and s.fenddate=to_date(''#endDate'') and s.fjzjt=''0'' and s.ftaxrate=''9%'' and (t.flongnumber like ''3%'' or t.flongnumber like ''4%'' or t.flongnumber like ''5%'')]}-min({S[select sum(s.fpricetaxamount) from t_tcvat_hz_account_sum_jt s left join t_tpo_taxitemrateentry t on s.fbusinesstypeid=t.fentryid where s.ftaxpayertype=''#taxpayertype'' and s.forgid=''#orgid'' and s.fstartdate=to_date(''#startDate'') and s.fenddate=to_date(''#endDate'') and s.fjzjt=''0'' and s.ftaxrate=''9%'' and (t.flongnumber like ''3%'' or t.flongnumber like ''4%'' or t.flongnumber like ''5%'')]},{S[select sum(fcurrentamount) from t_tcvat_hz_diff_temp_sjjt where ftaxpayertype=''#taxpayertype'' and forgid=''#orgid'' and fstartdate=to_date(''#startDate'') and fenddate=to_date(''#endDate'') and fdifftypeid=859352590188589057]}+{S[select sum(fqmye) from t_tcvat_ybnsr_fb3 where fsbbid=''#predeclaresbbid'' and fewblxh=''2'']}))/1.09*0.09+({S[select sum(s.fpricetaxamount) from t_tcvat_hz_account_sum_jt s,t_tpo_taxitemrateentry t where s.fbusinesstypeid=t.fentryid and s.ftaxpayertype=''#taxpayertype'' and s.forgid=''#orgid'' and s.fstartdate=to_date(''#startDate'') and s.fenddate=to_date(''#endDate'') and s.fjzjt=''0'' and s.ftaxrate=''6%'' and (t.flongnumber like ''3%'' or t.flongnumber like ''4%'' or t.flongnumber like ''5%'')]}-min({S[select sum(s.fpricetaxamount) from t_tcvat_hz_account_sum_jt s,t_tpo_taxitemrateentry t where s.fbusinesstypeid=t.fentryid and s.ftaxpayertype=''#taxpayertype'' and s.forgid=''#orgid''  and s.fstartdate=to_date(''#startDate'') and s.fenddate=to_date(''#endDate'') and s.fjzjt=''0'' and s.ftaxrate=''6%'' and (t.flongnumber like ''3%'' or t.flongnumber like ''4%'' or t.flongnumber like ''5%'')]},{S[select sum(fcurrentamount) from t_tcvat_hz_diff_temp_sjjt where ftaxpayertype=''#taxpayertype'' and forgid=''#orgid'' and fstartdate=to_date(''#startDate'') and fenddate=to_date(''#endDate'') and fdifftypeid in(859352590188589058,859352590188589059)]}+{S[select sum(fqmye) from t_tcvat_ybnsr_fb3 where fsbbid=''#predeclaresbbid'' and fewblxh in (''3'',''4'')]}))/1.06*0.06)');
