begin; -- insert into parm_code(p_code,p_value,p_comment)values('SUPPLIER','400','Poste comptable par défaut pour les fournisseurs'); -- update tva_rate set tva_poste = '445,445' where tva_poste is null or tva_poste='' or tva_poste like '%,0'; update tva_rate set tva_label='FR_NOR' where tva_id= 101; update tva_rate set tva_label='FR_RED' where tva_id= 102; update tva_rate set tva_label='FR_SRED' where tva_id= 103; update tva_rate set tva_label='FR_ANC' where tva_id= 105; update tva_rate set tva_label='DOM' where tva_id= 201; update tva_rate set tva_label='DOM_NPR' where tva_id= 202; update tva_rate set tva_label='DOM_REDUIT' where tva_id= 203; update tva_rate set tva_label='DOM_I' where tva_id= 204; update tva_rate set tva_label='DOM_PRESSE' where tva_id= 205; update tva_rate set tva_label='DOM_OCTROI' where tva_id= 206; update tva_rate set tva_label='COR_I' where tva_id= 301; update tva_rate set tva_label='COR_II' where tva_id= 302; update tva_rate set tva_label='COR_III' where tva_id= 303; update tva_rate set tva_label='COR_IV' where tva_id= 304; update tva_rate set tva_label='INTRA' where tva_id= 401; update tva_rate set tva_label='DOM_IMMO' where tva_id= 207; update tva_rate set tva_label='COR_IMMO' where tva_id= 305; update tva_rate set tva_label='INTRA_IMMMO' where tva_id= 402; update tva_rate set tva_label='FRANCH' where tva_id= 501; update tva_rate set tva_label='EXPORT' where tva_id= 502; update tva_rate set tva_label='AUTRE' where tva_id= 503; update tva_rate set tva_label='INTRA_LIV' where tva_id= 504; update tva_rate set tva_label='FR_IMMO' where tva_id= 104; update tmp_pcmn set pcm_type='ACT' where pcm_val in ('445661','445662','445663'); update tva_rate set tva_poste='4456601,445701' where tva_id='104' and tva_poste='44562,0'; insert into tmp_pcmn (pcm_val,pcm_lib,pcm_val_parent,pcm_type) values (4456601,'TVA 19,6% - France métropolitaine - Taux immobilisations Déductible','4456','ACT'); insert into tmp_pcmn (pcm_val,pcm_lib,pcm_val_parent,pcm_type) values (445701,'TVA 19,6% - France métropolitaine - Taux immobilisations Collectée ','4457','PAS'); update tva_rate set tva_poste='4456602,445702' where tva_id='105' and tva_poste='445,445'; insert into tmp_pcmn (pcm_val,pcm_lib,pcm_val_parent,pcm_type) values (4456602,'TVA x% - France métropolitaine - Taux anciens Déductible','4456','ACT'); insert into tmp_pcmn (pcm_val,pcm_lib,pcm_val_parent,pcm_type) values (445702,'TVA x% - France métropolitaine - Taux anciens Collectée ','4457','PAS'); update tva_rate set tva_poste='4456603,445703' where tva_id='201' and tva_poste='445,445'; insert into tmp_pcmn (pcm_val,pcm_lib,pcm_val_parent,pcm_type) values (4456603,'TVA 8,5% - DOM - Taux normal Déductible','4456','ACT'); insert into tmp_pcmn (pcm_val,pcm_lib,pcm_val_parent,pcm_type) values (445703,'TVA 8,5% - DOM - Taux normal Collectée ','4457','PAS'); update tva_rate set tva_poste='4456604,445704' where tva_id='202' and tva_poste='445,445'; insert into tmp_pcmn (pcm_val,pcm_lib,pcm_val_parent,pcm_type) values (4456604,'TVA 8,5% - DOM - Taux normal NPR Déductible','4456','ACT'); insert into tmp_pcmn (pcm_val,pcm_lib,pcm_val_parent,pcm_type) values (445704,'TVA 8,5% - DOM - Taux normal NPR Collectée ','4457','PAS'); update tva_rate set tva_poste='4456605,445705' where tva_id='203' and tva_poste='445,445'; insert into tmp_pcmn (pcm_val,pcm_lib,pcm_val_parent,pcm_type) values (4456605,'TVA 2,1% - DOM - Taux réduit Déductible','4456','ACT'); insert into tmp_pcmn (pcm_val,pcm_lib,pcm_val_parent,pcm_type) values (445705,'TVA 2,1% - DOM - Taux réduit Collectée ','4457','PAS'); update tva_rate set tva_poste='4456606,445706' where tva_id='204' and tva_poste='445,445'; insert into tmp_pcmn (pcm_val,pcm_lib,pcm_val_parent,pcm_type) values (4456606,'TVA 1,75% - DOM - Taux I Déductible','4456','ACT'); insert into tmp_pcmn (pcm_val,pcm_lib,pcm_val_parent,pcm_type) values (445706,'TVA 1,75% - DOM - Taux I Collectée ','4457','PAS'); update tva_rate set tva_poste='4456607,445707' where tva_id='205' and tva_poste='445,445'; insert into tmp_pcmn (pcm_val,pcm_lib,pcm_val_parent,pcm_type) values (4456607,'TVA 1,05% - DOM - Taux publications de presse Déductible','4456','ACT'); insert into tmp_pcmn (pcm_val,pcm_lib,pcm_val_parent,pcm_type) values (445707,'TVA 1,05% - DOM - Taux publications de presse Collectée ','4457','PAS'); update tva_rate set tva_poste='4456608,445708' where tva_id='206' and tva_poste='445,445'; insert into tmp_pcmn (pcm_val,pcm_lib,pcm_val_parent,pcm_type) values (4456608,'TVA x% - DOM - Taux octroi de mer Déductible','4456','ACT'); insert into tmp_pcmn (pcm_val,pcm_lib,pcm_val_parent,pcm_type) values (445708,'TVA x% - DOM - Taux octroi de mer Collectée ','4457','PAS'); update tva_rate set tva_poste='4456609,445709' where tva_id='207' and tva_poste='445,0'; insert into tmp_pcmn (pcm_val,pcm_lib,pcm_val_parent,pcm_type) values (4456609,'TVA x% - DOM - Taux immobilisations Déductible','4456','ACT'); insert into tmp_pcmn (pcm_val,pcm_lib,pcm_val_parent,pcm_type) values (445709,'TVA x% - DOM - Taux immobilisations Collectée ','4457','PAS'); update tva_rate set tva_poste='44566010,4457010' where tva_id='301' and tva_poste='445,445'; insert into tmp_pcmn (pcm_val,pcm_lib,pcm_val_parent,pcm_type) values (44566010,'TVA 13% - Corse - Taux I Déductible','4456','ACT'); insert into tmp_pcmn (pcm_val,pcm_lib,pcm_val_parent,pcm_type) values (4457010,'TVA 13% - Corse - Taux I Collectée ','4457','PAS'); update tva_rate set tva_poste='44566011,4457011' where tva_id='302' and tva_poste='445,445'; insert into tmp_pcmn (pcm_val,pcm_lib,pcm_val_parent,pcm_type) values (44566011,'TVA 8% - Corse - Taux II Déductible','4456','ACT'); insert into tmp_pcmn (pcm_val,pcm_lib,pcm_val_parent,pcm_type) values (4457011,'TVA 8% - Corse - Taux II Collectée ','4457','PAS'); update tva_rate set tva_poste='44566012,4457012' where tva_id='303' and tva_poste='445,445'; insert into tmp_pcmn (pcm_val,pcm_lib,pcm_val_parent,pcm_type) values (44566012,'TVA 2,1% - Corse - Taux III Déductible','4456','ACT'); insert into tmp_pcmn (pcm_val,pcm_lib,pcm_val_parent,pcm_type) values (4457012,'TVA 2,1% - Corse - Taux III Collectée ','4457','PAS'); update tva_rate set tva_poste='44566013,4457013' where tva_id='304' and tva_poste='445,445'; insert into tmp_pcmn (pcm_val,pcm_lib,pcm_val_parent,pcm_type) values (44566013,'TVA 0,9% - Corse - Taux IV Déductible','4456','ACT'); insert into tmp_pcmn (pcm_val,pcm_lib,pcm_val_parent,pcm_type) values (4457013,'TVA 0,9% - Corse - Taux IV Collectée ','4457','PAS'); update tva_rate set tva_poste='44566014,4457014' where tva_id='305' and tva_poste='445,0'; insert into tmp_pcmn (pcm_val,pcm_lib,pcm_val_parent,pcm_type) values (44566014,'TVA x% - Corse - Taux immobilisations Déductible','4456','ACT'); insert into tmp_pcmn (pcm_val,pcm_lib,pcm_val_parent,pcm_type) values (4457014,'TVA x% - Corse - Taux immobilisations Collectée ','4457','PAS'); update tva_rate set tva_poste='44566015,4457015' where tva_id='401' and tva_poste='445,445'; insert into tmp_pcmn (pcm_val,pcm_lib,pcm_val_parent,pcm_type) values (44566015,'TVA x% - Acquisitions intracommunautaires/Pays Déductible','4456','ACT'); insert into tmp_pcmn (pcm_val,pcm_lib,pcm_val_parent,pcm_type) values (4457015,'TVA x% - Acquisitions intracommunautaires/Pays Collectée ','4457','PAS'); update tva_rate set tva_poste='44566016,4457016' where tva_id='402' and tva_poste='445,0'; insert into tmp_pcmn (pcm_val,pcm_lib,pcm_val_parent,pcm_type) values (44566016,'TVA x% - Acquisitions intracommunautaires immobilisations/Pays Déductible','4456','ACT'); insert into tmp_pcmn (pcm_val,pcm_lib,pcm_val_parent,pcm_type) values (4457016,'TVA x% - Acquisitions intracommunautaires immobilisations/Pays Collectée ','4457','PAS'); update tva_rate set tva_poste='44566017,4457017' where tva_id='501' and tva_poste=''; insert into tmp_pcmn (pcm_val,pcm_lib,pcm_val_parent,pcm_type) values (44566017,'TVA x% - Non imposable : Achats en franchise Déductible','4456','ACT'); insert into tmp_pcmn (pcm_val,pcm_lib,pcm_val_parent,pcm_type) values (4457017,'TVA x% - Non imposable : Achats en franchise Collectée ','4457','PAS'); update tva_rate set tva_poste='44566018,4457018' where tva_id='502' and tva_poste=''; insert into tmp_pcmn (pcm_val,pcm_lib,pcm_val_parent,pcm_type) values (44566018,'TVA x% - Non imposable : Exports hors CE/Pays Déductible','4456','ACT'); insert into tmp_pcmn (pcm_val,pcm_lib,pcm_val_parent,pcm_type) values (4457018,'TVA x% - Non imposable : Exports hors CE/Pays Collectée ','4457','PAS'); update tva_rate set tva_poste='44566019,4457019' where tva_id='503' and tva_poste=''; insert into tmp_pcmn (pcm_val,pcm_lib,pcm_val_parent,pcm_type) values (44566019,'TVA x% - Non imposable : Autres opérations Déductible','4456','ACT'); insert into tmp_pcmn (pcm_val,pcm_lib,pcm_val_parent,pcm_type) values (4457019,'TVA x% - Non imposable : Autres opérations Collectée ','4457','PAS'); update tva_rate set tva_poste='44566020,4457020' where tva_id='504' and tva_poste=''; insert into tmp_pcmn (pcm_val,pcm_lib,pcm_val_parent,pcm_type) values (44566020,'TVA x% - Non imposable : Livraisons intracommunautaires/Pays Déductible','4456','ACT'); insert into tmp_pcmn (pcm_val,pcm_lib,pcm_val_parent,pcm_type) values (4457020,'TVA x% - Non imposable : Livraisons intracommunautaires/Pays Collectée ','4457','PAS'); update version set val=62; commit;