DELETE FROM T_BAS_IMPORTTEMPLATEENTRY WHERE FID = 1007301067354102784 and (fentryid = 1264525070538247168 or ffieldkey = 'mapfactor');
INSERT INTO T_BAS_IMPORTTEMPLATEENTRY 
(FID,FENTRYID,FPARENTENTRYID,FSEQ,FFIELDKEY,FFIELDNAME,FMUSTINPUT,FDESCRIPTION,FISIMPORT,FISFIELD,FIMPORTPROP,FEXPORTPROP) VALUES 
(1007301067354102784,1264525070538247168,1007300497859894273,31,'mapfactor',NULL,'1',' ','1','1',' ',' ');

DELETE FROM T_BAS_IMPORTTEMPLATEENTRY WHERE FID = 1007301067354102784 and (fentryid = 1264525070538136577 or ffieldkey = 'invoicefactor');
INSERT INTO T_BAS_IMPORTTEMPLATEENTRY 
(FID,FENTRYID,FPARENTENTRYID,FSEQ,FFIELDKEY,FFIELDNAME,FMUSTINPUT,FDESCRIPTION,FISIMPORT,FISFIELD,FIMPORTPROP,FEXPORTPROP) VALUES 
(1007301067354102784,1264525070538136577,1007300497859894273,30,'invoicefactor',NULL,'1',' ','1','1',' ',' ');

DELETE FROM T_BAS_IMPORTTEMPLATEENTRY WHERE FID = 1007301067354102784 and (fentryid = 1007300497859894274 or ffieldkey = 'inv_mappingtype');
INSERT INTO T_BAS_IMPORTTEMPLATEENTRY 
(FID,FENTRYID,FPARENTENTRYID,FSEQ,FFIELDKEY,FFIELDNAME,FMUSTINPUT,FDESCRIPTION,FISIMPORT,FISFIELD,FIMPORTPROP,FEXPORTPROP) VALUES 
(1007301067354102784,1007300497859894274,1007300497859894273,32,'inv_mappingtype',NULL,'1',' ','1','1',' ',' ');

DELETE FROM T_BAS_IMPORTTEMPLATEENTRY WHERE FID = 1007301067354102784 and (fentryid = 1007300497868285952 or ffieldkey = 'inv_goodnames');
INSERT INTO T_BAS_IMPORTTEMPLATEENTRY 
(FID,FENTRYID,FPARENTENTRYID,FSEQ,FFIELDKEY,FFIELDNAME,FMUSTINPUT,FDESCRIPTION,FISIMPORT,FISFIELD,FIMPORTPROP,FEXPORTPROP) VALUES 
(1007301067354102784,1007300497868285952,1007300497859894273,33,'inv_goodnames',NULL,'0',' ','0','1',' ',' ');


DELETE FROM T_BAS_IMPORTTEMPLATEENTRY WHERE FID = 1007299677210765312 and (fentryid = 1259354411881297922 or ffieldkey = 'mapfactor');
INSERT INTO T_BAS_IMPORTTEMPLATEENTRY 
(FID,FENTRYID,FPARENTENTRYID,FSEQ,FFIELDKEY,FFIELDNAME,FMUSTINPUT,FDESCRIPTION,FISIMPORT,FISFIELD,FIMPORTPROP,FEXPORTPROP) VALUES 
(1007299677210765312,1259354411881297922,1007299126381209600,32,'mapfactor',NULL,'0',' ','1','1',' ',' ');

DELETE FROM T_BAS_IMPORTTEMPLATEENTRY WHERE FID = 1007299677210765312 and (fentryid = 1259354411881334786 or ffieldkey = 'invoicefactor');
INSERT INTO T_BAS_IMPORTTEMPLATEENTRY 
(FID,FENTRYID,FPARENTENTRYID,FSEQ,FFIELDKEY,FFIELDNAME,FMUSTINPUT,FDESCRIPTION,FISIMPORT,FISFIELD,FIMPORTPROP,FEXPORTPROP) VALUES 
(1007299677210765312,1259354411881334786,1007299126381209600,31,'invoicefactor',NULL,'0',' ','1','1',' ',' ');

DELETE FROM T_BAS_IMPORTTEMPLATEENTRY WHERE FID = 1007299677210765312 and (fentryid = 1007299126381209601 or ffieldkey = 'inv_mappingtype');
INSERT INTO T_BAS_IMPORTTEMPLATEENTRY 
(FID,FENTRYID,FPARENTENTRYID,FSEQ,FFIELDKEY,FFIELDNAME,FMUSTINPUT,FDESCRIPTION,FISIMPORT,FISFIELD,FIMPORTPROP,FEXPORTPROP) VALUES 
(1007299677210765312,1007299126381209601,1007299126381209600,33,'inv_mappingtype',NULL,'0',' ','1','1',' ',' ');

DELETE FROM T_BAS_IMPORTTEMPLATEENTRY WHERE FID = 1007299677210765312 and (fentryid = 1007299126381206529 or ffieldkey = 'inv_goodnames');
INSERT INTO T_BAS_IMPORTTEMPLATEENTRY 
(FID,FENTRYID,FPARENTENTRYID,FSEQ,FFIELDKEY,FFIELDNAME,FMUSTINPUT,FDESCRIPTION,FISIMPORT,FISFIELD,FIMPORTPROP,FEXPORTPROP) VALUES 
(1007299677210765312,1007299126381206529,1007299126381209600,30,'inv_goodnames',NULL,'0',' ','0','1',' ',' ');

