1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66
|
CREATE TABLE [dbo].[ent_fac](
[n_fac] [int] NULL,
[c_edite] [char](1) NULL,
[c_agence] [char](4) NULL,
[c_client] [char](8) NULL,
[date_fac] [smalldatetime] NULL,
[c_confirme] [char](1) NULL,
[nom_client] [char](30) NULL,
[texte_libre] [char](70) NULL,
[c_per] [char](1) NULL,
[c_comptoir] [char](1) NULL,
[mt_ht] [float] NULL,
[mt_ttc] [float] NULL,
[mt_tva] [float] NULL,
[mt_mrem_ht] [float] NULL,
[mt_mrem_ttc] [float] NULL,
[mt_mrem_tva] [float] NULL,
[mt_remise] [float] NULL,
[mt_escompte] [float] NULL,
[mt_frais_fixe] [float] NULL,
[mt_pcp] [float] NULL,
[mt_pcp_ttc] [float] NULL,
[acompte] [float] NULL,
[mt_livraison] [float] NULL,
[mt_macc_ttc] [float] NULL,
[mt_mcp] [float] NULL,
[mt_mcp_ttc] [float] NULL,
[ttc_a_payer] [float] NULL,
[tx_tva_1] [float] NULL,
[tx_tva_2] [float] NULL,
[tx_tva_3] [float] NULL,
[tva_mt_ht_1] [float] NULL,
[tva_mt_ht_2] [float] NULL,
[tva_mt_ht_3] [float] NULL,
[tva_mt_tva_1] [float] NULL,
[tva_mt_tva_2] [float] NULL,
[tva_mt_tva_3] [float] NULL,
[c_retro] [char](1) NULL,
[c_export] [char](1) NULL,
[c_frais_fixe] [char](1) NULL,
[val_tx_escompte] [real] NULL,
[nb_division] [smallint] NULL,
[c_mod_rgl_1] [char](2) NULL,
[c_depart_1] [char](1) NULL,
[nb_jour_1] [int] NULL,
[jour_1] [char](2) NULL,
[c_mod_rgl_2] [char](2) NULL,
[c_depart_2] [char](1) NULL,
[nb_jour_2] [int] NULL,
[jour_2] [char](2) NULL,
[c_mod_rgl_3] [char](2) NULL,
[c_depart_3] [char](1) NULL,
[nb_jour_3] [int] NULL,
[jour_3] [char](2) NULL,
[percent_rgl_1] [real] NULL,
[percent_rgl_2] [real] NULL,
[percent_rgl_3] [real] NULL,
[date_rgl_1] [smalldatetime] NULL,
[date_rgl_2] [smalldatetime] NULL,
[date_rgl_3] [smalldatetime] NULL,
[mt_rgl_1] [float] NULL,
[mt_rgl_2] [float] NULL,
[mt_rgl_3] [float] NULL,
[n_tva_ff] [int] NULL
) ON [PRIMARY] |
Partager