DELETE FROM t_tctb_datasouce_rule_tax WHERE FID = 1527585033072816128;
INSERT INTO t_tctb_datasouce_rule_tax(FID,FMASTERID,FSTATUS,FPARENTID,FNUMBER,FCREATETIME,FMODIFIERID,FENABLE,FISLEAF,FMODIFYTIME,FLEVEL,FCREATORID,FLONGNUMBER) VALUES (1527585033072816128,1527585033072816128,'C',0,'RULE-ITP',{ts'2022-10-09  00:00:00'},1267221609945529344,'1','1',{ts'2022-10-09  00:00:00'},1,1267221609945529344,'RULE-ITP');

DELETE FROM t_tctb_datasouce_rule_tax_l WHERE FPKID = '2SMHP+ZHO44G';
INSERT INTO t_tctb_datasouce_rule_tax_l(FID,FPKID,FLOCALEID,FFULLNAME,FNAME) VALUES (1527585033072816128,'2SMHP+ZHO44G','zh_CN','所得税计提','所得税计提');
DELETE FROM t_tctb_datasouce_rule_tax_l WHERE FPKID = '2SMHP+ZHO44H';
INSERT INTO t_tctb_datasouce_rule_tax_l(FID,FPKID,FLOCALEID,FFULLNAME,FNAME) VALUES (1527585033072816128,'2SMHP+ZHO44H','zh_TW',' ','所得稅計提');

DELETE FROM t_tctb_datasource_pekrule WHERE FID = 1527585752186237952;
INSERT INTO t_tctb_datasource_pekrule(FID,FGROUPFIELD,FENABLE,FMASTERID,FSTATUS,FCREATORID,FNUMBER) VALUES (1527585752186237952,1527585033072816128,'1',1527585752186237952,'C',1267221609945529344,'RULE-CIT-WP');

DELETE FROM t_tctb_datasource_pekrule_l WHERE FPKID = '2SMHU8B5NF+T';
INSERT INTO t_tctb_datasource_pekrule_l(FID,FPKID,FLOCALEID,FDESC,FNAME) VALUES (1527585752186237952,'2SMHU8B5NF+T','zh_CN','所得税计提','所得税计提');
DELETE FROM t_tctb_datasource_pekrule_l WHERE FPKID = '2SMHU8B5NF+U';
INSERT INTO t_tctb_datasource_pekrule_l(FID,FPKID,FLOCALEID,FDESC,FNAME) VALUES (1527585752186237952,'2SMHU8B5NF+U','zh_TW','所得稅計提','所得稅計提');

--GAAP差异
DELETE FROM t_tctb_datasource WHERE FID = 1635587485419537408;
INSERT INTO t_tctb_datasource(FID,FBIZNAME,FISCHILD,FTYPE,FCONDITION,FORGTAKERELATION,FCREATEORGID,FSUBENTITYNAME,FUSERORG,FORGID,FMASTERID,FSTATUS,FCTRLSTRATEGY,FENTITYNAME,FGROUPID,FNUMBER,FCREATETIME,FMODIFIERID,FENABLE,FTAXTYPE,FMODIFYTIME,FCREATORID,FISSYSTEM) VALUES (1635587485419537408,'GAAP差异','1','0',' ','0',100000,'entryentity',100000,100000,1635587485419537408,'C','5','itp_gaap_difference',978216567512983552,' ',{ts'2023-03-07  00:00:00'},1180999309169004544,'1',' ',{ts'2023-03-07  00:00:00'},1180999309169004544,'1');

DELETE FROM t_tctb_datasource_l WHERE FPKID = '33WYH/XR4JLS';
INSERT INTO t_tctb_datasource_l(FID,FPKID,FLOCALEID,FNAME) VALUES (1635587485419537408,'33WYH/XR4JLS','zh_CN','itp_gaap_difference');

DELETE FROM t_tctb_datasource_entry WHERE FENTRYID = 1635587485478257664;
INSERT INTO t_tctb_datasource_entry(FID,FORGSTATE,FBIZSUBNAME,FELEMENTWHERE,FYEARSTATE,FACCESSLOGIC,FENTRYID,FSTATE,FSUBNAME,FMONTHSTATE,FACCESSMAP,FWHERESTATE,FISAMOUNT,FSEQ,FFIELDNAME,FINSPECTIONSHOWFIELD,FDESCRICE,FDATASTATE) VALUES (1635587485419537408,'0','单据编号','0','0',' ',1635587485478257664,'1','itp_gaap_difference','0',0,'0','0',1,'billno','0','单据编号','0');
DELETE FROM t_tctb_datasource_entry WHERE FENTRYID = 1635587485478257665;
INSERT INTO t_tctb_datasource_entry(FID,FORGSTATE,FBIZSUBNAME,FELEMENTWHERE,FYEARSTATE,FACCESSLOGIC,FENTRYID,FSTATE,FSUBNAME,FMONTHSTATE,FACCESSMAP,FWHERESTATE,FISAMOUNT,FSEQ,FFIELDNAME,FINSPECTIONSHOWFIELD,FDESCRICE,FDATASTATE) VALUES (1635587485419537408,'0','单据状态','0','0',' ',1635587485478257665,'1','itp_gaap_difference','0',0,'1','0',2,'billstatus','0','单据状态','0');
DELETE FROM t_tctb_datasource_entry WHERE FENTRYID = 1635587485478257666;
INSERT INTO t_tctb_datasource_entry(FID,FORGSTATE,FBIZSUBNAME,FELEMENTWHERE,FYEARSTATE,FACCESSLOGIC,FENTRYID,FSTATE,FSUBNAME,FMONTHSTATE,FACCESSMAP,FWHERESTATE,FISAMOUNT,FSEQ,FFIELDNAME,FINSPECTIONSHOWFIELD,FDESCRICE,FDATASTATE) VALUES (1635587485419537408,'0','创建人','0','0',' ',1635587485478257666,'1','itp_gaap_difference','0',0,'0','0',3,'creator','0','创建人','0');
DELETE FROM t_tctb_datasource_entry WHERE FENTRYID = 1635587485478257667;
INSERT INTO t_tctb_datasource_entry(FID,FORGSTATE,FBIZSUBNAME,FELEMENTWHERE,FYEARSTATE,FACCESSLOGIC,FENTRYID,FSTATE,FSUBNAME,FMONTHSTATE,FACCESSMAP,FWHERESTATE,FISAMOUNT,FSEQ,FFIELDNAME,FINSPECTIONSHOWFIELD,FDESCRICE,FDATASTATE) VALUES (1635587485419537408,'0','修改人','0','0',' ',1635587485478257667,'1','itp_gaap_difference','0',0,'0','0',4,'modifier','0','修改人','0');
DELETE FROM t_tctb_datasource_entry WHERE FENTRYID = 1635587485478257668;
INSERT INTO t_tctb_datasource_entry(FID,FORGSTATE,FBIZSUBNAME,FELEMENTWHERE,FYEARSTATE,FACCESSLOGIC,FENTRYID,FSTATE,FSUBNAME,FMONTHSTATE,FACCESSMAP,FWHERESTATE,FISAMOUNT,FSEQ,FFIELDNAME,FINSPECTIONSHOWFIELD,FDESCRICE,FDATASTATE) VALUES (1635587485419537408,'0','审核人','0','0',' ',1635587485478257668,'1','itp_gaap_difference','0',0,'0','0',5,'auditor','0','审核人','0');
DELETE FROM t_tctb_datasource_entry WHERE FENTRYID = 1635587485478257669;
INSERT INTO t_tctb_datasource_entry(FID,FORGSTATE,FBIZSUBNAME,FELEMENTWHERE,FYEARSTATE,FACCESSLOGIC,FENTRYID,FSTATE,FSUBNAME,FMONTHSTATE,FACCESSMAP,FWHERESTATE,FISAMOUNT,FSEQ,FFIELDNAME,FINSPECTIONSHOWFIELD,FDESCRICE,FDATASTATE) VALUES (1635587485419537408,'0','审核日期','0','0',' ',1635587485478257669,'1','itp_gaap_difference','0',0,'0','0',6,'auditdate','0','审核日期','0');
DELETE FROM t_tctb_datasource_entry WHERE FENTRYID = 1635587485478257670;
INSERT INTO t_tctb_datasource_entry(FID,FORGSTATE,FBIZSUBNAME,FELEMENTWHERE,FYEARSTATE,FACCESSLOGIC,FENTRYID,FSTATE,FSUBNAME,FMONTHSTATE,FACCESSMAP,FWHERESTATE,FISAMOUNT,FSEQ,FFIELDNAME,FINSPECTIONSHOWFIELD,FDESCRICE,FDATASTATE) VALUES (1635587485419537408,'0','修改时间','0','0',' ',1635587485478257670,'1','itp_gaap_difference','0',0,'0','0',7,'modifytime','0','修改时间','0');
DELETE FROM t_tctb_datasource_entry WHERE FENTRYID = 1635587485478257671;
INSERT INTO t_tctb_datasource_entry(FID,FORGSTATE,FBIZSUBNAME,FELEMENTWHERE,FYEARSTATE,FACCESSLOGIC,FENTRYID,FSTATE,FSUBNAME,FMONTHSTATE,FACCESSMAP,FWHERESTATE,FISAMOUNT,FSEQ,FFIELDNAME,FINSPECTIONSHOWFIELD,FDESCRICE,FDATASTATE) VALUES (1635587485419537408,'0','创建时间','0','0',' ',1635587485478257671,'1','itp_gaap_difference','0',0,'0','0',8,'createtime','0','创建时间','0');
DELETE FROM t_tctb_datasource_entry WHERE FENTRYID = 1635587485478257672;
INSERT INTO t_tctb_datasource_entry(FID,FORGSTATE,FBIZSUBNAME,FELEMENTWHERE,FYEARSTATE,FACCESSLOGIC,FENTRYID,FSTATE,FSUBNAME,FMONTHSTATE,FACCESSMAP,FWHERESTATE,FISAMOUNT,FSEQ,FFIELDNAME,FINSPECTIONSHOWFIELD,FDESCRICE,FDATASTATE) VALUES (1635587485419537408,'1','核算组织','0','0',' ',1635587485478257672,'1','itp_gaap_difference','0',0,'0','0',9,'org','0','核算组织','0');
DELETE FROM t_tctb_datasource_entry WHERE FENTRYID = 1635587485478257673;
INSERT INTO t_tctb_datasource_entry(FID,FORGSTATE,FBIZSUBNAME,FELEMENTWHERE,FYEARSTATE,FACCESSLOGIC,FENTRYID,FSTATE,FSUBNAME,FMONTHSTATE,FACCESSMAP,FWHERESTATE,FISAMOUNT,FSEQ,FFIELDNAME,FINSPECTIONSHOWFIELD,FDESCRICE,FDATASTATE) VALUES (1635587485419537408,'0','集团账簿','0','0',' ',1635587485478257673,'1','itp_gaap_difference','0',0,'1','0',10,'groupaccount','0','集团账簿','0');
DELETE FROM t_tctb_datasource_entry WHERE FENTRYID = 1635587485478257674;
INSERT INTO t_tctb_datasource_entry(FID,FORGSTATE,FBIZSUBNAME,FELEMENTWHERE,FYEARSTATE,FACCESSLOGIC,FENTRYID,FSTATE,FSUBNAME,FMONTHSTATE,FACCESSMAP,FWHERESTATE,FISAMOUNT,FSEQ,FFIELDNAME,FINSPECTIONSHOWFIELD,FDESCRICE,FDATASTATE) VALUES (1635587485419537408,'0','本地账簿','0','0',' ',1635587485478257674,'1','itp_gaap_difference','0',0,'1','0',11,'localaccount','0','本地账簿','0');
DELETE FROM t_tctb_datasource_entry WHERE FENTRYID = 1635587485478257675;
INSERT INTO t_tctb_datasource_entry(FID,FORGSTATE,FBIZSUBNAME,FELEMENTWHERE,FYEARSTATE,FACCESSLOGIC,FENTRYID,FSTATE,FSUBNAME,FMONTHSTATE,FACCESSMAP,FWHERESTATE,FISAMOUNT,FSEQ,FFIELDNAME,FINSPECTIONSHOWFIELD,FDESCRICE,FDATASTATE) VALUES (1635587485419537408,'0','会计期间','0','0',' ',1635587485478257675,'1','itp_gaap_difference','0',0,'0','0',12,'kjnd','0','会计期间','1');
DELETE FROM t_tctb_datasource_entry WHERE FENTRYID = 1635587485478257676;
INSERT INTO t_tctb_datasource_entry(FID,FORGSTATE,FBIZSUBNAME,FELEMENTWHERE,FYEARSTATE,FACCESSLOGIC,FENTRYID,FSTATE,FSUBNAME,FMONTHSTATE,FACCESSMAP,FWHERESTATE,FISAMOUNT,FSEQ,FFIELDNAME,FINSPECTIONSHOWFIELD,FDESCRICE,FDATASTATE) VALUES (1635587485419537408,'0','分录行号','0','0',' ',1635587485478257676,'1','entryentity','0',0,'0','0',13,'seq','0','分录行号','0');
DELETE FROM t_tctb_datasource_entry WHERE FENTRYID = 1635587485478257677;
INSERT INTO t_tctb_datasource_entry(FID,FORGSTATE,FBIZSUBNAME,FELEMENTWHERE,FYEARSTATE,FACCESSLOGIC,FENTRYID,FSTATE,FSUBNAME,FMONTHSTATE,FACCESSMAP,FWHERESTATE,FISAMOUNT,FSEQ,FFIELDNAME,FINSPECTIONSHOWFIELD,FDESCRICE,FDATASTATE) VALUES (1635587485419537408,'0','修改人','0','0',' ',1635587485478257677,'1','entryentity','0',0,'0','0',14,'modifierfield','0','修改人','0');
DELETE FROM t_tctb_datasource_entry WHERE FENTRYID = 1635587485478257678;
INSERT INTO t_tctb_datasource_entry(FID,FORGSTATE,FBIZSUBNAME,FELEMENTWHERE,FYEARSTATE,FACCESSLOGIC,FENTRYID,FSTATE,FSUBNAME,FMONTHSTATE,FACCESSMAP,FWHERESTATE,FISAMOUNT,FSEQ,FFIELDNAME,FINSPECTIONSHOWFIELD,FDESCRICE,FDATASTATE) VALUES (1635587485419537408,'0','修改日期','0','0',' ',1635587485478257678,'1','entryentity','0',0,'0','0',15,'modifydatefield','0','修改日期','0');
DELETE FROM t_tctb_datasource_entry WHERE FENTRYID = 1635587485478257679;
INSERT INTO t_tctb_datasource_entry(FID,FORGSTATE,FBIZSUBNAME,FELEMENTWHERE,FYEARSTATE,FACCESSLOGIC,FENTRYID,FSTATE,FSUBNAME,FMONTHSTATE,FACCESSMAP,FWHERESTATE,FISAMOUNT,FSEQ,FFIELDNAME,FINSPECTIONSHOWFIELD,FDESCRICE,FDATASTATE) VALUES (1635587485419537408,'0','比对表单','0','0',' ',1635587485478257679,'1','entryentity','0',0,'0','0',16,'compareform','0','比对表单','0');
DELETE FROM t_tctb_datasource_entry WHERE FENTRYID = 1635587485478257680;
INSERT INTO t_tctb_datasource_entry(FID,FORGSTATE,FBIZSUBNAME,FELEMENTWHERE,FYEARSTATE,FACCESSLOGIC,FENTRYID,FSTATE,FSUBNAME,FMONTHSTATE,FACCESSMAP,FWHERESTATE,FISAMOUNT,FSEQ,FFIELDNAME,FINSPECTIONSHOWFIELD,FDESCRICE,FDATASTATE) VALUES (1635587485419537408,'0','比对字段','0','0',' ',1635587485478257680,'1','entryentity','0',0,'0','0',17,'comparefield','0','比对字段','0');
DELETE FROM t_tctb_datasource_entry WHERE FENTRYID = 1635587485478257681;
INSERT INTO t_tctb_datasource_entry(FID,FORGSTATE,FBIZSUBNAME,FELEMENTWHERE,FYEARSTATE,FACCESSLOGIC,FENTRYID,FSTATE,FSUBNAME,FMONTHSTATE,FACCESSMAP,FWHERESTATE,FISAMOUNT,FSEQ,FFIELDNAME,FINSPECTIONSHOWFIELD,FDESCRICE,FDATASTATE) VALUES (1635587485419537408,'0','集团科目编码','0','0',' ',1635587485478257681,'1','entryentity','0',0,'1','0',18,'groupsubjectsid','0','集团科目编码','0');
DELETE FROM t_tctb_datasource_entry WHERE FENTRYID = 1635587485478257682;
INSERT INTO t_tctb_datasource_entry(FID,FORGSTATE,FBIZSUBNAME,FELEMENTWHERE,FYEARSTATE,FACCESSLOGIC,FENTRYID,FSTATE,FSUBNAME,FMONTHSTATE,FACCESSMAP,FWHERESTATE,FISAMOUNT,FSEQ,FFIELDNAME,FINSPECTIONSHOWFIELD,FDESCRICE,FDATASTATE) VALUES (1635587485419537408,'0','集团账簿金额','0','0',',bqhj,bnlj,jzqms,',1635587485478257682,'1','entryentity','0',0,'0','1',19,'groupaccountvalue','0','集团账簿金额','0');
DELETE FROM t_tctb_datasource_entry WHERE FENTRYID = 1635587485478257683;
INSERT INTO t_tctb_datasource_entry(FID,FORGSTATE,FBIZSUBNAME,FELEMENTWHERE,FYEARSTATE,FACCESSLOGIC,FENTRYID,FSTATE,FSUBNAME,FMONTHSTATE,FACCESSMAP,FWHERESTATE,FISAMOUNT,FSEQ,FFIELDNAME,FINSPECTIONSHOWFIELD,FDESCRICE,FDATASTATE) VALUES (1635587485419537408,'0','GAAP差异','0','0',',bqhj,bnlj,jzqms,',1635587485478257683,'1','entryentity','0',0,'0','1',20,'gaapdifference','0','GAAP差异','0');
DELETE FROM t_tctb_datasource_entry WHERE FENTRYID = 1635587485478257684;
INSERT INTO t_tctb_datasource_entry(FID,FORGSTATE,FBIZSUBNAME,FELEMENTWHERE,FYEARSTATE,FACCESSLOGIC,FENTRYID,FSTATE,FSUBNAME,FMONTHSTATE,FACCESSMAP,FWHERESTATE,FISAMOUNT,FSEQ,FFIELDNAME,FINSPECTIONSHOWFIELD,FDESCRICE,FDATASTATE) VALUES (1635587485419537408,'0','分录行号','0','0',' ',1635587485478257684,'1','subentryentity','0',0,'0','0',21,'seq','0','分录行号','0');
DELETE FROM t_tctb_datasource_entry WHERE FENTRYID = 1635587485478257685;
INSERT INTO t_tctb_datasource_entry(FID,FORGSTATE,FBIZSUBNAME,FELEMENTWHERE,FYEARSTATE,FACCESSLOGIC,FENTRYID,FSTATE,FSUBNAME,FMONTHSTATE,FACCESSMAP,FWHERESTATE,FISAMOUNT,FSEQ,FFIELDNAME,FINSPECTIONSHOWFIELD,FDESCRICE,FDATASTATE) VALUES (1635587485419537408,'0','本地科目编码','0','0',' ',1635587485478257685,'1','subentryentity','0',0,'1','0',22,'localsubjectsid','0','本地科目编码','0');
DELETE FROM t_tctb_datasource_entry WHERE FENTRYID = 1635587485478257686;
INSERT INTO t_tctb_datasource_entry(FID,FORGSTATE,FBIZSUBNAME,FELEMENTWHERE,FYEARSTATE,FACCESSLOGIC,FENTRYID,FSTATE,FSUBNAME,FMONTHSTATE,FACCESSMAP,FWHERESTATE,FISAMOUNT,FSEQ,FFIELDNAME,FINSPECTIONSHOWFIELD,FDESCRICE,FDATASTATE) VALUES (1635587485419537408,'0','本地账簿金额','0','0',',bqhj,bnlj,jzqms,',1635587485478257686,'1','subentryentity','0',0,'0','1',23,'localaccountvalue','0','本地账簿金额','0');

--GAAP适用取数规则
DELETE FROM t_tctb_datasource_pkrules WHERE FPKID = 1635587485478256641;
INSERT INTO t_tctb_datasource_pkrules(FID,FBASEDATAID,FPKID) VALUES (1635587485419537408,1527585752186237952,1635587485478256641);



