From cff6895a5a071402c19001edbd45c767851ad134 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 10 Sep 2008 22:48:43 +0000 Subject: [PATCH] Remove files not required. Now conversion between database syntax is done in real time during install. --- mssql/Makefile | 100 -- mssql/README | 13 +- mssql/data/data.sql | 1577 ----------------- mssql/tables/llx_accountingaccount.key.sql | 27 - mssql/tables/llx_accountingaccount.sql | 31 - mssql/tables/llx_accountingdebcred.sql | 28 - mssql/tables/llx_accountingsystem.sql | 31 - mssql/tables/llx_accountingtransaction.sql | 33 - mssql/tables/llx_action_def.sql | 33 - mssql/tables/llx_actioncomm.key.sql | 27 - mssql/tables/llx_actioncomm.sql | 60 - mssql/tables/llx_adherent.sql | 62 - mssql/tables/llx_adherent_options.sql | 31 - mssql/tables/llx_adherent_options_label.sql | 29 - mssql/tables/llx_adherent_type.key.sql | 24 - mssql/tables/llx_adherent_type.sql | 38 - mssql/tables/llx_appro.sql | 33 - mssql/tables/llx_bank.sql | 44 - mssql/tables/llx_bank_account.key.sql | 24 - mssql/tables/llx_bank_account.sql | 54 - mssql/tables/llx_bank_categ.sql | 25 - mssql/tables/llx_bank_class.sql | 27 - mssql/tables/llx_bank_url.key.sql | 26 - mssql/tables/llx_bank_url.sql | 32 - mssql/tables/llx_bookmark.key.sql | 25 - mssql/tables/llx_bookmark.sql | 31 - mssql/tables/llx_bordereau_cheque.sql | 37 - mssql/tables/llx_boxes.key.sql | 30 - mssql/tables/llx_boxes.sql | 35 - mssql/tables/llx_boxes_def.sql | 29 - mssql/tables/llx_c_actioncomm.sql | 33 - mssql/tables/llx_c_chargesociales.sql | 33 - mssql/tables/llx_c_civilite.sql | 30 - mssql/tables/llx_c_currencies.key.sql | 24 - mssql/tables/llx_c_currencies.sql | 30 - mssql/tables/llx_c_departements.key.sql | 27 - mssql/tables/llx_c_departements.sql | 37 - mssql/tables/llx_c_ecotaxe.sql | 32 - mssql/tables/llx_c_effectif.sql | 31 - mssql/tables/llx_c_forme_juridique.sql | 33 - .../llx_c_methode_commande_fournisseur.sql | 32 - mssql/tables/llx_c_paiement.sql | 40 - mssql/tables/llx_c_pays.key.sql | 26 - mssql/tables/llx_c_pays.sql | 31 - mssql/tables/llx_c_propalst.sql | 31 - mssql/tables/llx_c_regions.key.sql | 26 - mssql/tables/llx_c_regions.sql | 34 - mssql/tables/llx_c_stcomm.sql | 31 - mssql/tables/llx_c_tva.sql | 33 - mssql/tables/llx_c_type_contact.key.sql | 33 - mssql/tables/llx_c_type_contact.sql | 41 - mssql/tables/llx_c_typent.sql | 30 - mssql/tables/llx_categorie.key.sql | 20 - mssql/tables/llx_categorie.sql | 32 - .../tables/llx_categorie_association.key.sql | 27 - mssql/tables/llx_categorie_association.sql | 25 - mssql/tables/llx_categorie_fournisseur.sql | 28 - mssql/tables/llx_categorie_product.key.sql | 27 - mssql/tables/llx_categorie_product.sql | 25 - mssql/tables/llx_categorie_societe.key.sql | 28 - mssql/tables/llx_categorie_societe.sql | 23 - mssql/tables/llx_chargesociales.sql | 35 - mssql/tables/llx_co_fa.sql | 30 - mssql/tables/llx_co_pr.sql | 27 - mssql/tables/llx_commande.key.sql | 29 - mssql/tables/llx_commande.sql | 60 - mssql/tables/llx_commande_fournisseur.key.sql | 31 - mssql/tables/llx_commande_fournisseur.sql | 54 - .../llx_commande_fournisseur_dispatch.key.sql | 22 - .../llx_commande_fournisseur_dispatch.sql | 31 - mssql/tables/llx_commande_fournisseur_log.sql | 31 - mssql/tables/llx_commande_fournisseurdet.sql | 40 - mssql/tables/llx_commandedet.key.sql | 28 - mssql/tables/llx_commandedet.sql | 50 - mssql/tables/llx_compta.sql | 36 - mssql/tables/llx_compta_account.sql | 32 - mssql/tables/llx_compta_compte_generaux.sql | 33 - mssql/tables/llx_cond_reglement.sql | 34 - mssql/tables/llx_const.sql | 37 - mssql/tables/llx_contrat.key.sql | 34 - mssql/tables/llx_contrat.sql | 45 - mssql/tables/llx_contratdet.key.sql | 32 - mssql/tables/llx_contratdet.sql | 59 - mssql/tables/llx_contratdet_log.key.sql | 26 - mssql/tables/llx_contratdet_log.sql | 33 - mssql/tables/llx_cotisation.key.sql | 23 - mssql/tables/llx_cotisation.sql | 32 - mssql/tables/llx_deplacement.sql | 35 - mssql/tables/llx_document.sql | 33 - mssql/tables/llx_document_generator.sql | 29 - mssql/tables/llx_document_model.key.sql | 24 - mssql/tables/llx_document_model.sql | 33 - mssql/tables/llx_dolibarr_modules.sql | 32 - mssql/tables/llx_domain.sql | 30 - mssql/tables/llx_don.sql | 45 - mssql/tables/llx_don_projet.sql | 31 - mssql/tables/llx_droitpret_rapport.sql | 32 - mssql/tables/llx_element_contact.key.sql | 27 - mssql/tables/llx_element_contact.sql | 36 - mssql/tables/llx_energie_compteur.sql | 32 - mssql/tables/llx_energie_compteur_groupe.sql | 27 - mssql/tables/llx_energie_compteur_releve.sql | 33 - mssql/tables/llx_energie_groupe.sql | 31 - mssql/tables/llx_entrepot.sql | 40 - mssql/tables/llx_entrepot_valorisation.sql | 32 - mssql/tables/llx_expedition.sql | 44 - mssql/tables/llx_expedition_methode.sql | 31 - mssql/tables/llx_expeditiondet.sql | 31 - mssql/tables/llx_export_compta.sql | 32 - mssql/tables/llx_export_model.key.sql | 25 - mssql/tables/llx_export_model.sql | 33 - mssql/tables/llx_fa_pr.sql | 27 - mssql/tables/llx_facture.key.sql | 37 - mssql/tables/llx_facture.sql | 62 - mssql/tables/llx_facture_fourn.key.sql | 36 - mssql/tables/llx_facture_fourn.sql | 53 - mssql/tables/llx_facture_fourn_det.key.sql | 27 - mssql/tables/llx_facture_fourn_det.sql | 35 - mssql/tables/llx_facture_rec.key.sql | 33 - mssql/tables/llx_facture_rec.sql | 51 - mssql/tables/llx_facture_stats.sql | 29 - mssql/tables/llx_facturedet.key.sql | 27 - mssql/tables/llx_facturedet.sql | 46 - mssql/tables/llx_facturedet_rec.sql | 37 - mssql/tables/llx_fichinter.key.sql | 25 - mssql/tables/llx_fichinter.sql | 44 - mssql/tables/llx_fichinterdet.sql | 31 - mssql/tables/llx_fournisseur_ca.sql | 31 - mssql/tables/llx_groupesociete.sql | 35 - mssql/tables/llx_groupesociete_remise.sql | 36 - mssql/tables/llx_livraison.sql | 46 - mssql/tables/llx_livraisondet.sql | 30 - mssql/tables/llx_mailing.sql | 55 - mssql/tables/llx_mailing_cibles.key.sql | 24 - mssql/tables/llx_mailing_cibles.sql | 37 - mssql/tables/llx_menu.sql | 45 - mssql/tables/llx_menu_const.key.sql | 29 - mssql/tables/llx_menu_const.sql | 30 - mssql/tables/llx_menu_constraint.sql | 27 - mssql/tables/llx_notify.sql | 32 - mssql/tables/llx_notify_def.sql | 31 - mssql/tables/llx_osc_categories.sql | 30 - mssql/tables/llx_osc_customer.key.sql | 12 - mssql/tables/llx_osc_customer.sql | 29 - mssql/tables/llx_osc_order.sql | 29 - mssql/tables/llx_osc_product.sql | 29 - mssql/tables/llx_paiement.sql | 44 - mssql/tables/llx_paiement_facture.key.sql | 31 - mssql/tables/llx_paiement_facture.sql | 28 - mssql/tables/llx_paiementcharge.sql | 37 - mssql/tables/llx_paiementfourn.sql | 37 - .../llx_paiementfourn_facturefourn.key.sql | 25 - .../tables/llx_paiementfourn_facturefourn.sql | 30 - mssql/tables/llx_prelevement_bons.sql | 43 - mssql/tables/llx_prelevement_facture.key.sql | 29 - mssql/tables/llx_prelevement_facture.sql | 30 - .../llx_prelevement_facture_demande.sql | 40 - mssql/tables/llx_prelevement_lignes.key.sql | 29 - mssql/tables/llx_prelevement_lignes.sql | 40 - .../tables/llx_prelevement_notifications.sql | 35 - mssql/tables/llx_prelevement_rejet.sql | 35 - mssql/tables/llx_product.key.sql | 25 - mssql/tables/llx_product.sql | 51 - mssql/tables/llx_product_ca.sql | 30 - mssql/tables/llx_product_cnv_livre.sql | 46 - .../tables/llx_product_cnv_livre_contrat.sql | 37 - mssql/tables/llx_product_det.sql | 31 - mssql/tables/llx_product_fournisseur.sql | 36 - .../llx_product_fournisseur_price.key.sql | 33 - .../tables/llx_product_fournisseur_price.sql | 36 - .../llx_product_fournisseur_price_log.sql | 33 - mssql/tables/llx_product_price.sql | 37 - mssql/tables/llx_product_stock.sql | 34 - mssql/tables/llx_product_subproduct.sql | 30 - mssql/tables/llx_projet.sql | 37 - mssql/tables/llx_projet_task.sql | 38 - mssql/tables/llx_projet_task_actors.sql | 32 - mssql/tables/llx_projet_task_time.sql | 34 - mssql/tables/llx_propal.key.sql | 29 - mssql/tables/llx_propal.sql | 58 - mssql/tables/llx_propaldet.sql | 42 - mssql/tables/llx_rights_def.sql | 33 - mssql/tables/llx_societe.key.sql | 28 - mssql/tables/llx_societe.sql | 72 - .../tables/llx_societe_adresse_livraison.sql | 39 - mssql/tables/llx_societe_commerciaux.sql | 30 - mssql/tables/llx_societe_consult.sql | 32 - mssql/tables/llx_societe_prices.sql | 31 - mssql/tables/llx_societe_remise.sql | 35 - .../tables/llx_societe_remise_except.key.sql | 39 - mssql/tables/llx_societe_remise_except.sql | 38 - mssql/tables/llx_societe_rib.sql | 44 - mssql/tables/llx_socpeople.key.sql | 25 - mssql/tables/llx_socpeople.sql | 47 - mssql/tables/llx_socstatutlog.sql | 30 - mssql/tables/llx_stock_mouvement.sql | 38 - mssql/tables/llx_stock_valorisation.sql | 39 - mssql/tables/llx_transaction_bplc.sql | 36 - mssql/tables/llx_tva.sql | 32 - mssql/tables/llx_user.key.sql | 31 - mssql/tables/llx_user.sql | 96 - mssql/tables/llx_user_alert.sql | 30 - mssql/tables/llx_user_clicktodial.sql | 32 - mssql/tables/llx_user_entrepot.sql | 30 - mssql/tables/llx_user_param.sql | 32 - mssql/tables/llx_user_rights.key.sql | 29 - mssql/tables/llx_user_rights.sql | 30 - mssql/tables/llx_usergroup.sql | 32 - mssql/tables/llx_usergroup_rights.key.sql | 28 - mssql/tables/llx_usergroup_rights.sql | 31 - mssql/tables/llx_usergroup_user.sql | 30 - mssql/tables/llx_voyage.sql | 45 - mssql/tables/llx_voyage_reduc.sql | 35 - mysql/README | 13 +- pgsql/Makefile | 92 - pgsql/README | 12 +- 216 files changed, 21 insertions(+), 8965 deletions(-) delete mode 100644 mssql/Makefile delete mode 100644 mssql/data/data.sql delete mode 100644 mssql/tables/llx_accountingaccount.key.sql delete mode 100644 mssql/tables/llx_accountingaccount.sql delete mode 100644 mssql/tables/llx_accountingdebcred.sql delete mode 100644 mssql/tables/llx_accountingsystem.sql delete mode 100644 mssql/tables/llx_accountingtransaction.sql delete mode 100644 mssql/tables/llx_action_def.sql delete mode 100644 mssql/tables/llx_actioncomm.key.sql delete mode 100644 mssql/tables/llx_actioncomm.sql delete mode 100644 mssql/tables/llx_adherent.sql delete mode 100644 mssql/tables/llx_adherent_options.sql delete mode 100644 mssql/tables/llx_adherent_options_label.sql delete mode 100644 mssql/tables/llx_adherent_type.key.sql delete mode 100644 mssql/tables/llx_adherent_type.sql delete mode 100644 mssql/tables/llx_appro.sql delete mode 100644 mssql/tables/llx_bank.sql delete mode 100644 mssql/tables/llx_bank_account.key.sql delete mode 100644 mssql/tables/llx_bank_account.sql delete mode 100644 mssql/tables/llx_bank_categ.sql delete mode 100644 mssql/tables/llx_bank_class.sql delete mode 100644 mssql/tables/llx_bank_url.key.sql delete mode 100644 mssql/tables/llx_bank_url.sql delete mode 100644 mssql/tables/llx_bookmark.key.sql delete mode 100644 mssql/tables/llx_bookmark.sql delete mode 100644 mssql/tables/llx_bordereau_cheque.sql delete mode 100644 mssql/tables/llx_boxes.key.sql delete mode 100644 mssql/tables/llx_boxes.sql delete mode 100644 mssql/tables/llx_boxes_def.sql delete mode 100644 mssql/tables/llx_c_actioncomm.sql delete mode 100644 mssql/tables/llx_c_chargesociales.sql delete mode 100644 mssql/tables/llx_c_civilite.sql delete mode 100644 mssql/tables/llx_c_currencies.key.sql delete mode 100644 mssql/tables/llx_c_currencies.sql delete mode 100644 mssql/tables/llx_c_departements.key.sql delete mode 100644 mssql/tables/llx_c_departements.sql delete mode 100644 mssql/tables/llx_c_ecotaxe.sql delete mode 100644 mssql/tables/llx_c_effectif.sql delete mode 100644 mssql/tables/llx_c_forme_juridique.sql delete mode 100644 mssql/tables/llx_c_methode_commande_fournisseur.sql delete mode 100644 mssql/tables/llx_c_paiement.sql delete mode 100644 mssql/tables/llx_c_pays.key.sql delete mode 100644 mssql/tables/llx_c_pays.sql delete mode 100644 mssql/tables/llx_c_propalst.sql delete mode 100644 mssql/tables/llx_c_regions.key.sql delete mode 100644 mssql/tables/llx_c_regions.sql delete mode 100644 mssql/tables/llx_c_stcomm.sql delete mode 100644 mssql/tables/llx_c_tva.sql delete mode 100644 mssql/tables/llx_c_type_contact.key.sql delete mode 100644 mssql/tables/llx_c_type_contact.sql delete mode 100644 mssql/tables/llx_c_typent.sql delete mode 100644 mssql/tables/llx_categorie.key.sql delete mode 100644 mssql/tables/llx_categorie.sql delete mode 100644 mssql/tables/llx_categorie_association.key.sql delete mode 100644 mssql/tables/llx_categorie_association.sql delete mode 100644 mssql/tables/llx_categorie_fournisseur.sql delete mode 100644 mssql/tables/llx_categorie_product.key.sql delete mode 100644 mssql/tables/llx_categorie_product.sql delete mode 100644 mssql/tables/llx_categorie_societe.key.sql delete mode 100644 mssql/tables/llx_categorie_societe.sql delete mode 100644 mssql/tables/llx_chargesociales.sql delete mode 100644 mssql/tables/llx_co_fa.sql delete mode 100644 mssql/tables/llx_co_pr.sql delete mode 100644 mssql/tables/llx_commande.key.sql delete mode 100644 mssql/tables/llx_commande.sql delete mode 100644 mssql/tables/llx_commande_fournisseur.key.sql delete mode 100644 mssql/tables/llx_commande_fournisseur.sql delete mode 100644 mssql/tables/llx_commande_fournisseur_dispatch.key.sql delete mode 100644 mssql/tables/llx_commande_fournisseur_dispatch.sql delete mode 100644 mssql/tables/llx_commande_fournisseur_log.sql delete mode 100644 mssql/tables/llx_commande_fournisseurdet.sql delete mode 100644 mssql/tables/llx_commandedet.key.sql delete mode 100644 mssql/tables/llx_commandedet.sql delete mode 100644 mssql/tables/llx_compta.sql delete mode 100644 mssql/tables/llx_compta_account.sql delete mode 100644 mssql/tables/llx_compta_compte_generaux.sql delete mode 100644 mssql/tables/llx_cond_reglement.sql delete mode 100644 mssql/tables/llx_const.sql delete mode 100644 mssql/tables/llx_contrat.key.sql delete mode 100644 mssql/tables/llx_contrat.sql delete mode 100644 mssql/tables/llx_contratdet.key.sql delete mode 100644 mssql/tables/llx_contratdet.sql delete mode 100644 mssql/tables/llx_contratdet_log.key.sql delete mode 100644 mssql/tables/llx_contratdet_log.sql delete mode 100644 mssql/tables/llx_cotisation.key.sql delete mode 100644 mssql/tables/llx_cotisation.sql delete mode 100644 mssql/tables/llx_deplacement.sql delete mode 100644 mssql/tables/llx_document.sql delete mode 100644 mssql/tables/llx_document_generator.sql delete mode 100644 mssql/tables/llx_document_model.key.sql delete mode 100644 mssql/tables/llx_document_model.sql delete mode 100644 mssql/tables/llx_dolibarr_modules.sql delete mode 100644 mssql/tables/llx_domain.sql delete mode 100644 mssql/tables/llx_don.sql delete mode 100644 mssql/tables/llx_don_projet.sql delete mode 100644 mssql/tables/llx_droitpret_rapport.sql delete mode 100644 mssql/tables/llx_element_contact.key.sql delete mode 100644 mssql/tables/llx_element_contact.sql delete mode 100644 mssql/tables/llx_energie_compteur.sql delete mode 100644 mssql/tables/llx_energie_compteur_groupe.sql delete mode 100644 mssql/tables/llx_energie_compteur_releve.sql delete mode 100644 mssql/tables/llx_energie_groupe.sql delete mode 100644 mssql/tables/llx_entrepot.sql delete mode 100644 mssql/tables/llx_entrepot_valorisation.sql delete mode 100644 mssql/tables/llx_expedition.sql delete mode 100644 mssql/tables/llx_expedition_methode.sql delete mode 100644 mssql/tables/llx_expeditiondet.sql delete mode 100644 mssql/tables/llx_export_compta.sql delete mode 100644 mssql/tables/llx_export_model.key.sql delete mode 100644 mssql/tables/llx_export_model.sql delete mode 100644 mssql/tables/llx_fa_pr.sql delete mode 100644 mssql/tables/llx_facture.key.sql delete mode 100644 mssql/tables/llx_facture.sql delete mode 100644 mssql/tables/llx_facture_fourn.key.sql delete mode 100644 mssql/tables/llx_facture_fourn.sql delete mode 100644 mssql/tables/llx_facture_fourn_det.key.sql delete mode 100644 mssql/tables/llx_facture_fourn_det.sql delete mode 100644 mssql/tables/llx_facture_rec.key.sql delete mode 100644 mssql/tables/llx_facture_rec.sql delete mode 100644 mssql/tables/llx_facture_stats.sql delete mode 100644 mssql/tables/llx_facturedet.key.sql delete mode 100644 mssql/tables/llx_facturedet.sql delete mode 100644 mssql/tables/llx_facturedet_rec.sql delete mode 100644 mssql/tables/llx_fichinter.key.sql delete mode 100644 mssql/tables/llx_fichinter.sql delete mode 100644 mssql/tables/llx_fichinterdet.sql delete mode 100644 mssql/tables/llx_fournisseur_ca.sql delete mode 100644 mssql/tables/llx_groupesociete.sql delete mode 100644 mssql/tables/llx_groupesociete_remise.sql delete mode 100644 mssql/tables/llx_livraison.sql delete mode 100644 mssql/tables/llx_livraisondet.sql delete mode 100644 mssql/tables/llx_mailing.sql delete mode 100644 mssql/tables/llx_mailing_cibles.key.sql delete mode 100644 mssql/tables/llx_mailing_cibles.sql delete mode 100644 mssql/tables/llx_menu.sql delete mode 100644 mssql/tables/llx_menu_const.key.sql delete mode 100644 mssql/tables/llx_menu_const.sql delete mode 100644 mssql/tables/llx_menu_constraint.sql delete mode 100644 mssql/tables/llx_notify.sql delete mode 100644 mssql/tables/llx_notify_def.sql delete mode 100644 mssql/tables/llx_osc_categories.sql delete mode 100644 mssql/tables/llx_osc_customer.key.sql delete mode 100644 mssql/tables/llx_osc_customer.sql delete mode 100644 mssql/tables/llx_osc_order.sql delete mode 100644 mssql/tables/llx_osc_product.sql delete mode 100644 mssql/tables/llx_paiement.sql delete mode 100644 mssql/tables/llx_paiement_facture.key.sql delete mode 100644 mssql/tables/llx_paiement_facture.sql delete mode 100644 mssql/tables/llx_paiementcharge.sql delete mode 100644 mssql/tables/llx_paiementfourn.sql delete mode 100644 mssql/tables/llx_paiementfourn_facturefourn.key.sql delete mode 100644 mssql/tables/llx_paiementfourn_facturefourn.sql delete mode 100644 mssql/tables/llx_prelevement_bons.sql delete mode 100644 mssql/tables/llx_prelevement_facture.key.sql delete mode 100644 mssql/tables/llx_prelevement_facture.sql delete mode 100644 mssql/tables/llx_prelevement_facture_demande.sql delete mode 100644 mssql/tables/llx_prelevement_lignes.key.sql delete mode 100644 mssql/tables/llx_prelevement_lignes.sql delete mode 100644 mssql/tables/llx_prelevement_notifications.sql delete mode 100644 mssql/tables/llx_prelevement_rejet.sql delete mode 100644 mssql/tables/llx_product.key.sql delete mode 100644 mssql/tables/llx_product.sql delete mode 100644 mssql/tables/llx_product_ca.sql delete mode 100644 mssql/tables/llx_product_cnv_livre.sql delete mode 100644 mssql/tables/llx_product_cnv_livre_contrat.sql delete mode 100644 mssql/tables/llx_product_det.sql delete mode 100644 mssql/tables/llx_product_fournisseur.sql delete mode 100644 mssql/tables/llx_product_fournisseur_price.key.sql delete mode 100644 mssql/tables/llx_product_fournisseur_price.sql delete mode 100644 mssql/tables/llx_product_fournisseur_price_log.sql delete mode 100644 mssql/tables/llx_product_price.sql delete mode 100644 mssql/tables/llx_product_stock.sql delete mode 100644 mssql/tables/llx_product_subproduct.sql delete mode 100644 mssql/tables/llx_projet.sql delete mode 100644 mssql/tables/llx_projet_task.sql delete mode 100644 mssql/tables/llx_projet_task_actors.sql delete mode 100644 mssql/tables/llx_projet_task_time.sql delete mode 100644 mssql/tables/llx_propal.key.sql delete mode 100644 mssql/tables/llx_propal.sql delete mode 100644 mssql/tables/llx_propaldet.sql delete mode 100644 mssql/tables/llx_rights_def.sql delete mode 100644 mssql/tables/llx_societe.key.sql delete mode 100644 mssql/tables/llx_societe.sql delete mode 100644 mssql/tables/llx_societe_adresse_livraison.sql delete mode 100644 mssql/tables/llx_societe_commerciaux.sql delete mode 100644 mssql/tables/llx_societe_consult.sql delete mode 100644 mssql/tables/llx_societe_prices.sql delete mode 100644 mssql/tables/llx_societe_remise.sql delete mode 100644 mssql/tables/llx_societe_remise_except.key.sql delete mode 100644 mssql/tables/llx_societe_remise_except.sql delete mode 100644 mssql/tables/llx_societe_rib.sql delete mode 100644 mssql/tables/llx_socpeople.key.sql delete mode 100644 mssql/tables/llx_socpeople.sql delete mode 100644 mssql/tables/llx_socstatutlog.sql delete mode 100644 mssql/tables/llx_stock_mouvement.sql delete mode 100644 mssql/tables/llx_stock_valorisation.sql delete mode 100644 mssql/tables/llx_transaction_bplc.sql delete mode 100644 mssql/tables/llx_tva.sql delete mode 100644 mssql/tables/llx_user.key.sql delete mode 100644 mssql/tables/llx_user.sql delete mode 100644 mssql/tables/llx_user_alert.sql delete mode 100644 mssql/tables/llx_user_clicktodial.sql delete mode 100644 mssql/tables/llx_user_entrepot.sql delete mode 100644 mssql/tables/llx_user_param.sql delete mode 100644 mssql/tables/llx_user_rights.key.sql delete mode 100644 mssql/tables/llx_user_rights.sql delete mode 100644 mssql/tables/llx_usergroup.sql delete mode 100644 mssql/tables/llx_usergroup_rights.key.sql delete mode 100644 mssql/tables/llx_usergroup_rights.sql delete mode 100644 mssql/tables/llx_usergroup_user.sql delete mode 100644 mssql/tables/llx_voyage.sql delete mode 100644 mssql/tables/llx_voyage_reduc.sql delete mode 100644 pgsql/Makefile diff --git a/mssql/Makefile b/mssql/Makefile deleted file mode 100644 index 1d87115be0e..00000000000 --- a/mssql/Makefile +++ /dev/null @@ -1,100 +0,0 @@ -# Copyright (C) 2001-2003 Rodolphe Quiedeville -# Copyright (C) 2005 Laurent Destailleur -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. -# -# $Id$ -# $Source$ -# -# ********************************************************************** -# Ce makefile permet d'initialiser la base de donnée de dolibarr en manuel. -# Il n'est utile que si vous n'utilisez pas l'installateur automatique -# accessible à http://localhost/dolibarr/install/ -# -# Pour une installation manuelle, créer la base dolibarr puis faire: -# make mssql.sql -# mysql dolibarr < mssql.sql -# -# Le script mssql.sql cotient tous le ordres sql pour créer la base -# Tables + Index et Clés + Données -# -# ********************************************************************** - -# Penser à rajouter le commutateur -S pour un serveur autre que localhost -# Vous pouvez remplacer -E par -U et -P si vous voulez utiliser l'authentification SQL - -# Vous aurez besoin des outils GNU précompilé pour Windows (provenant de Cygwin par exemple) pour générer et -# exécuter ce script -SQL=sqlcmd -E -Q -BASE=dolibarr -OPTIONS= - -FIND=find -#FIND="c:/Program files/cygwin/bin/find" - - -TABLES=$(shell $(FIND) tables/ -name "*sql") - - -all: - cat README - -load: - $(SQL) $(OPTIONS) $(BASE) < data/data.sql - -dev: - cd data \ - && make dev BASE=$(BASE) OPTIONS=$(OPTIONS) - - - -dropall: dropdb droppriv - -droppriv: - $(SQL) $(OPTIONS) $(SQL) -e "delete from db where Db='$(BASE)' ; " - -dropdb: - $(SQL) $(OPTIONS) $(SQL) -f -e "drop database if exists $(BASE) ; " - - - -create: createdb createpriv - -createdb: - $(SQL) $(OPTIONS) "create database $(BASE) ; " - -createpriv: - $(SQL) $(OPTIONS) "insert into db (Host, Db) values ('localhost', '$(BASE)') ; " - $(SQL) $(OPTIONS) "update db set select_priv = 'Y' where db='$(BASE)' ; " - $(SQL) $(OPTIONS) "update db set insert_priv = 'Y' where db='$(BASE)' ; " - $(SQL) $(OPTIONS) "update db set update_priv = 'Y' where db='$(BASE)' ; " - $(SQL) $(OPTIONS) "update db set delete_priv = 'Y' where db='$(BASE)' ; " - $(SQL) $(OPTIONS) "update db set create_priv = 'Y' where db='$(BASE)' ; " - $(SQL) $(OPTIONS) "update db set drop_priv = 'Y' where db='$(BASE)' ; " - $(SQL) $(OPTIONS) "update db set grant_priv = 'Y' where db='$(BASE)' ; " - $(SQL) $(OPTIONS) "update db set references_priv = 'Y' where db='$(BASE)' ; " - $(SQL) $(OPTIONS) "update db set index_priv = 'Y' where db='$(BASE)' ; " - $(SQL) $(OPTIONS) "update db set alter_priv = 'Y' where db='$(BASE)' ; " - $(SQL) $(OPTIONS) "flush privileges ; " - - - -mssql.sql: $(TABLES) data/data.sql Makefile - echo "-- Fichier généré par make mssql.sql" > mssql.sql - echo "-- Contient les ordres de creation des tables + les clés + les données" >> mssql.sql - echo "-- ;" >> mssql.sql - $(FIND) tables/ -name "*sql" | grep -v "key.sql" | xargs cat | grep -v "^--" | cut -d "-" -f 1 >> mssql.sql - $(FIND) tables/ -name "*sql" | grep "key.sql" | xargs cat | grep -v "^--" | cut -d "-" -f 1 >> mssql.sql - cat data/data.sql | grep -v ^-- >> mssql.sql diff --git a/mssql/README b/mssql/README index 0520c3b5d02..f406722e85e 100644 --- a/mssql/README +++ b/mssql/README @@ -1,8 +1,9 @@ -# Makefile Options -##################### +# README +######## -- mssql.sql Génère un fichier sql unique pour l'installation (Contient les - ordres de création des tables + clés et index + données) - -- load Charge les données minimales définies dans data/data.sql +This directory contains files to create functions required +to have MsSql database being compatible with Dolibarr. +Note that all scripts to create database and to load initial data +are the mysql scripts that are converted on the fly by the driver +to be compatible with MsSql. diff --git a/mssql/data/data.sql b/mssql/data/data.sql deleted file mode 100644 index 4f2b2930575..00000000000 --- a/mssql/data/data.sql +++ /dev/null @@ -1,1577 +0,0 @@ --- Copyright (C) 2001-2004 Rodolphe Quiedeville --- Copyright (C) 2003 Jean-Louis Bergamo --- Copyright (C) 2004-2005 Laurent Destailleur --- Copyright (C) 2004 Benoit Mortier --- Copyright (C) 2004 Guillaume Delecourt --- Copyright (C) 2005-2007 Regis Houssin --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- $Id$ --- - --- --- Ne pas placer de commentaire en fin de ligne, ce fichier est parse lors --- de l'install et tous les sigles '--' sont supprimés. --- - -SET IDENTITY_INSERT dbo.llx_c_methode_commande_fournisseur ON - -INSERT INTO llx_c_methode_commande_fournisseur (rowid, code, libelle, active) VALUES (1, 'OrderByMail', 'Courrier', 1); -INSERT INTO llx_c_methode_commande_fournisseur (rowid, code, libelle, active) VALUES (2, 'OrderByFax', 'Fax', 1); -INSERT INTO llx_c_methode_commande_fournisseur (rowid, code, libelle, active) VALUES (3, 'OrderByEMail', 'EMail', 1); -INSERT INTO llx_c_methode_commande_fournisseur (rowid, code, libelle, active) VALUES (4, 'OrderByPhone', 'Téléphone', 1); -INSERT INTO llx_c_methode_commande_fournisseur (rowid, code, libelle, active) VALUES (5, 'OrderByWWW', 'En ligne', 1); - -SET IDENTITY_INSERT dbo.llx_c_methode_commande_fournisseur OFF - -insert into llx_cond_reglement(rowid, code, sortorder, active, libelle, libelle_facture, fdm, nbjour) values (1,'RECEP', 1,1, 'A réception','Réception de facture',0,0); -insert into llx_cond_reglement(rowid, code, sortorder, active, libelle, libelle_facture, fdm, nbjour) values (2,'30D', 2,1, '30 jours','Réglement à 30 jours',0,30); -insert into llx_cond_reglement(rowid, code, sortorder, active, libelle, libelle_facture, fdm, nbjour) values (3,'30DENDMONTH', 3,1, '30 jours fin de mois','Réglement à 30 jours fin de mois',1,30); -insert into llx_cond_reglement(rowid, code, sortorder, active, libelle, libelle_facture, fdm, nbjour) values (4,'60D', 4,1, '60 jours','Réglement à 60 jours',0,60); -insert into llx_cond_reglement(rowid, code, sortorder, active, libelle, libelle_facture, fdm, nbjour) values (5,'60DENDMONTH', 5,1, '60 jours fin de mois','Réglement à 60 jours fin de mois',1,60); -insert into llx_cond_reglement(rowid, code, sortorder, active, libelle, libelle_facture, fdm, nbjour) values (6,'PROFORMA', 6,1, 'Proforma','Réglement avant livraison',0,0); - - --- --- Définition des actions de workflow notifications --- -delete from llx_action_def; -insert into llx_action_def (rowid,code,titre,description,objet_type) values (1,'NOTIFY_VAL_FICHINTER','Validation fiche intervention','Déclenché lors de la validation d''une fiche d''intervention','ficheinter'); -insert into llx_action_def (rowid,code,titre,description,objet_type) values (2,'NOTIFY_VAL_FAC','Validation facture','Déclenché lors de la validation d''une facture','facture'); -insert into llx_action_def (rowid,code,titre,description,objet_type) values (3,'NOTIFY_VAL_ORDER_SUUPLIER','Validation commande fournisseur','Déclenché lors de la validation d''une commande fournisseur','order_supplier'); - --- --- Constantes de configuration --- -insert into llx_const (name, value, type, note, visible) values ('MAIN_NOT_INSTALLED','1','chaine','Test d''installation',1); - -insert into llx_const (name, value, type, note, visible) values ('MAIN_MONNAIE','EUR','chaine','Monnaie',0); -insert into llx_const (name, value, type, note, visible) values ('MAIN_MAIL_SMTP_SERVER','','chaine','Host or ip address for SMTP server',1); -insert into llx_const (name, value, type, note, visible) values ('MAIN_MAIL_SMTP_PORT','','chaine','Port for SMTP server',1); - -insert into llx_const (name, value, type, note, visible) values ('MAIN_UPLOAD_DOC','2048','chaine','Max size for file upload (0 means no upload allowed)',0); - -insert into llx_const(name,value,type,visible,note) values('MAIN_SHOW_DEVELOPMENT_MODULES','0','yesno',1,'Make development modules visible'); -insert into llx_const(name,value,type,visible,note) values('PRODUCT_SHOW_WHEN_CREATE','0','yesno',1,'Add products list in first step of proposal, invoice, order creation'); - -insert into llx_const(name,value,type,visible,note) values('MAIN_FASTSEARCH_COMPANY','1','yesno',0,'Show form for quick company search'); -insert into llx_const(name,value,type,visible,note) values('MAIN_FASTSEARCH_CONTACT','1','yesno',0,'Show form for quick contact search'); -insert into llx_const(name,value,type,visible,note) values('MAIN_FASTSEARCH_PRODUCT','1','yesno',0,'Show form for quick product search'); - --- --- IHM --- -insert into llx_const (name, value, type, note, visible) values ('MAIN_LANG_DEFAULT','fr_FR','chaine','Langue par défaut pour les écrans Dolibarr',0); -insert into llx_const (name, value, type, note, visible) values ('MAIN_SIZE_LISTE_LIMIT','25','chaine','Longueur maximum des listes',0); -insert into llx_const (name, value, type, note, visible) values ('MAIN_SHOW_WORKBOARD','1','yesno','Affichage tableau de bord de travail Dolibarr',0); - -insert into llx_const (name, value, type, note, visible) values ('MAIN_MENU_BARRETOP','default.php','chaine','Module de gestion de la barre de menu du haut pour utilisateurs internes',0); -insert into llx_const (name, value, type, note, visible) values ('MAIN_MENUFRONT_BARRETOP','eldy_frontoffice.php','chaine','Module de gestion de la barre de menu du haut pour utilisateurs externes',0); -insert into llx_const (name, value, type, note, visible) values ('MAIN_MENU_BARRELEFT','default.php','chaine','Module de gestion de la barre de menu gauche pour utilisateurs internes',0); -insert into llx_const (name, value, type, note, visible) values ('MAIN_MENUFRONT_BARRELEFT','eldy_frontoffice.php','chaine','Module de gestion de la barre de menu gauche pour utilisateurs externes',0); - -insert into llx_const (name, value, type, note, visible) values ('MAIN_THEME','eldy','chaine','Thème par défaut',0); - --- --- Delai tolerance --- -insert into llx_const (name, value, type, note, visible) values ('MAIN_DELAY_ACTIONS_TODO','7','chaine','Tolérance de retard avant alerte (en jours) sur actions planifiées non réalisées',0); -insert into llx_const (name, value, type, note, visible) values ('MAIN_DELAY_ORDERS_TO_PROCESS','2','chaine','Tolérance de retard avant alerte (en jours) sur commandes non traitées',0); -insert into llx_const (name, value, type, note, visible) values ('MAIN_DELAY_PROPALS_TO_CLOSE','31','chaine','Tolérance de retard avant alerte (en jours) sur propales à cloturer',0); -insert into llx_const (name, value, type, note, visible) values ('MAIN_DELAY_PROPALS_TO_BILL','7','chaine','Tolérance de retard avant alerte (en jours) sur propales non facturées',0); -insert into llx_const (name, value, type, note, visible) values ('MAIN_DELAY_SUPPLIER_BILLS_TO_PAY','2','chaine','Tolérance de retard avant alerte (en jours) sur factures fournisseur impayées',0); -insert into llx_const (name, value, type, note, visible) values ('MAIN_DELAY_CUSTOMER_BILLS_UNPAYED','31','chaine','Tolérance de retard avant alerte (en jours) sur factures client impayées',0); -insert into llx_const (name, value, type, note, visible) values ('MAIN_DELAY_NOT_ACTIVATED_SERVICES','0','chaine','Tolérance de retard avant alerte (en jours) sur services à activer',0); -insert into llx_const (name, value, type, note, visible) values ('MAIN_DELAY_RUNNING_SERVICES','0','chaine','Tolérance de retard avant alerte (en jours) sur services expirés',0); -insert into llx_const (name, value, type, note, visible) values ('MAIN_DELAY_MEMBERS','31','chaine','Tolérance de retard avant alerte (en jours) sur cotisations adhérent en retard',0); -insert into llx_const (name, value, type, note, visible) values ('MAIN_DELAY_TRANSACTIONS_TO_CONCILIATE','62','chaine','Tolérance de retard avant alerte (en jours) sur rapprochements bancaires à faire',0); - --- --- Mail Adherent --- -insert into llx_const (name, value, type, note, visible) values ('ADHERENT_MAIL_REQUIRED','1','yesno','Le mail est obligatoire pour créer un adhérent',0); -insert into llx_const (name, value, type, note, visible) values ('ADHERENT_MAIL_FROM','adherents@domain.com','chaine','From des mails adherents',0); -insert into llx_const (name, value, type, note, visible) values ('ADHERENT_MAIL_RESIL','Votre adhesion vient d''etre resiliee.\r\nNous esperons vous revoir tres bientot','texte','Mail de Resiliation',0); -insert into llx_const (name, value, type, note, visible) values ('ADHERENT_MAIL_VALID','Votre adhesion vient d''etre validee. \r\nVoici le rappel de vos coordonnees (toute information erronee entrainera la non validation de votre inscription) :\r\n\r\n%INFOS%\r\n\r\nVous pouvez a tout moment, grace a votre login et mot de passe, modifier vos coordonnees a l''adresse suivante : \r\n%DOL_MAIN_URL_ROOT%/public/adherents/','texte','Mail de validation',0); -insert into llx_const (name, value, type, note, visible) values ('ADHERENT_MAIL_COTIS','Bonjour %PRENOM%,\r\nMerci de votre inscription.\r\nCet email confirme que votre cotisation a ete recue et enregistree.\r\n\r\nVous pouvez a tout moment, grace a votre login et mot de passe, modifier vos coordonnees a l''adresse suivante :\r\n%DOL_MAIN_URL_ROOT%/public/adherents/','texte','Mail de validation de cotisation',0); -insert into llx_const (name, value, type, note, visible) values ('ADHERENT_MAIL_VALID_SUBJECT','Votre adhésion a ete validée','chaine','sujet du mail de validation',0); -insert into llx_const (name, value, type, note, visible) values ('ADHERENT_MAIL_RESIL_SUBJECT','Resiliation de votre adhesion','chaine','sujet du mail de resiliation',0); -insert into llx_const (name, value, type, note, visible) values ('ADHERENT_MAIL_COTIS_SUBJECT','Recu de votre cotisation','chaine','Sujet du mail de validation de cotisation',0); - - --- --- Mail Mailing --- -insert into llx_const (name, value, type, note, visible) values ('MAILING_EMAIL_FROM','dolibarr@domain.com','chaine','EMail emmetteur pour les envois d''emailings',0); - --- --- Mailman --- -insert into llx_const (name, value, type, note, visible) values ('ADHERENT_USE_MAILMAN','0','yesno','Utilisation de Mailman',0); -insert into llx_const (name, value, type, note, visible) values ('ADHERENT_MAILMAN_UNSUB_URL','http://lists.domain.com/cgi-bin/mailman/admin/%LISTE%/members?adminpw=%MAILMAN_ADMINPW%&user=%EMAIL%','chaine','Url de desinscription aux listes mailman',0); -insert into llx_const (name, value, type, note, visible) values ('ADHERENT_MAILMAN_URL','http://lists.domain.com/cgi-bin/mailman/admin/%LISTE%/members?adminpw=%MAILMAN_ADMINPW%&send_welcome_msg_to_this_batch=1&subscribees=%EMAIL%','chaine','Url pour les inscriptions mailman',0); -insert into llx_const (name, value, type, note, visible) values ('ADHERENT_MAILMAN_LISTS','test-test,test-test2','chaine','Listes auxquelles inscrire les nouveaux adherents',0); -insert into llx_const (name, value, type, note, visible) values ('ADHERENT_MAILMAN_ADMINPW','','chaine','Mot de passe Admin des liste mailman',0); -insert into llx_const (name, value, type, note, visible) values ('ADHERENT_MAILMAN_SERVER','lists.domain.com','chaine','Serveur hebergeant les interfaces d''Admin des listes mailman',0); -insert into llx_const (name, value, type, note, visible) values ('ADHERENT_MAILMAN_LISTS_COTISANT','','chaine','Liste(s) auxquelles les nouveaux cotisants sont inscris automatiquement',0); --- --- SPIP --- -insert into llx_const (name, value, type, note, visible) values ('ADHERENT_USE_SPIP','0','yesno','Utilisation de SPIP ?',0); -insert into llx_const (name, value, type, note, visible) values ('ADHERENT_USE_SPIP_AUTO','0','yesno','Utilisation de SPIP automatiquement',0); -insert into llx_const (name, value, type, note, visible) values ('ADHERENT_SPIP_USER','user','chaine','user spip',0); -insert into llx_const (name, value, type, note, visible) values ('ADHERENT_SPIP_PASS','pass','chaine','Pass de connection',0); -insert into llx_const (name, value, type, note, visible) values ('ADHERENT_SPIP_SERVEUR','localhost','chaine','serveur spip',0); -insert into llx_const (name, value, type, note, visible) values ('ADHERENT_SPIP_DB','spip','chaine','db spip',0); --- --- Cartes adherents --- -insert into llx_const (name, value, type, note, visible) values ('ADHERENT_CARD_HEADER_TEXT','%ANNEE%','chaine','Texte imprime sur le haut de la carte adherent',0); -insert into llx_const (name, value, type, note, visible) values ('ADHERENT_CARD_FOOTER_TEXT','Association AZERTY','chaine','Texte imprime sur le bas de la carte adherent',0); -insert into llx_const (name, value, type, note, visible) values ('ADHERENT_CARD_TEXT','%TYPE% n° %ID%\r\n%PRENOM% %NOM%\r\n<%EMAIL%>\r\n%ADRESSE%\r\n%CP% %VILLE%\r\n%PAYS%','texte','Texte imprime sur la carte adherent',0); - --- --- OsCommerce 1 --- -insert into llx_const (name, value, type, note, visible) values ('OSC_DB_HOST','localhost','chaine', 'Host for OSC database for OSCommerce module 1', 0); - --- --- Notification --- -insert into llx_const (name, value, type, note, visible) values ('NOTIFICATION_EMAIL_FROM','dolibarr-robot@domain.com','chaine','EMail emetteur pour les notifications automatiques Dolibarr',1); - --- --- Modeles de numerotation et generation document --- -insert into llx_const (name, value, type, visible) values ('DON_ADDON_MODEL', 'html_cerfafr','chaine',0); -insert into llx_const (name, value, type, visible) values ('PROPALE_ADDON', 'mod_propale_marbre','chaine',0); -insert into llx_const (name, value, type, visible) values ('PROPALE_ADDON_PDF', 'azur','chaine',0); -insert into llx_const (name, value, type, visible) values ('COMMANDE_ADDON', 'mod_commande_marbre','chaine',0); -insert into llx_const (name, value, type, visible) values ('COMMANDE_ADDON_PDF', 'einstein','chaine',0); -insert into llx_const (name, value, type, visible) values ('COMMANDE_SUPPLIER_ADDON', 'mod_commande_fournisseur_muguet','chaine',0); -insert into llx_const (name, value, type, visible) values ('COMMANDE_SUPPLIER_ADDON_PDF', 'muscadet','chaine',0); -insert into llx_const (name, value, type, visible) values ('EXPEDITION_ADDON', 'enlevement','chaine',0); -insert into llx_const (name, value, type, visible) values ('EXPEDITION_ADDON_PDF','rouget','chaine',0); -insert into llx_const (name, value, type, visible) values ('FICHEINTER_ADDON', 'pacific','chaine',0); -insert into llx_const (name, value, type, visible) values ('FICHEINTER_ADDON_PDF','soleil','chaine',0); -insert into llx_const (name, value, type, visible) values ('FACTURE_ADDON', 'terre','chaine',0); -insert into llx_const (name, value, type, visible) values ('FACTURE_ADDON_PDF', 'crabe','chaine',0); - - --- --- Forcer les locales --- -insert into llx_const (name, value, type, visible, note) VALUES ('MAIN_FORCE_SETLOCALE_LC_ALL', 'MAIN_FORCE_SETLOCALE_LC_ALL', 'chaine', 1, 'Pour forcer LC_ALL si pb de locale'); -insert into llx_const (name, value, type, visible, note) VALUES ('MAIN_FORCE_SETLOCALE_LC_TIME', 'MAIN_FORCE_SETLOCALE_LC_TIME', 'chaine', 1, 'Pour forcer LC_TIME si pb de locale'); -insert into llx_const (name, value, type, visible, note) VALUES ('MAIN_FORCE_SETLOCALE_LC_MONETARY', 'MAIN_FORCE_SETLOCALE_LC_MONETARY', 'chaine', 1, 'Pour forcer LC_MONETARY si pb de locale'); -insert into llx_const (name, value, type, visible, note) VALUES ('MAIN_FORCE_SETLOCALE_LC_NUMERIC', 'MAIN_FORCE_SETLOCALE_LC_NUMERIC', 'chaine', 1, 'Mettre la valeur C si problème de centimes'); - --- --- Duree de validite des propales --- -insert into llx_const (name, value, type, visible, note) VALUES ('PROPALE_VALIDITY_DURATION', '15', 'chaine', 0, 'Durée de validitée des propales'); - - --- --- Descriptif des plans comptables FR PCG99-ABREGE --- - -delete from llx_accountingaccount; -delete from llx_accountingsystem; - -insert into llx_accountingsystem (pcg_version, fk_pays, label, datec, fk_author, active) VALUES ('PCG99-ABREGE', 1, 'Plan de compte standard français abrégé', getdate(), null, 0); - -SET IDENTITY_INSERT dbo.llx_accountingaccount ON - -insert into llx_accountingaccount (rowid, fk_pcg_version, pcg_type, pcg_subtype, account_number, account_parent, label) VALUES ( 1,'PCG99-ABREGE','CAPIT', 'CAPITAL', '101', '1', 'Capital'); -insert into llx_accountingaccount (rowid, fk_pcg_version, pcg_type, pcg_subtype, account_number, account_parent, label) VALUES ( 2,'PCG99-ABREGE','CAPIT', 'XXXXXX', '105', '1', 'Ecarts de réévaluation'); -insert into llx_accountingaccount (rowid, fk_pcg_version, pcg_type, pcg_subtype, account_number, account_parent, label) VALUES ( 3,'PCG99-ABREGE','CAPIT', 'XXXXXX', '1061', '1', 'Réserve légale'); -insert into llx_accountingaccount (rowid, fk_pcg_version, pcg_type, pcg_subtype, account_number, account_parent, label) VALUES ( 4,'PCG99-ABREGE','CAPIT', 'XXXXXX', '1063', '1', 'Réserves statutaires ou contractuelles'); -insert into llx_accountingaccount (rowid, fk_pcg_version, pcg_type, pcg_subtype, account_number, account_parent, label) VALUES ( 5,'PCG99-ABREGE','CAPIT', 'XXXXXX', '1064', '1', 'Réserves réglementées'); -insert into llx_accountingaccount (rowid, fk_pcg_version, pcg_type, pcg_subtype, account_number, account_parent, label) VALUES ( 6,'PCG99-ABREGE','CAPIT', 'XXXXXX', '1068', '1', 'Autres réserves'); -insert into llx_accountingaccount (rowid, fk_pcg_version, pcg_type, pcg_subtype, account_number, account_parent, label) VALUES ( 7,'PCG99-ABREGE','CAPIT', 'XXXXXX', '108', '1', 'Compte de l''exploitant'); -insert into llx_accountingaccount (rowid, fk_pcg_version, pcg_type, pcg_subtype, account_number, account_parent, label) VALUES ( 8,'PCG99-ABREGE','CAPIT', 'XXXXXX', '12', '1', 'Résultat de l''exercice'); -insert into llx_accountingaccount (rowid, fk_pcg_version, pcg_type, pcg_subtype, account_number, account_parent, label) VALUES ( 9,'PCG99-ABREGE','CAPIT', 'XXXXXX', '145', '1', 'Amortissements dérogatoires'); -insert into llx_accountingaccount (rowid, fk_pcg_version, pcg_type, pcg_subtype, account_number, account_parent, label) VALUES ( 10,'PCG99-ABREGE','CAPIT', 'XXXXXX', '146', '1', 'Provision spéciale de réévaluation'); -insert into llx_accountingaccount (rowid, fk_pcg_version, pcg_type, pcg_subtype, account_number, account_parent, label) VALUES ( 11,'PCG99-ABREGE','CAPIT', 'XXXXXX', '147', '1', 'Plus-values réinvesties'); -insert into llx_accountingaccount (rowid, fk_pcg_version, pcg_type, pcg_subtype, account_number, account_parent, label) VALUES ( 12,'PCG99-ABREGE','CAPIT', 'XXXXXX', '148', '1', 'Autres provisions réglementées'); -insert into llx_accountingaccount (rowid, fk_pcg_version, pcg_type, pcg_subtype, account_number, account_parent, label) VALUES ( 13,'PCG99-ABREGE','CAPIT', 'XXXXXX', '15', '1', 'Provisions pour risques et charges'); -insert into llx_accountingaccount (rowid, fk_pcg_version, pcg_type, pcg_subtype, account_number, account_parent, label) VALUES ( 14,'PCG99-ABREGE','CAPIT', 'XXXXXX', '16', '1', 'Emprunts et dettes assimilees'); -insert into llx_accountingaccount (rowid, fk_pcg_version, pcg_type, pcg_subtype, account_number, account_parent, label) VALUES ( 15,'PCG99-ABREGE','IMMO', 'XXXXXX', '20', '2', 'Immobilisations incorporelles'); -insert into llx_accountingaccount (rowid, fk_pcg_version, pcg_type, pcg_subtype, account_number, account_parent, label) VALUES ( 16,'PCG99-ABREGE','IMMO', 'XXXXXX', '201','20', 'Frais d''établissement'); -insert into llx_accountingaccount (rowid, fk_pcg_version, pcg_type, pcg_subtype, account_number, account_parent, label) VALUES ( 17,'PCG99-ABREGE','IMMO', 'XXXXXX', '206','20', 'Droit au bail'); -insert into llx_accountingaccount (rowid, fk_pcg_version, pcg_type, pcg_subtype, account_number, account_parent, label) VALUES ( 18,'PCG99-ABREGE','IMMO', 'XXXXXX', '207','20', 'Fonds commercial'); -insert into llx_accountingaccount (rowid, fk_pcg_version, pcg_type, pcg_subtype, account_number, account_parent, label) VALUES ( 19,'PCG99-ABREGE','IMMO', 'XXXXXX', '208','20', 'Autres immobilisations incorporelles'); -insert into llx_accountingaccount (rowid, fk_pcg_version, pcg_type, pcg_subtype, account_number, account_parent, label) VALUES ( 20,'PCG99-ABREGE','IMMO', 'XXXXXX', '21', '2', 'Immobilisations corporelles'); -insert into llx_accountingaccount (rowid, fk_pcg_version, pcg_type, pcg_subtype, account_number, account_parent, label) VALUES ( 21,'PCG99-ABREGE','IMMO', 'XXXXXX', '23', '2', 'Immobilisations en cours'); -insert into llx_accountingaccount (rowid, fk_pcg_version, pcg_type, pcg_subtype, account_number, account_parent, label) VALUES ( 22,'PCG99-ABREGE','IMMO', 'XXXXXX', '27', '2', 'Autres immobilisations financieres'); -insert into llx_accountingaccount (rowid, fk_pcg_version, pcg_type, pcg_subtype, account_number, account_parent, label) VALUES ( 23,'PCG99-ABREGE','IMMO', 'XXXXXX', '280', '2', 'Amortissements des immobilisations incorporelles'); -insert into llx_accountingaccount (rowid, fk_pcg_version, pcg_type, pcg_subtype, account_number, account_parent, label) VALUES ( 24,'PCG99-ABREGE','IMMO', 'XXXXXX', '281', '2', 'Amortissements des immobilisations corporelles'); -insert into llx_accountingaccount (rowid, fk_pcg_version, pcg_type, pcg_subtype, account_number, account_parent, label) VALUES ( 25,'PCG99-ABREGE','IMMO', 'XXXXXX', '290', '2', 'Provisions pour dépréciation des immobilisations incorporelles'); -insert into llx_accountingaccount (rowid, fk_pcg_version, pcg_type, pcg_subtype, account_number, account_parent, label) VALUES ( 26,'PCG99-ABREGE','IMMO', 'XXXXXX', '291', '2', 'Provisions pour dépréciation des immobilisations corporelles'); -insert into llx_accountingaccount (rowid, fk_pcg_version, pcg_type, pcg_subtype, account_number, account_parent, label) VALUES ( 27,'PCG99-ABREGE','IMMO', 'XXXXXX', '297', '2', 'Provisions pour dépréciation des autres immobilisations financières'); -insert into llx_accountingaccount (rowid, fk_pcg_version, pcg_type, pcg_subtype, account_number, account_parent, label) VALUES ( 28,'PCG99-ABREGE','STOCK', 'XXXXXX', '31', '3', 'Matieres premières'); -insert into llx_accountingaccount (rowid, fk_pcg_version, pcg_type, pcg_subtype, account_number, account_parent, label) VALUES ( 29,'PCG99-ABREGE','STOCK', 'XXXXXX', '32', '3', 'Autres approvisionnements'); -insert into llx_accountingaccount (rowid, fk_pcg_version, pcg_type, pcg_subtype, account_number, account_parent, label) VALUES ( 30,'PCG99-ABREGE','STOCK', 'XXXXXX', '33', '3', 'En-cours de production de biens'); -insert into llx_accountingaccount (rowid, fk_pcg_version, pcg_type, pcg_subtype, account_number, account_parent, label) VALUES ( 31,'PCG99-ABREGE','STOCK', 'XXXXXX', '34', '3', 'En-cours de production de services'); -insert into llx_accountingaccount (rowid, fk_pcg_version, pcg_type, pcg_subtype, account_number, account_parent, label) VALUES ( 32,'PCG99-ABREGE','STOCK', 'XXXXXX', '35', '3', 'Stocks de produits'); -insert into llx_accountingaccount (rowid, fk_pcg_version, pcg_type, pcg_subtype, account_number, account_parent, label) VALUES ( 33,'PCG99-ABREGE','STOCK', 'XXXXXX', '37', '3', 'Stocks de marchandises'); -insert into llx_accountingaccount (rowid, fk_pcg_version, pcg_type, pcg_subtype, account_number, account_parent, label) VALUES ( 34,'PCG99-ABREGE','STOCK', 'XXXXXX', '391', '3', 'Provisions pour dépréciation des matières premières'); -insert into llx_accountingaccount (rowid, fk_pcg_version, pcg_type, pcg_subtype, account_number, account_parent, label) VALUES ( 35,'PCG99-ABREGE','STOCK', 'XXXXXX', '392', '3', 'Provisions pour dépréciation des autres approvisionnements'); -insert into llx_accountingaccount (rowid, fk_pcg_version, pcg_type, pcg_subtype, account_number, account_parent, label) VALUES ( 36,'PCG99-ABREGE','STOCK', 'XXXXXX', '393', '3', 'Provisions pour dépréciation des en-cours de production de biens'); -insert into llx_accountingaccount (rowid, fk_pcg_version, pcg_type, pcg_subtype, account_number, account_parent, label) VALUES ( 37,'PCG99-ABREGE','STOCK', 'XXXXXX', '394', '3', 'Provisions pour dépréciation des en-cours de production de services'); -insert into llx_accountingaccount (rowid, fk_pcg_version, pcg_type, pcg_subtype, account_number, account_parent, label) VALUES ( 38,'PCG99-ABREGE','STOCK', 'XXXXXX', '395', '3', 'Provisions pour dépréciation des stocks de produits'); -insert into llx_accountingaccount (rowid, fk_pcg_version, pcg_type, pcg_subtype, account_number, account_parent, label) VALUES ( 39,'PCG99-ABREGE','STOCK', 'XXXXXX', '397', '3', 'Provisions pour dépréciation des stocks de marchandises'); -insert into llx_accountingaccount (rowid, fk_pcg_version, pcg_type, pcg_subtype, account_number, account_parent, label) VALUES ( 40,'PCG99-ABREGE','TIERS', 'SUPPLIER','400', '4', 'Fournisseurs et Comptes rattachés'); -insert into llx_accountingaccount (rowid, fk_pcg_version, pcg_type, pcg_subtype, account_number, account_parent, label) VALUES ( 41,'PCG99-ABREGE','TIERS', 'XXXXXX', '409', '4', 'Fournisseurs débiteurs'); -insert into llx_accountingaccount (rowid, fk_pcg_version, pcg_type, pcg_subtype, account_number, account_parent, label) VALUES ( 42,'PCG99-ABREGE','TIERS', 'CUSTOMER','410', '4', 'Clients et Comptes rattachés'); -insert into llx_accountingaccount (rowid, fk_pcg_version, pcg_type, pcg_subtype, account_number, account_parent, label) VALUES ( 43,'PCG99-ABREGE','TIERS', 'XXXXXX', '419', '4', 'Clients créditeurs'); -insert into llx_accountingaccount (rowid, fk_pcg_version, pcg_type, pcg_subtype, account_number, account_parent, label) VALUES ( 44,'PCG99-ABREGE','TIERS', 'XXXXXX', '421', '4', 'Personnel'); -insert into llx_accountingaccount (rowid, fk_pcg_version, pcg_type, pcg_subtype, account_number, account_parent, label) VALUES ( 45,'PCG99-ABREGE','TIERS', 'XXXXXX', '428', '4', 'Personnel'); -insert into llx_accountingaccount (rowid, fk_pcg_version, pcg_type, pcg_subtype, account_number, account_parent, label) VALUES ( 46,'PCG99-ABREGE','TIERS', 'XXXXXX', '43', '4', 'Sécurité sociale et autres organismes sociaux'); -insert into llx_accountingaccount (rowid, fk_pcg_version, pcg_type, pcg_subtype, account_number, account_parent, label) VALUES ( 47,'PCG99-ABREGE','TIERS', 'XXXXXX', '444', '4', 'Etat - impôts sur bénéfice'); -insert into llx_accountingaccount (rowid, fk_pcg_version, pcg_type, pcg_subtype, account_number, account_parent, label) VALUES ( 48,'PCG99-ABREGE','TIERS', 'XXXXXX', '445', '4', 'Etat - Taxes sur chiffre affaire'); -insert into llx_accountingaccount (rowid, fk_pcg_version, pcg_type, pcg_subtype, account_number, account_parent, label) VALUES ( 49,'PCG99-ABREGE','TIERS', 'XXXXXX', '447', '4', 'Autres impôts, taxes et versements assimilés'); -insert into llx_accountingaccount (rowid, fk_pcg_version, pcg_type, pcg_subtype, account_number, account_parent, label) VALUES ( 50,'PCG99-ABREGE','TIERS', 'XXXXXX', '45', '4', 'Groupe et associes'); -insert into llx_accountingaccount (rowid, fk_pcg_version, pcg_type, pcg_subtype, account_number, account_parent, label) VALUES ( 51,'PCG99-ABREGE','TIERS', 'XXXXXX', '455','45', 'Associés'); -insert into llx_accountingaccount (rowid, fk_pcg_version, pcg_type, pcg_subtype, account_number, account_parent, label) VALUES ( 52,'PCG99-ABREGE','TIERS', 'XXXXXX', '46', '4', 'Débiteurs divers et créditeurs divers'); -insert into llx_accountingaccount (rowid, fk_pcg_version, pcg_type, pcg_subtype, account_number, account_parent, label) VALUES ( 53,'PCG99-ABREGE','TIERS', 'XXXXXX', '47', '4', 'Comptes transitoires ou d''attente'); -insert into llx_accountingaccount (rowid, fk_pcg_version, pcg_type, pcg_subtype, account_number, account_parent, label) VALUES ( 54,'PCG99-ABREGE','TIERS', 'XXXXXX', '481', '4', 'Charges à répartir sur plusieurs exercices'); -insert into llx_accountingaccount (rowid, fk_pcg_version, pcg_type, pcg_subtype, account_number, account_parent, label) VALUES ( 55,'PCG99-ABREGE','TIERS', 'XXXXXX', '486', '4', 'Charges constatées d''avance'); -insert into llx_accountingaccount (rowid, fk_pcg_version, pcg_type, pcg_subtype, account_number, account_parent, label) VALUES ( 56,'PCG99-ABREGE','TIERS', 'XXXXXX', '487', '4', 'Produits constatés d''avance'); -insert into llx_accountingaccount (rowid, fk_pcg_version, pcg_type, pcg_subtype, account_number, account_parent, label) VALUES ( 57,'PCG99-ABREGE','TIERS', 'XXXXXX', '491', '4', 'Provisions pour dépréciation des comptes de clients'); -insert into llx_accountingaccount (rowid, fk_pcg_version, pcg_type, pcg_subtype, account_number, account_parent, label) VALUES ( 58,'PCG99-ABREGE','TIERS', 'XXXXXX', '496', '4', 'Provisions pour dépréciation des comptes de débiteurs divers'); -insert into llx_accountingaccount (rowid, fk_pcg_version, pcg_type, pcg_subtype, account_number, account_parent, label) VALUES ( 59,'PCG99-ABREGE','FINAN', 'XXXXXX', '50', '5', 'Valeurs mobilières de placement'); -insert into llx_accountingaccount (rowid, fk_pcg_version, pcg_type, pcg_subtype, account_number, account_parent, label) VALUES ( 60,'PCG99-ABREGE','FINAN', 'BANK', '51', '5', 'Banques, établissements financiers et assimilés'); -insert into llx_accountingaccount (rowid, fk_pcg_version, pcg_type, pcg_subtype, account_number, account_parent, label) VALUES ( 61,'PCG99-ABREGE','FINAN', 'CASH', '53', '5', 'Caisse'); -insert into llx_accountingaccount (rowid, fk_pcg_version, pcg_type, pcg_subtype, account_number, account_parent, label) VALUES ( 62,'PCG99-ABREGE','FINAN', 'XXXXXX', '54', '5', 'Régies d''avance et accréditifs'); -insert into llx_accountingaccount (rowid, fk_pcg_version, pcg_type, pcg_subtype, account_number, account_parent, label) VALUES ( 63,'PCG99-ABREGE','FINAN', 'XXXXXX', '58', '5', 'Virements internes'); -insert into llx_accountingaccount (rowid, fk_pcg_version, pcg_type, pcg_subtype, account_number, account_parent, label) VALUES ( 64,'PCG99-ABREGE','FINAN', 'XXXXXX', '590', '5', 'Provisions pour dépréciation des valeurs mobilières de placement'); -insert into llx_accountingaccount (rowid, fk_pcg_version, pcg_type, pcg_subtype, account_number, account_parent, label) VALUES ( 65,'PCG99-ABREGE','CHARGE','PRODUCT', '60', '6', 'Achats'); -insert into llx_accountingaccount (rowid, fk_pcg_version, pcg_type, pcg_subtype, account_number, account_parent, label) VALUES ( 66,'PCG99-ABREGE','CHARGE','XXXXXX', '603','60', 'Variations des stocks'); -insert into llx_accountingaccount (rowid, fk_pcg_version, pcg_type, pcg_subtype, account_number, account_parent, label) VALUES ( 67,'PCG99-ABREGE','CHARGE','SERVICE', '61', '6', 'Services extérieurs'); -insert into llx_accountingaccount (rowid, fk_pcg_version, pcg_type, pcg_subtype, account_number, account_parent, label) VALUES ( 68,'PCG99-ABREGE','CHARGE','XXXXXX', '62', '6', 'Autres services extérieurs'); -insert into llx_accountingaccount (rowid, fk_pcg_version, pcg_type, pcg_subtype, account_number, account_parent, label) VALUES ( 69,'PCG99-ABREGE','CHARGE','XXXXXX', '63', '6', 'Impôts, taxes et versements assimiles'); -insert into llx_accountingaccount (rowid, fk_pcg_version, pcg_type, pcg_subtype, account_number, account_parent, label) VALUES ( 70,'PCG99-ABREGE','CHARGE','XXXXXX', '641', '6', 'Rémunérations du personnel'); -insert into llx_accountingaccount (rowid, fk_pcg_version, pcg_type, pcg_subtype, account_number, account_parent, label) VALUES ( 71,'PCG99-ABREGE','CHARGE','XXXXXX', '644', '6', 'Rémunération du travail de l''exploitant'); -insert into llx_accountingaccount (rowid, fk_pcg_version, pcg_type, pcg_subtype, account_number, account_parent, label) VALUES ( 72,'PCG99-ABREGE','CHARGE','SOCIAL', '645', '6', 'Charges de sécurité sociale et de prévoyance'); -insert into llx_accountingaccount (rowid, fk_pcg_version, pcg_type, pcg_subtype, account_number, account_parent, label) VALUES ( 73,'PCG99-ABREGE','CHARGE','XXXXXX', '646', '6', 'Cotisations sociales personnelles de l''exploitant'); -insert into llx_accountingaccount (rowid, fk_pcg_version, pcg_type, pcg_subtype, account_number, account_parent, label) VALUES ( 74,'PCG99-ABREGE','CHARGE','XXXXXX', '65', '6', 'Autres charges de gestion courante'); -insert into llx_accountingaccount (rowid, fk_pcg_version, pcg_type, pcg_subtype, account_number, account_parent, label) VALUES ( 75,'PCG99-ABREGE','CHARGE','XXXXXX', '66', '6', 'Charges financières'); -insert into llx_accountingaccount (rowid, fk_pcg_version, pcg_type, pcg_subtype, account_number, account_parent, label) VALUES ( 76,'PCG99-ABREGE','CHARGE','XXXXXX', '67', '6', 'Charges exceptionnelles'); -insert into llx_accountingaccount (rowid, fk_pcg_version, pcg_type, pcg_subtype, account_number, account_parent, label) VALUES ( 77,'PCG99-ABREGE','CHARGE','XXXXXX', '681', '6', 'Dotations aux amortissements et aux provisions'); -insert into llx_accountingaccount (rowid, fk_pcg_version, pcg_type, pcg_subtype, account_number, account_parent, label) VALUES ( 78,'PCG99-ABREGE','CHARGE','XXXXXX', '686', '6', 'Dotations aux amortissements et aux provisions'); -insert into llx_accountingaccount (rowid, fk_pcg_version, pcg_type, pcg_subtype, account_number, account_parent, label) VALUES ( 79,'PCG99-ABREGE','CHARGE','XXXXXX', '687', '6', 'Dotations aux amortissements et aux provisions'); -insert into llx_accountingaccount (rowid, fk_pcg_version, pcg_type, pcg_subtype, account_number, account_parent, label) VALUES ( 80,'PCG99-ABREGE','CHARGE','XXXXXX', '691', '6', 'Participation des salariés aux résultats'); -insert into llx_accountingaccount (rowid, fk_pcg_version, pcg_type, pcg_subtype, account_number, account_parent, label) VALUES ( 81,'PCG99-ABREGE','CHARGE','XXXXXX', '695', '6', 'Impôts sur les bénéfices'); -insert into llx_accountingaccount (rowid, fk_pcg_version, pcg_type, pcg_subtype, account_number, account_parent, label) VALUES ( 82,'PCG99-ABREGE','CHARGE','XXXXXX', '697', '6', 'Imposition forfaitaire annuelle des sociétés'); -insert into llx_accountingaccount (rowid, fk_pcg_version, pcg_type, pcg_subtype, account_number, account_parent, label) VALUES ( 83,'PCG99-ABREGE','CHARGE','XXXXXX', '699', '6', 'Produits'); -insert into llx_accountingaccount (rowid, fk_pcg_version, pcg_type, pcg_subtype, account_number, account_parent, label) VALUES ( 84,'PCG99-ABREGE','PROD', 'PRODUCT', '701', '7', 'Ventes de produits finis'); -insert into llx_accountingaccount (rowid, fk_pcg_version, pcg_type, pcg_subtype, account_number, account_parent, label) VALUES ( 85,'PCG99-ABREGE','PROD', 'SERVICE', '706', '7', 'Prestations de services'); -insert into llx_accountingaccount (rowid, fk_pcg_version, pcg_type, pcg_subtype, account_number, account_parent, label) VALUES ( 86,'PCG99-ABREGE','PROD', 'PRODUCT', '707', '7', 'Ventes de marchandises'); -insert into llx_accountingaccount (rowid, fk_pcg_version, pcg_type, pcg_subtype, account_number, account_parent, label) VALUES ( 87,'PCG99-ABREGE','PROD', 'PRODUCT', '708', '7', 'Produits des activités annexes'); -insert into llx_accountingaccount (rowid, fk_pcg_version, pcg_type, pcg_subtype, account_number, account_parent, label) VALUES ( 88,'PCG99-ABREGE','PROD', 'XXXXXX', '709', '7', 'Rabais, remises et ristournes accordés par l''entreprise'); -insert into llx_accountingaccount (rowid, fk_pcg_version, pcg_type, pcg_subtype, account_number, account_parent, label) VALUES ( 89,'PCG99-ABREGE','PROD', 'XXXXXX', '713', '7', 'Variation des stocks'); -insert into llx_accountingaccount (rowid, fk_pcg_version, pcg_type, pcg_subtype, account_number, account_parent, label) VALUES ( 90,'PCG99-ABREGE','PROD', 'XXXXXX', '72', '7', 'Production immobilisée'); -insert into llx_accountingaccount (rowid, fk_pcg_version, pcg_type, pcg_subtype, account_number, account_parent, label) VALUES ( 91,'PCG99-ABREGE','PROD', 'XXXXXX', '73', '7', 'Produits nets partiels sur opérations à long terme'); -insert into llx_accountingaccount (rowid, fk_pcg_version, pcg_type, pcg_subtype, account_number, account_parent, label) VALUES ( 92,'PCG99-ABREGE','PROD', 'XXXXXX', '74', '7', 'Subventions d''exploitation'); -insert into llx_accountingaccount (rowid, fk_pcg_version, pcg_type, pcg_subtype, account_number, account_parent, label) VALUES ( 93,'PCG99-ABREGE','PROD', 'XXXXXX', '75', '7', 'Autres produits de gestion courante'); -insert into llx_accountingaccount (rowid, fk_pcg_version, pcg_type, pcg_subtype, account_number, account_parent, label) VALUES ( 94,'PCG99-ABREGE','PROD', 'XXXXXX', '753','75', 'Jetons de présence et rémunérations d''administrateurs, gérants,...'); -insert into llx_accountingaccount (rowid, fk_pcg_version, pcg_type, pcg_subtype, account_number, account_parent, label) VALUES ( 95,'PCG99-ABREGE','PROD', 'XXXXXX', '754','75', 'Ristournes perçues des coopératives'); -insert into llx_accountingaccount (rowid, fk_pcg_version, pcg_type, pcg_subtype, account_number, account_parent, label) VALUES ( 96,'PCG99-ABREGE','PROD', 'XXXXXX', '755','75', 'Quotes-parts de résultat sur opérations faites en commun'); -insert into llx_accountingaccount (rowid, fk_pcg_version, pcg_type, pcg_subtype, account_number, account_parent, label) VALUES ( 97,'PCG99-ABREGE','PROD', 'XXXXXX', '76', '7', 'Produits financiers'); -insert into llx_accountingaccount (rowid, fk_pcg_version, pcg_type, pcg_subtype, account_number, account_parent, label) VALUES ( 98,'PCG99-ABREGE','PROD', 'XXXXXX', '77', '7', 'Produits exceptionnels'); -insert into llx_accountingaccount (rowid, fk_pcg_version, pcg_type, pcg_subtype, account_number, account_parent, label) VALUES ( 99,'PCG99-ABREGE','PROD', 'XXXXXX', '781', '7', 'Reprises sur amortissements et provisions'); -insert into llx_accountingaccount (rowid, fk_pcg_version, pcg_type, pcg_subtype, account_number, account_parent, label) VALUES (100,'PCG99-ABREGE','PROD', 'XXXXXX', '786', '7', 'Reprises sur provisions pour risques'); -insert into llx_accountingaccount (rowid, fk_pcg_version, pcg_type, pcg_subtype, account_number, account_parent, label) VALUES (101,'PCG99-ABREGE','PROD', 'XXXXXX', '787', '7', 'Reprises sur provisions'); -insert into llx_accountingaccount (rowid, fk_pcg_version, pcg_type, pcg_subtype, account_number, account_parent, label) VALUES (102,'PCG99-ABREGE','PROD', 'XXXXXX', '79', '7', 'Transferts de charges'); - -SET IDENTITY_INSERT dbo.llx_accountingaccount OFF - - --- Dictionnaires llx_c - --- --- Types action comm --- - -delete from llx_c_actioncomm where id in (1,2,3,4,5,8,9,50); -insert into llx_c_actioncomm (id, code, type, libelle, module) values ( 1, 'AC_TEL', 'system', 'Appel Téléphonique' ,NULL); -insert into llx_c_actioncomm (id, code, type, libelle, module) values ( 2, 'AC_FAX', 'system', 'Envoi Fax' ,NULL); -insert into llx_c_actioncomm (id, code, type, libelle, module) values ( 3, 'AC_PROP', 'system', 'Envoi Proposition' ,'propal'); -insert into llx_c_actioncomm (id, code, type, libelle, module) values ( 4, 'AC_EMAIL','system', 'Envoi Email' ,NULL); -insert into llx_c_actioncomm (id, code, type, libelle, module) values ( 5, 'AC_RDV', 'system', 'Rendez-vous' ,NULL); -insert into llx_c_actioncomm (id, code, type, libelle, module) values ( 8, 'AC_COM', 'system', 'Envoi Commande' ,'order'); -insert into llx_c_actioncomm (id, code, type, libelle, module) values ( 9, 'AC_FAC', 'system', 'Envoi Facture' ,'invoice'); -insert into llx_c_actioncomm (id, code, type, libelle, module) values (50, 'AC_OTH', 'system', 'Autre' ,NULL); - --- --- Ape --- -delete from llx_c_ape; - - --- --- Types de charges --- - -SET IDENTITY_INSERT dbo.llx_c_chargesociales ON - -insert into llx_c_chargesociales (id,libelle,deductible) values ( 1, 'Allocations familiales',1); -insert into llx_c_chargesociales (id,libelle,deductible) values ( 2, 'GSG Deductible',1); -insert into llx_c_chargesociales (id,libelle,deductible) values ( 3, 'GSG/CRDS NON Deductible',0); - -SET IDENTITY_INSERT dbo.llx_c_chargesociales OFF - --- --- Civilites --- - -delete from llx_c_civilite; -insert into llx_c_civilite (rowid, code, civilite, active) values (1 , 'MME', 'Madame', 1); -insert into llx_c_civilite (rowid, code, civilite, active) values (3 , 'MR', 'Monsieur', 1); -insert into llx_c_civilite (rowid, code, civilite, active) values (5 , 'MLE', 'Mademoiselle', 1); -insert into llx_c_civilite (rowid, code, civilite, active) values (7 , 'MTRE', 'Maître', 1); - - --- --- Types effectifs --- - -delete from llx_c_effectif; -insert into llx_c_effectif (id,code,libelle) values (0, 'EF0', '-'); -insert into llx_c_effectif (id,code,libelle) values (1, 'EF1-5', '1 - 5'); -insert into llx_c_effectif (id,code,libelle) values (2, 'EF6-10', '6 - 10'); -insert into llx_c_effectif (id,code,libelle) values (3, 'EF11-50', '11 - 50'); -insert into llx_c_effectif (id,code,libelle) values (4, 'EF51-100', '51 - 100'); -insert into llx_c_effectif (id,code,libelle) values (5, 'EF100-500', '100 - 500'); -insert into llx_c_effectif (id,code,libelle) values (6, 'EF500-', '> 500'); - --- --- Formes juridiques --- - -delete from llx_c_forme_juridique; - -insert into llx_c_forme_juridique (fk_pays, code, libelle) values (0, '0','-'); - --- Pour la France: Extrait de http://www.insee.fr/fr/nom_def_met/nomenclatures/cj/cjniveau2.htm -insert into llx_c_forme_juridique (fk_pays, code, libelle) values (1,'11','Artisan Commerçant'); -insert into llx_c_forme_juridique (fk_pays, code, libelle) values (1,'12','Commerçant'); -insert into llx_c_forme_juridique (fk_pays, code, libelle) values (1,'13','Artisan'); -insert into llx_c_forme_juridique (fk_pays, code, libelle) values (1,'14','Officier public ou ministériel'); -insert into llx_c_forme_juridique (fk_pays, code, libelle) values (1,'15','Profession libérale'); -insert into llx_c_forme_juridique (fk_pays, code, libelle) values (1,'16','Exploitant agricole'); -insert into llx_c_forme_juridique (fk_pays, code, libelle) values (1,'17','Agent commercial'); -insert into llx_c_forme_juridique (fk_pays, code, libelle) values (1,'18','Associé Gérant de société'); -insert into llx_c_forme_juridique (fk_pays, code, libelle) values (1,'19','(Autre) personne physique'); -insert into llx_c_forme_juridique (fk_pays, code, libelle) values (1,'21','Indivision'); -insert into llx_c_forme_juridique (fk_pays, code, libelle) values (1,'22','Société créée de fait'); -insert into llx_c_forme_juridique (fk_pays, code, libelle) values (1,'23','Société en participation'); -insert into llx_c_forme_juridique (fk_pays, code, libelle) values (1,'27','Paroisse hors zone concordataire'); -insert into llx_c_forme_juridique (fk_pays, code, libelle) values (1,'29','Autre groupement de droit privé non doté de la personnalité morale'); -insert into llx_c_forme_juridique (fk_pays, code, libelle) values (1,'31','Personne morale de droit étranger, immatriculée au RCS'); -insert into llx_c_forme_juridique (fk_pays, code, libelle) values (1,'32','Personne morale de droit étranger, non immatriculée au RCS'); - -insert into llx_c_forme_juridique (fk_pays, code, libelle) values (1,'41','Établissement public ou régie à caractère industriel ou commercial'); - -insert into llx_c_forme_juridique (fk_pays, code, libelle) values (1,'51','Société coopérative commerciale particulière'); -insert into llx_c_forme_juridique (fk_pays, code, libelle) values (1,'52','Société en nom collectif'); -insert into llx_c_forme_juridique (fk_pays, code, libelle) values (1,'53','Société en commandite'); -insert into llx_c_forme_juridique (fk_pays, code, libelle) values (1,'54','Société à responsabilité limitée (SARL)'); -insert into llx_c_forme_juridique (fk_pays, code, libelle) values (1,'55','Société anonyme à conseil d''administration'); -insert into llx_c_forme_juridique (fk_pays, code, libelle) values (1,'56','Société anonyme à directoire'); -insert into llx_c_forme_juridique (fk_pays, code, libelle) values (1,'57','Société par actions simplifiée'); -insert into llx_c_forme_juridique (fk_pays, code, libelle) values (1,'58','Entreprise Unipersonnelle à Responsabilité Limitée (EURL)'); - -insert into llx_c_forme_juridique (fk_pays, code, libelle) values (1,'61','Caisse d''épargne et de prévoyance'); -insert into llx_c_forme_juridique (fk_pays, code, libelle) values (1,'62','Groupement d''intérêt économique'); -insert into llx_c_forme_juridique (fk_pays, code, libelle) values (1,'63','Société coopérative agricole'); -insert into llx_c_forme_juridique (fk_pays, code, libelle) values (1,'64','Société non commerciale d''assurances'); -insert into llx_c_forme_juridique (fk_pays, code, libelle) values (1,'65','Société civile'); -insert into llx_c_forme_juridique (fk_pays, code, libelle) values (1,'69','Autres personnes de droit privé inscrites au RCS'); - -insert into llx_c_forme_juridique (fk_pays, code, libelle) values (1,'71','Administration de l''état'); -insert into llx_c_forme_juridique (fk_pays, code, libelle) values (1,'72','Collectivité territoriale'); -insert into llx_c_forme_juridique (fk_pays, code, libelle) values (1,'73','Établissement public administratif'); -insert into llx_c_forme_juridique (fk_pays, code, libelle) values (1,'74','Autre personne morale de droit public administratif'); - -insert into llx_c_forme_juridique (fk_pays, code, libelle) values (1,'81','Organisme gérant régime de protection social à adhésion obligatoire'); -insert into llx_c_forme_juridique (fk_pays, code, libelle) values (1,'82','Organisme mutualiste'); -insert into llx_c_forme_juridique (fk_pays, code, libelle) values (1,'83','Comité d''entreprise'); -insert into llx_c_forme_juridique (fk_pays, code, libelle) values (1,'84','Organisme professionnel'); -insert into llx_c_forme_juridique (fk_pays, code, libelle) values (1,'85','Organisme de retraite à adhésion non obligatoire'); - -insert into llx_c_forme_juridique (fk_pays, code, libelle) values (1,'91','Syndicat de propriétaires'); -insert into llx_c_forme_juridique (fk_pays, code, libelle) values (1,'92','Association loi 1901 ou assimilé'); -insert into llx_c_forme_juridique (fk_pays, code, libelle) values (1,'93','Fondation'); -insert into llx_c_forme_juridique (fk_pays, code, libelle) values (1,'99','Autre personne morale de droit privé'); - --- --- Pour la Belgique --- - -insert into llx_c_forme_juridique (fk_pays, code, libelle) values (2, '200', 'Indépendant'); -insert into llx_c_forme_juridique (fk_pays, code, libelle) values (2, '201', 'SPRL - Société à responsabilité limitée'); -insert into llx_c_forme_juridique (fk_pays, code, libelle) values (2, '202', 'SA - Société Anonyme'); -insert into llx_c_forme_juridique (fk_pays, code, libelle) values (2, '203', 'SCRL - Société coopérative à responsabilité limitée'); -insert into llx_c_forme_juridique (fk_pays, code, libelle) values (2, '204', 'ASBL - Association sans but Lucratif'); -insert into llx_c_forme_juridique (fk_pays, code, libelle) values (2, '205', 'SCRI - Société coopérative à responsabilité illimitée'); -insert into llx_c_forme_juridique (fk_pays, code, libelle) values (2, '206', 'SCS - Société en commandite simple'); -insert into llx_c_forme_juridique (fk_pays, code, libelle) values (2, '207', 'SCA - Société en commandite par action'); -insert into llx_c_forme_juridique (fk_pays, code, libelle) values (2, '208', 'SNC - Société en nom collectif'); -insert into llx_c_forme_juridique (fk_pays, code, libelle) values (2, '209', 'GIE - Groupement d''intérêt économique'); -insert into llx_c_forme_juridique (fk_pays, code, libelle) values (2, '210', 'GEIE - Groupement européen d''intérêt économique'); - --- --- Pour la Suisse --- - -insert into llx_c_forme_juridique (fk_pays, code, libelle) values (6, '600', 'Raison Individuelle'); -insert into llx_c_forme_juridique (fk_pays, code, libelle) values (6, '601', 'Société Simple'); -insert into llx_c_forme_juridique (fk_pays, code, libelle) values (6, '602', 'Société en nom collectif'); -insert into llx_c_forme_juridique (fk_pays, code, libelle) values (6, '603', 'Société en commandite'); -insert into llx_c_forme_juridique (fk_pays, code, libelle) values (6, '604', 'Société anonyme (SA)'); -insert into llx_c_forme_juridique (fk_pays, code, libelle) values (6, '605', 'Société en commandite par actions'); -insert into llx_c_forme_juridique (fk_pays, code, libelle) values (6, '606', 'Société à responsabilité limitée (SARL)'); -insert into llx_c_forme_juridique (fk_pays, code, libelle) values (6, '607', 'Société coopérative'); -insert into llx_c_forme_juridique (fk_pays, code, libelle) values (6, '608', 'Association'); -insert into llx_c_forme_juridique (fk_pays, code, libelle) values (6, '609', 'Fondation'); - --- --- Pour le Royaume Uni --- - -insert into llx_c_forme_juridique (fk_pays, code, libelle) values (7, '700', 'Sole Trader'); -insert into llx_c_forme_juridique (fk_pays, code, libelle) values (7, '701', 'Partnership'); -insert into llx_c_forme_juridique (fk_pays, code, libelle) values (7, '702', 'Private Limited Company by shares - (LTD)'); -insert into llx_c_forme_juridique (fk_pays, code, libelle) values (7, '703', 'Public Limited Company'); -insert into llx_c_forme_juridique (fk_pays, code, libelle) values (7, '704', 'Workers Cooperative'); -insert into llx_c_forme_juridique (fk_pays, code, libelle) values (7, '705', 'Limited Liability Partnership'); -insert into llx_c_forme_juridique (fk_pays, code, libelle) values (7, '706', 'Franchise'); - --- --- Types paiement --- - -delete from llx_c_paiement; -insert into llx_c_paiement (id,code,libelle,type,active) values (0, '', '-', 3,1); -insert into llx_c_paiement (id,code,libelle,type,active) values (1, 'TIP', 'TIP', 2,1); -insert into llx_c_paiement (id,code,libelle,type,active) values (2, 'VIR', 'Virement', 2,1); -insert into llx_c_paiement (id,code,libelle,type,active) values (3, 'PRE', 'Prélèvement', 2,1); -insert into llx_c_paiement (id,code,libelle,type,active) values (4, 'LIQ', 'Espèces', 2,1); -insert into llx_c_paiement (id,code,libelle,type,active) values (5, 'VAD', 'Paiement en ligne', 2,0); -insert into llx_c_paiement (id,code,libelle,type,active) values (6, 'CB', 'Carte Bancaire', 2,1); -insert into llx_c_paiement (id,code,libelle,type,active) values (7, 'CHQ', 'Chèque', 2,1); -insert into llx_c_paiement (id,code,libelle,type,active) values (8, 'TRA', 'Traite', 2,0); -insert into llx_c_paiement (id,code,libelle,type,active) values (9, 'LCR', 'LCR', 2,0); -insert into llx_c_paiement (id,code,libelle,type,active) values (10,'FAC', 'Factor', 2,0); -insert into llx_c_paiement (id,code,libelle,type,active) values (11,'PRO', 'Proforma', 2,0); - --- --- Pays --- - --- delete from llx_c_pays; -insert into llx_c_pays (rowid,code,libelle) values (0, '' , '-' ); -insert into llx_c_pays (rowid,code,libelle) values (1, 'FR', 'France' ); -insert into llx_c_pays (rowid,code,libelle) values (2, 'BE', 'Belgique' ); -insert into llx_c_pays (rowid,code,libelle) values (3, 'IT', 'Italie' ); -insert into llx_c_pays (rowid,code,libelle) values (4, 'ES', 'Espagne' ); -insert into llx_c_pays (rowid,code,libelle) values (5, 'DE', 'Allemagne' ); -insert into llx_c_pays (rowid,code,libelle) values (6, 'CH', 'Suisse' ); -insert into llx_c_pays (rowid,code,libelle) values (7, 'GB', 'Royaume uni' ); -insert into llx_c_pays (rowid,code,libelle) values (8, 'IE', 'Irlande' ); -insert into llx_c_pays (rowid,code,libelle) values (9, 'CN', 'Chine' ); -insert into llx_c_pays (rowid,code,libelle) values (10, 'TN', 'Tunisie' ); -insert into llx_c_pays (rowid,code,libelle) values (11, 'US', 'Etats Unis' ); -insert into llx_c_pays (rowid,code,libelle) values (12, 'MA', 'Maroc' ); -insert into llx_c_pays (rowid,code,libelle) values (13, 'DZ', 'Algérie' ); -insert into llx_c_pays (rowid,code,libelle) values (14, 'CA', 'Canada' ); -insert into llx_c_pays (rowid,code,libelle) values (15, 'TG', 'Togo' ); -insert into llx_c_pays (rowid,code,libelle) values (16, 'GA', 'Gabon' ); -insert into llx_c_pays (rowid,code,libelle) values (17, 'NL', 'Pays Bas' ); -insert into llx_c_pays (rowid,code,libelle) values (18, 'HU', 'Hongrie' ); -insert into llx_c_pays (rowid,code,libelle) values (19, 'RU', 'Russie' ); -insert into llx_c_pays (rowid,code,libelle) values (20, 'SE', 'Suède' ); -insert into llx_c_pays (rowid,code,libelle) values (21, 'CI', 'Côte d''Ivoire' ); -insert into llx_c_pays (rowid,code,libelle) values (22, 'SN', 'Sénégal' ); -insert into llx_c_pays (rowid,code,libelle) values (23, 'AR', 'Argentine' ); -insert into llx_c_pays (rowid,code,libelle) values (24, 'CM', 'Cameroun' ); -insert into llx_c_pays (rowid,code,libelle) values (25, 'PT', 'Portugal' ); -insert into llx_c_pays (rowid,code,libelle) values (26, 'SA', 'Arabie Saoudite'); -insert into llx_c_pays (rowid,code,libelle) values (27, 'MC', 'Monaco' ); -insert into llx_c_pays (rowid,code,libelle) values (28, 'AU', 'Australie' ); -insert into llx_c_pays (rowid,code,libelle) values (29, 'SG', 'Singapoure' ); -insert into llx_c_pays (rowid,code,libelle) values (30, 'AF', 'Afghanistan' ); -insert into llx_c_pays (rowid,code,libelle) values (31, 'AX', 'Iles Aland' ); -insert into llx_c_pays (rowid,code,libelle) values (32, 'AL', 'Albanie' ); -insert into llx_c_pays (rowid,code,libelle) values (33, 'AS', 'Samoa américaines'); -insert into llx_c_pays (rowid,code,libelle) values (34, 'AD', 'Andorre' ); -insert into llx_c_pays (rowid,code,libelle) values (35, 'AO', 'Angola' ); -insert into llx_c_pays (rowid,code,libelle) values (36, 'AI', 'Anguilla' ); -insert into llx_c_pays (rowid,code,libelle) values (37, 'AQ', 'Antarctique' ); -insert into llx_c_pays (rowid,code,libelle) values (38, 'AG', 'Antigua-et-Barbuda'); -insert into llx_c_pays (rowid,code,libelle) values (39, 'AM', 'Arménie' ); -insert into llx_c_pays (rowid,code,libelle) values (40, 'AW', 'Aruba' ); -insert into llx_c_pays (rowid,code,libelle) values (41, 'AT', 'Autriche' ); -insert into llx_c_pays (rowid,code,libelle) values (42, 'AZ', 'Azerbaïdjan' ); -insert into llx_c_pays (rowid,code,libelle) values (43, 'BS', 'Bahamas' ); -insert into llx_c_pays (rowid,code,libelle) values (44, 'BH', 'Bahreïn' ); -insert into llx_c_pays (rowid,code,libelle) values (45, 'BD', 'Bangladesh' ); -insert into llx_c_pays (rowid,code,libelle) values (46, 'BB', 'Barbade' ); -insert into llx_c_pays (rowid,code,libelle) values (47, 'BY', 'Biélorussie' ); -insert into llx_c_pays (rowid,code,libelle) values (48, 'BZ', 'Belize' ); -insert into llx_c_pays (rowid,code,libelle) values (49, 'BJ', 'Bénin' ); -insert into llx_c_pays (rowid,code,libelle) values (50, 'BM', 'Bermudes' ); -insert into llx_c_pays (rowid,code,libelle) values (51, 'BT', 'Bhoutan' ); -insert into llx_c_pays (rowid,code,libelle) values (52, 'BO', 'Bolivie' ); -insert into llx_c_pays (rowid,code,libelle) values (53, 'BA', 'Bosnie-Herzégovine'); -insert into llx_c_pays (rowid,code,libelle) values (54, 'BW', 'Botswana' ); -insert into llx_c_pays (rowid,code,libelle) values (55, 'BV', 'Ile Bouvet' ); -insert into llx_c_pays (rowid,code,libelle) values (56, 'BR', 'Brésil' ); -insert into llx_c_pays (rowid,code,libelle) values (57, 'IO', 'Territoire britannique de l''Océan Indien'); -insert into llx_c_pays (rowid,code,libelle) values (58, 'BN', 'Brunei' ); -insert into llx_c_pays (rowid,code,libelle) values (59, 'BG', 'Bulgarie' ); -insert into llx_c_pays (rowid,code,libelle) values (60, 'BF', 'Burkina Faso' ); -insert into llx_c_pays (rowid,code,libelle) values (61, 'BI', 'Burundi' ); -insert into llx_c_pays (rowid,code,libelle) values (62, 'KH', 'Cambodge' ); -insert into llx_c_pays (rowid,code,libelle) values (63, 'CV', 'Cap-Vert' ); -insert into llx_c_pays (rowid,code,libelle) values (64, 'KY', 'Iles Cayman' ); -insert into llx_c_pays (rowid,code,libelle) values (65, 'CF', 'République centrafricaine'); -insert into llx_c_pays (rowid,code,libelle) values (66, 'TD', 'Tchad' ); -insert into llx_c_pays (rowid,code,libelle) values (67, 'CL', 'Chili' ); -insert into llx_c_pays (rowid,code,libelle) values (68, 'CX', 'Ile Christmas' ); -insert into llx_c_pays (rowid,code,libelle) values (69, 'CC', 'Iles des Cocos (Keeling)'); -insert into llx_c_pays (rowid,code,libelle) values (70, 'CO', 'Colombie' ); -insert into llx_c_pays (rowid,code,libelle) values (71, 'KM', 'Comores' ); -insert into llx_c_pays (rowid,code,libelle) values (72, 'CG', 'Congo' ); -insert into llx_c_pays (rowid,code,libelle) values (73, 'CD', 'République démocratique du Congo'); -insert into llx_c_pays (rowid,code,libelle) values (74, 'CK', 'Iles Cook' ); -insert into llx_c_pays (rowid,code,libelle) values (75, 'CR', 'Costa Rica' ); -insert into llx_c_pays (rowid,code,libelle) values (76, 'HR', 'Croatie' ); -insert into llx_c_pays (rowid,code,libelle) values (77, 'CU', 'Cuba' ); -insert into llx_c_pays (rowid,code,libelle) values (78, 'CY', 'Chypre' ); -insert into llx_c_pays (rowid,code,libelle) values (79, 'CZ', 'République Tchèque'); -insert into llx_c_pays (rowid,code,libelle) values (80, 'DK', 'Danemark' ); -insert into llx_c_pays (rowid,code,libelle) values (81, 'DJ', 'Djibouti' ); -insert into llx_c_pays (rowid,code,libelle) values (82, 'DM', 'Dominique' ); -insert into llx_c_pays (rowid,code,libelle) values (83, 'DO', 'République Dominicaine'); -insert into llx_c_pays (rowid,code,libelle) values (84, 'EC', 'Equateur' ); -insert into llx_c_pays (rowid,code,libelle) values (85, 'EG', 'Egypte' ); -insert into llx_c_pays (rowid,code,libelle) values (86, 'SV', 'Salvador' ); -insert into llx_c_pays (rowid,code,libelle) values (87, 'GQ', 'Guinée Equatoriale'); -insert into llx_c_pays (rowid,code,libelle) values (88, 'ER', 'Erythrée' ); -insert into llx_c_pays (rowid,code,libelle) values (89, 'EE', 'Estonie' ); -insert into llx_c_pays (rowid,code,libelle) values (90, 'ET', 'Ethiopie' ); -insert into llx_c_pays (rowid,code,libelle) values (91, 'FK', 'Iles Falkland' ); -insert into llx_c_pays (rowid,code,libelle) values (92, 'FO', 'Iles Féroé' ); -insert into llx_c_pays (rowid,code,libelle) values (93, 'FJ', 'Iles Fidji' ); -insert into llx_c_pays (rowid,code,libelle) values (94, 'FI', 'Finlande' ); -insert into llx_c_pays (rowid,code,libelle) values (95, 'GF', 'Guyane française'); -insert into llx_c_pays (rowid,code,libelle) values (96, 'PF', 'Polynésie française'); -insert into llx_c_pays (rowid,code,libelle) values (97, 'TF', 'Terres australes françaises'); -insert into llx_c_pays (rowid,code,libelle) values (98, 'GM', 'Gambie' ); -insert into llx_c_pays (rowid,code,libelle) values (99, 'GE', 'Géorgie' ); -insert into llx_c_pays (rowid,code,libelle) values (100, 'GH', 'Ghana' ); -insert into llx_c_pays (rowid,code,libelle) values (101, 'GI', 'Gibraltar' ); -insert into llx_c_pays (rowid,code,libelle) values (102, 'GR', 'Grèce' ); -insert into llx_c_pays (rowid,code,libelle) values (103, 'GL', 'Groenland' ); -insert into llx_c_pays (rowid,code,libelle) values (104, 'GD', 'Grenade' ); -insert into llx_c_pays (rowid,code,libelle) values (105, 'GP', 'Guadeloupe' ); -insert into llx_c_pays (rowid,code,libelle) values (106, 'GU', 'Guam' ); -insert into llx_c_pays (rowid,code,libelle) values (107, 'GT', 'Guatemala' ); -insert into llx_c_pays (rowid,code,libelle) values (108, 'GN', 'Guinée' ); -insert into llx_c_pays (rowid,code,libelle) values (109, 'GW', 'Guinée-Bissao' ); -insert into llx_c_pays (rowid,code,libelle) values (110, 'GY', 'Guyana' ); -insert into llx_c_pays (rowid,code,libelle) values (111, 'HT', 'Haïti' ); -insert into llx_c_pays (rowid,code,libelle) values (112, 'HM', 'Iles Heard et McDonald'); -insert into llx_c_pays (rowid,code,libelle) values (113, 'VA', 'Saint-Siège (Vatican)'); -insert into llx_c_pays (rowid,code,libelle) values (114, 'HN', 'Honduras' ); -insert into llx_c_pays (rowid,code,libelle) values (115, 'HK', 'Hong Kong' ); -insert into llx_c_pays (rowid,code,libelle) values (116, 'IS', 'Islande' ); -insert into llx_c_pays (rowid,code,libelle) values (117, 'IN', 'Inde' ); -insert into llx_c_pays (rowid,code,libelle) values (118, 'ID', 'Indonésie' ); -insert into llx_c_pays (rowid,code,libelle) values (119, 'IR', 'Iran' ); -insert into llx_c_pays (rowid,code,libelle) values (120, 'IQ', 'Iraq' ); -insert into llx_c_pays (rowid,code,libelle) values (121, 'IL', 'Israël' ); -insert into llx_c_pays (rowid,code,libelle) values (122, 'JM', 'Jamaïque' ); -insert into llx_c_pays (rowid,code,libelle) values (123, 'JP', 'Japon' ); -insert into llx_c_pays (rowid,code,libelle) values (124, 'JO', 'Jordanie' ); -insert into llx_c_pays (rowid,code,libelle) values (125, 'KZ', 'Kazakhstan' ); -insert into llx_c_pays (rowid,code,libelle) values (126, 'KE', 'Kenya' ); -insert into llx_c_pays (rowid,code,libelle) values (127, 'KI', 'Kiribati' ); -insert into llx_c_pays (rowid,code,libelle) values (128, 'KP', 'Corée du Nord' ); -insert into llx_c_pays (rowid,code,libelle) values (129, 'KR', 'Corée du Sud' ); -insert into llx_c_pays (rowid,code,libelle) values (130, 'KW', 'Koweït' ); -insert into llx_c_pays (rowid,code,libelle) values (131, 'KG', 'Kirghizistan' ); -insert into llx_c_pays (rowid,code,libelle) values (132, 'LA', 'Laos' ); -insert into llx_c_pays (rowid,code,libelle) values (133, 'LV', 'Lettonie' ); -insert into llx_c_pays (rowid,code,libelle) values (134, 'LB', 'Liban' ); -insert into llx_c_pays (rowid,code,libelle) values (135, 'LS', 'Lesotho' ); -insert into llx_c_pays (rowid,code,libelle) values (136, 'LR', 'Liberia' ); -insert into llx_c_pays (rowid,code,libelle) values (137, 'LY', 'Libye' ); -insert into llx_c_pays (rowid,code,libelle) values (138, 'LI', 'Liechtenstein' ); -insert into llx_c_pays (rowid,code,libelle) values (139, 'LT', 'Lituanie' ); -insert into llx_c_pays (rowid,code,libelle) values (140, 'LU', 'Luxembourg' ); -insert into llx_c_pays (rowid,code,libelle) values (141, 'MO', 'Macao' ); -insert into llx_c_pays (rowid,code,libelle) values (142, 'MK', 'ex-République yougoslave de Macédoine'); -insert into llx_c_pays (rowid,code,libelle) values (143, 'MG', 'Madagascar' ); -insert into llx_c_pays (rowid,code,libelle) values (144, 'MW', 'Malawi' ); -insert into llx_c_pays (rowid,code,libelle) values (145, 'MY', 'Malaisie' ); -insert into llx_c_pays (rowid,code,libelle) values (146, 'MV', 'Maldives' ); -insert into llx_c_pays (rowid,code,libelle) values (147, 'ML', 'Mali' ); -insert into llx_c_pays (rowid,code,libelle) values (148, 'MT', 'Malte' ); -insert into llx_c_pays (rowid,code,libelle) values (149, 'MH', 'Iles Marshall' ); -insert into llx_c_pays (rowid,code,libelle) values (150, 'MQ', 'Martinique' ); -insert into llx_c_pays (rowid,code,libelle) values (151, 'MR', 'Mauritanie' ); -insert into llx_c_pays (rowid,code,libelle) values (152, 'MU', 'Maurice' ); -insert into llx_c_pays (rowid,code,libelle) values (153, 'YT', 'Mayotte' ); -insert into llx_c_pays (rowid,code,libelle) values (154, 'MX', 'Mexique' ); -insert into llx_c_pays (rowid,code,libelle) values (155, 'FM', 'Micronésie' ); -insert into llx_c_pays (rowid,code,libelle) values (156, 'MD', 'Moldavie' ); -insert into llx_c_pays (rowid,code,libelle) values (157, 'MN', 'Mongolie' ); -insert into llx_c_pays (rowid,code,libelle) values (158, 'MS', 'Monserrat' ); -insert into llx_c_pays (rowid,code,libelle) values (159, 'MZ', 'Mozambique' ); -insert into llx_c_pays (rowid,code,libelle) values (160, 'MM', 'Birmanie' ); -insert into llx_c_pays (rowid,code,libelle) values (161, 'NA', 'Namibie' ); -insert into llx_c_pays (rowid,code,libelle) values (162, 'NR', 'Nauru' ); -insert into llx_c_pays (rowid,code,libelle) values (163, 'NP', 'Népal' ); -insert into llx_c_pays (rowid,code,libelle) values (164, 'AN', 'Antilles néerlandaises'); -insert into llx_c_pays (rowid,code,libelle) values (165, 'NC', 'Nouvelle-Calédonie'); -insert into llx_c_pays (rowid,code,libelle) values (166, 'NZ', 'Nouvelle-Zélande'); -insert into llx_c_pays (rowid,code,libelle) values (167, 'NI', 'Nicaragua' ); -insert into llx_c_pays (rowid,code,libelle) values (168, 'NE', 'Niger' ); -insert into llx_c_pays (rowid,code,libelle) values (169, 'NG', 'Nigeria' ); -insert into llx_c_pays (rowid,code,libelle) values (170, 'NU', 'Nioué' ); -insert into llx_c_pays (rowid,code,libelle) values (171, 'NF', 'Ile Norfolk' ); -insert into llx_c_pays (rowid,code,libelle) values (172, 'MP', 'Mariannes du Nord'); -insert into llx_c_pays (rowid,code,libelle) values (173, 'NO', 'Norvège' ); -insert into llx_c_pays (rowid,code,libelle) values (174, 'OM', 'Oman' ); -insert into llx_c_pays (rowid,code,libelle) values (175, 'PK', 'Pakistan' ); -insert into llx_c_pays (rowid,code,libelle) values (176, 'PW', 'Belau' ); -insert into llx_c_pays (rowid,code,libelle) values (177, 'PS', 'territoire Palestinien Occupé'); -insert into llx_c_pays (rowid,code,libelle) values (178, 'PA', 'Panama' ); -insert into llx_c_pays (rowid,code,libelle) values (179, 'PG', 'Papouasie-Nouvelle-Guinée'); -insert into llx_c_pays (rowid,code,libelle) values (180, 'PY', 'Paraguay' ); -insert into llx_c_pays (rowid,code,libelle) values (181, 'PE', 'Pérou' ); -insert into llx_c_pays (rowid,code,libelle) values (182, 'PH', 'Philippines' ); -insert into llx_c_pays (rowid,code,libelle) values (183, 'PN', 'Iles Pitcairn' ); -insert into llx_c_pays (rowid,code,libelle) values (184, 'PL', 'Pologne' ); -insert into llx_c_pays (rowid,code,libelle) values (185, 'PR', 'Porto Rico' ); -insert into llx_c_pays (rowid,code,libelle) values (186, 'QA', 'Qatar' ); -insert into llx_c_pays (rowid,code,libelle) values (187, 'RE', 'Réunion' ); -insert into llx_c_pays (rowid,code,libelle) values (188, 'RO', 'Roumanie' ); -insert into llx_c_pays (rowid,code,libelle) values (189, 'RW', 'Rwanda' ); -insert into llx_c_pays (rowid,code,libelle) values (190, 'SH', 'Sainte-Hélène' ); -insert into llx_c_pays (rowid,code,libelle) values (191, 'KN', 'Saint-Christophe-et-Niévès'); -insert into llx_c_pays (rowid,code,libelle) values (192, 'LC', 'Sainte-Lucie' ); -insert into llx_c_pays (rowid,code,libelle) values (193, 'PM', 'Saint-Pierre-et-Miquelon'); -insert into llx_c_pays (rowid,code,libelle) values (194, 'VC', 'Saint-Vincent-et-les-Grenadines'); -insert into llx_c_pays (rowid,code,libelle) values (195, 'WS', 'Samoa' ); -insert into llx_c_pays (rowid,code,libelle) values (196, 'SM', 'Saint-Marin' ); -insert into llx_c_pays (rowid,code,libelle) values (197, 'ST', 'Sao Tomé-et-Principe'); -insert into llx_c_pays (rowid,code,libelle) values (198, 'CS', 'Serbie-Monténégro'); -insert into llx_c_pays (rowid,code,libelle) values (199, 'SC', 'Seychelles' ); -insert into llx_c_pays (rowid,code,libelle) values (200, 'SL', 'Sierra Leone' ); -insert into llx_c_pays (rowid,code,libelle) values (201, 'SK', 'Slovaquie' ); -insert into llx_c_pays (rowid,code,libelle) values (202, 'SI', 'Slovénie' ); -insert into llx_c_pays (rowid,code,libelle) values (203, 'SB', 'Iles Salomon' ); -insert into llx_c_pays (rowid,code,libelle) values (204, 'SO', 'Somalie' ); -insert into llx_c_pays (rowid,code,libelle) values (205, 'ZA', 'Afrique du Sud'); -insert into llx_c_pays (rowid,code,libelle) values (206, 'GS', 'Iles Géorgie du Sud et Sandwich du Sud'); -insert into llx_c_pays (rowid,code,libelle) values (207, 'LK', 'Sri Lanka' ); -insert into llx_c_pays (rowid,code,libelle) values (208, 'SD', 'Soudan' ); -insert into llx_c_pays (rowid,code,libelle) values (209, 'SR', 'Suriname' ); -insert into llx_c_pays (rowid,code,libelle) values (210, 'SJ', 'Iles Svalbard et Jan Mayen'); -insert into llx_c_pays (rowid,code,libelle) values (211, 'SZ', 'Swaziland' ); -insert into llx_c_pays (rowid,code,libelle) values (212, 'SY', 'Syrie' ); -insert into llx_c_pays (rowid,code,libelle) values (213, 'TW', 'Taïwan' ); -insert into llx_c_pays (rowid,code,libelle) values (214, 'TJ', 'Tadjikistan' ); -insert into llx_c_pays (rowid,code,libelle) values (215, 'TZ', 'Tanzanie' ); -insert into llx_c_pays (rowid,code,libelle) values (216, 'TH', 'Thaïlande' ); -insert into llx_c_pays (rowid,code,libelle) values (217, 'TL', 'Timor Oriental'); -insert into llx_c_pays (rowid,code,libelle) values (218, 'TK', 'Tokélaou' ); -insert into llx_c_pays (rowid,code,libelle) values (219, 'TO', 'Tonga' ); -insert into llx_c_pays (rowid,code,libelle) values (220, 'TT', 'Trinité-et-Tobago'); -insert into llx_c_pays (rowid,code,libelle) values (221, 'TR', 'Turquie' ); -insert into llx_c_pays (rowid,code,libelle) values (222, 'TM', 'Turkménistan' ); -insert into llx_c_pays (rowid,code,libelle) values (223, 'TC', 'Iles Turks-et-Caicos'); -insert into llx_c_pays (rowid,code,libelle) values (224, 'TV', 'Tuvalu' ); -insert into llx_c_pays (rowid,code,libelle) values (225, 'UG', 'Ouganda' ); -insert into llx_c_pays (rowid,code,libelle) values (226, 'UA', 'Ukraine' ); -insert into llx_c_pays (rowid,code,libelle) values (227, 'AE', 'Émirats arabes unis'); -insert into llx_c_pays (rowid,code,libelle) values (228, 'UM', 'Iles mineures éloignées des États-Unis'); -insert into llx_c_pays (rowid,code,libelle) values (229, 'UY', 'Uruguay' ); -insert into llx_c_pays (rowid,code,libelle) values (230, 'UZ', 'Ouzbékistan' ); -insert into llx_c_pays (rowid,code,libelle) values (231, 'VU', 'Vanuatu' ); -insert into llx_c_pays (rowid,code,libelle) values (232, 'VE', 'Vénézuela' ); -insert into llx_c_pays (rowid,code,libelle) values (233, 'VN', 'Viêt Nam' ); -insert into llx_c_pays (rowid,code,libelle) values (234, 'VG', 'Iles Vierges britanniques'); -insert into llx_c_pays (rowid,code,libelle) values (235, 'VI', 'Iles Vierges américaines'); -insert into llx_c_pays (rowid,code,libelle) values (236, 'WF', 'Wallis-et-Futuna'); -insert into llx_c_pays (rowid,code,libelle) values (237, 'EH', 'Sahara occidental'); -insert into llx_c_pays (rowid,code,libelle) values (238, 'YE', 'Yémen' ); -insert into llx_c_pays (rowid,code,libelle) values (239, 'ZM', 'Zambie' ); -insert into llx_c_pays (rowid,code,libelle) values (240, 'ZW', 'Zimbabwe' ); - - --- --- Regions --- - -SET IDENTITY_INSERT dbo.llx_c_regions ON - -insert into llx_c_regions (rowid,fk_pays,code_region,cheflieu,tncc,nom) values (0,0,0,'0',0,'-'); --- Regions de France (id pays=1) -insert into llx_c_regions (rowid,fk_pays,code_region,cheflieu,tncc,nom) values ( 101, 1, 1,'97105',3,'Guadeloupe'); -insert into llx_c_regions (rowid,fk_pays,code_region,cheflieu,tncc,nom) values ( 102, 1, 2,'97209',3,'Martinique'); -insert into llx_c_regions (rowid,fk_pays,code_region,cheflieu,tncc,nom) values ( 103, 1, 3,'97302',3,'Guyane'); -insert into llx_c_regions (rowid,fk_pays,code_region,cheflieu,tncc,nom) values ( 104, 1, 4,'97411',3,'Réunion'); -insert into llx_c_regions (rowid,fk_pays,code_region,cheflieu,tncc,nom) values ( 105, 1, 11,'75056',1,'Île-de-France'); -insert into llx_c_regions (rowid,fk_pays,code_region,cheflieu,tncc,nom) values ( 106, 1, 21,'51108',0,'Champagne-Ardenne'); -insert into llx_c_regions (rowid,fk_pays,code_region,cheflieu,tncc,nom) values ( 107, 1, 22,'80021',0,'Picardie'); -insert into llx_c_regions (rowid,fk_pays,code_region,cheflieu,tncc,nom) values ( 108, 1, 23,'76540',0,'Haute-Normandie'); -insert into llx_c_regions (rowid,fk_pays,code_region,cheflieu,tncc,nom) values ( 109, 1, 24,'45234',2,'Centre'); -insert into llx_c_regions (rowid,fk_pays,code_region,cheflieu,tncc,nom) values ( 110, 1, 25,'14118',0,'Basse-Normandie'); -insert into llx_c_regions (rowid,fk_pays,code_region,cheflieu,tncc,nom) values ( 111, 1, 26,'21231',0,'Bourgogne'); -insert into llx_c_regions (rowid,fk_pays,code_region,cheflieu,tncc,nom) values ( 112, 1, 31,'59350',2,'Nord-Pas-de-Calais'); -insert into llx_c_regions (rowid,fk_pays,code_region,cheflieu,tncc,nom) values ( 113, 1, 41,'57463',0,'Lorraine'); -insert into llx_c_regions (rowid,fk_pays,code_region,cheflieu,tncc,nom) values ( 114, 1, 42,'67482',1,'Alsace'); -insert into llx_c_regions (rowid,fk_pays,code_region,cheflieu,tncc,nom) values ( 115, 1, 43,'25056',0,'Franche-Comté'); -insert into llx_c_regions (rowid,fk_pays,code_region,cheflieu,tncc,nom) values ( 116, 1, 52,'44109',4,'Pays de la Loire'); -insert into llx_c_regions (rowid,fk_pays,code_region,cheflieu,tncc,nom) values ( 117, 1, 53,'35238',0,'Bretagne'); -insert into llx_c_regions (rowid,fk_pays,code_region,cheflieu,tncc,nom) values ( 118, 1, 54,'86194',2,'Poitou-Charentes'); -insert into llx_c_regions (rowid,fk_pays,code_region,cheflieu,tncc,nom) values ( 119, 1, 72,'33063',1,'Aquitaine'); -insert into llx_c_regions (rowid,fk_pays,code_region,cheflieu,tncc,nom) values ( 120, 1, 73,'31555',0,'Midi-Pyrénées'); -insert into llx_c_regions (rowid,fk_pays,code_region,cheflieu,tncc,nom) values ( 121, 1, 74,'87085',2,'Limousin'); -insert into llx_c_regions (rowid,fk_pays,code_region,cheflieu,tncc,nom) values ( 122, 1, 82,'69123',2,'Rhône-Alpes'); -insert into llx_c_regions (rowid,fk_pays,code_region,cheflieu,tncc,nom) values ( 123, 1, 83,'63113',1,'Auvergne'); -insert into llx_c_regions (rowid,fk_pays,code_region,cheflieu,tncc,nom) values ( 124, 1, 91,'34172',2,'Languedoc-Roussillon'); -insert into llx_c_regions (rowid,fk_pays,code_region,cheflieu,tncc,nom) values ( 125, 1, 93,'13055',0,'Provence-Alpes-Côte d''Azur'); -insert into llx_c_regions (rowid,fk_pays,code_region,cheflieu,tncc,nom) values ( 126, 1, 94,'2A004',0,'Corse'); - --- Regions de Belgique (id pays=2) -insert into llx_c_regions (rowid,fk_pays,code_region,cheflieu,tncc,nom) values ( 201, 2, 201, '',1,'Flandre'); -insert into llx_c_regions (rowid,fk_pays,code_region,cheflieu,tncc,nom) values ( 202, 2, 202, '',2,'Wallonie'); -insert into llx_c_regions (rowid,fk_pays,code_region,cheflieu,tncc,nom) values ( 203, 2, 203, '',3,'Bruxelles-Capitale'); - --- Regions d'Australie (id pays=28) -insert into llx_c_regions (rowid,fk_pays,code_region,cheflieu,tncc,nom) values (2801,28,2801, '',0,'Australia'); - -SET IDENTITY_INSERT dbo.llx_c_regions OFF - --- --- Departements/Cantons/Provinces --- - -SET IDENTITY_INSERT dbo.llx_c_departements ON - -insert into llx_c_departements (rowid, fk_region, code_departement,cheflieu,tncc,ncc,nom) values (0,0,'0','0',0,'-','-'); - -SET IDENTITY_INSERT dbo.llx_c_departements OFF - --- Departements de France -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (82,'01','01053',5,'AIN','Ain'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (22,'02','02408',5,'AISNE','Aisne'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (83,'03','03190',5,'ALLIER','Allier'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (93,'04','04070',4,'ALPES-DE-HAUTE-PROVENCE','Alpes-de-Haute-Provence'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (93,'05','05061',4,'HAUTES-ALPES','Hautes-Alpes'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (93,'06','06088',4,'ALPES-MARITIMES','Alpes-Maritimes'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (82,'07','07186',5,'ARDECHE','Ardèche'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (21,'08','08105',4,'ARDENNES','Ardennes'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (73,'09','09122',5,'ARIEGE','Ariège'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (21,'10','10387',5,'AUBE','Aube'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (91,'11','11069',5,'AUDE','Aude'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (73,'12','12202',5,'AVEYRON','Aveyron'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (93,'13','13055',4,'BOUCHES-DU-RHONE','Bouches-du-Rhône'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (25,'14','14118',2,'CALVADOS','Calvados'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (83,'15','15014',2,'CANTAL','Cantal'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (54,'16','16015',3,'CHARENTE','Charente'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (54,'17','17300',3,'CHARENTE-MARITIME','Charente-Maritime'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (24,'18','18033',2,'CHER','Cher'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (74,'19','19272',3,'CORREZE','Corrèze'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (94,'2A','2A004',3,'CORSE-DU-SUD','Corse-du-Sud'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (94,'2B','2B033',3,'HAUTE-CORSE','Haute-Corse'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (26,'21','21231',3,'COTE-D''OR','Côte-d''Or'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (53,'22','22278',4,'COTES-D''ARMOR','Côtes-d''Armor'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (74,'23','23096',3,'CREUSE','Creuse'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (72,'24','24322',3,'DORDOGNE','Dordogne'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (43,'25','25056',2,'DOUBS','Doubs'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (82,'26','26362',3,'DROME','Drôme'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (23,'27','27229',5,'EURE','Eure'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (24,'28','28085',1,'EURE-ET-LOIR','Eure-et-Loir'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (53,'29','29232',2,'FINISTERE','Finistère'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (91,'30','30189',2,'GARD','Gard'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (73,'31','31555',3,'HAUTE-GARONNE','Haute-Garonne'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (73,'32','32013',2,'GERS','Gers'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (72,'33','33063',3,'GIRONDE','Gironde'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (91,'34','34172',5,'HERAULT','Hérault'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (53,'35','35238',1,'ILLE-ET-VILAINE','Ille-et-Vilaine'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (24,'36','36044',5,'INDRE','Indre'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (24,'37','37261',1,'INDRE-ET-LOIRE','Indre-et-Loire'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (82,'38','38185',5,'ISERE','Isère'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (43,'39','39300',2,'JURA','Jura'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (72,'40','40192',4,'LANDES','Landes'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (24,'41','41018',0,'LOIR-ET-CHER','Loir-et-Cher'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (82,'42','42218',3,'LOIRE','Loire'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (83,'43','43157',3,'HAUTE-LOIRE','Haute-Loire'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (52,'44','44109',3,'LOIRE-ATLANTIQUE','Loire-Atlantique'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (24,'45','45234',2,'LOIRET','Loiret'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (73,'46','46042',2,'LOT','Lot'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (72,'47','47001',0,'LOT-ET-GARONNE','Lot-et-Garonne'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (91,'48','48095',3,'LOZERE','Lozère'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (52,'49','49007',0,'MAINE-ET-LOIRE','Maine-et-Loire'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (25,'50','50502',3,'MANCHE','Manche'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (21,'51','51108',3,'MARNE','Marne'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (21,'52','52121',3,'HAUTE-MARNE','Haute-Marne'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (52,'53','53130',3,'MAYENNE','Mayenne'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (41,'54','54395',0,'MEURTHE-ET-MOSELLE','Meurthe-et-Moselle'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (41,'55','55029',3,'MEUSE','Meuse'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (53,'56','56260',2,'MORBIHAN','Morbihan'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (41,'57','57463',3,'MOSELLE','Moselle'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (26,'58','58194',3,'NIEVRE','Nièvre'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (31,'59','59350',2,'NORD','Nord'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (22,'60','60057',5,'OISE','Oise'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (25,'61','61001',5,'ORNE','Orne'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (31,'62','62041',2,'PAS-DE-CALAIS','Pas-de-Calais'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (83,'63','63113',2,'PUY-DE-DOME','Puy-de-Dôme'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (72,'64','64445',4,'PYRENEES-ATLANTIQUES','Pyrénées-Atlantiques'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (73,'65','65440',4,'HAUTES-PYRENEES','Hautes-Pyrénées'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (91,'66','66136',4,'PYRENEES-ORIENTALES','Pyrénées-Orientales'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (42,'67','67482',2,'BAS-RHIN','Bas-Rhin'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (42,'68','68066',2,'HAUT-RHIN','Haut-Rhin'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (82,'69','69123',2,'RHONE','Rhône'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (43,'70','70550',3,'HAUTE-SAONE','Haute-Saône'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (26,'71','71270',0,'SAONE-ET-LOIRE','Saône-et-Loire'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (52,'72','72181',3,'SARTHE','Sarthe'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (82,'73','73065',3,'SAVOIE','Savoie'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (82,'74','74010',3,'HAUTE-SAVOIE','Haute-Savoie'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (11,'75','75056',0,'PARIS','Paris'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (23,'76','76540',3,'SEINE-MARITIME','Seine-Maritime'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (11,'77','77288',0,'SEINE-ET-MARNE','Seine-et-Marne'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (11,'78','78646',4,'YVELINES','Yvelines'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (54,'79','79191',4,'DEUX-SEVRES','Deux-Sèvres'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (22,'80','80021',3,'SOMME','Somme'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (73,'81','81004',2,'TARN','Tarn'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (73,'82','82121',0,'TARN-ET-GARONNE','Tarn-et-Garonne'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (93,'83','83137',2,'VAR','Var'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (93,'84','84007',0,'VAUCLUSE','Vaucluse'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (52,'85','85191',3,'VENDEE','Vendée'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (54,'86','86194',3,'VIENNE','Vienne'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (74,'87','87085',3,'HAUTE-VIENNE','Haute-Vienne'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (41,'88','88160',4,'VOSGES','Vosges'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (26,'89','89024',5,'YONNE','Yonne'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (43,'90','90010',0,'TERRITOIRE DE BELFORT','Territoire de Belfort'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (11,'91','91228',5,'ESSONNE','Essonne'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (11,'92','92050',4,'HAUTS-DE-SEINE','Hauts-de-Seine'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (11,'93','93008',3,'SEINE-SAINT-DENIS','Seine-Saint-Denis'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (11,'94','94028',2,'VAL-DE-MARNE','Val-de-Marne'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (11,'95','95500',2,'VAL-D''OISE','Val-d''Oise'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values ( 1,'971','97105',3,'GUADELOUPE','Guadeloupe'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values ( 2,'972','97209',3,'MARTINIQUE','Martinique'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values ( 3,'973','97302',3,'GUYANE','Guyane'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values ( 4,'974','97411',3,'REUNION','Réunion'); - --- Provinces de Belgique -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (201,'01','',1,'ANVERS','Anvers'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (203,'02','',3,'BRUXELLES-CAPITALE','Bruxelles-Capitale'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (202,'03','',2,'BRABANT-WALLON','Brabant-Wallon'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (201,'04','',1,'BRABANT-FLAMAND','Brabant-Flamand'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (201,'05','',1,'FLANDRE-OCCIDENTALE','Flandre-Occidentale'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (201,'06','',1,'FLANDRE-ORIENTALE','Flandre-Orientale'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (202,'07','',2,'HAINAUT','Hainaut'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (201,'08','',2,'LIEGE','Liège'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (202,'09','',1,'LIMBOURG','Limbourg'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (202,'10','',2,'LUXEMBOURG','Luxembourg'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (201,'11','',2,'NAMUR','Namur'); - --- Provinces Australie -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (2801,'NSW','',1,'','New South Wales'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (2801,'VIC','',1,'','Victoria'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (2801,'QLD','',1,'','Queensland'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (2801, 'SA','',1,'','South Australia'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (2801,'ACT','',1,'','Australia Capital Territory'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (2801,'TAS','',1,'','Tasmania'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (2801, 'WA','',1,'','Western Australia'); -insert into llx_c_departements (fk_region, code_departement,cheflieu,tncc,ncc,nom) values (2801, 'NT','',1,'','Northern Territory'); - --- --- Types etat propales --- - -delete from llx_c_propalst; -insert into llx_c_propalst (id,code,label) values (0, 'PR_DRAFT', 'Brouillon'); -insert into llx_c_propalst (id,code,label) values (1, 'PR_OPEN', 'Ouverte'); -insert into llx_c_propalst (id,code,label) values (2, 'PR_SIGNED', 'Signée'); -insert into llx_c_propalst (id,code,label) values (3, 'PR_NOTSIGNED', 'Non Signée'); -insert into llx_c_propalst (id,code,label) values (4, 'PR_FAC', 'Facturée'); - --- --- Types action st --- - -delete from llx_c_stcomm; -insert into llx_c_stcomm (id,code,libelle) values (-1, 'ST_NO', 'Ne pas contacter'); -insert into llx_c_stcomm (id,code,libelle) values ( 0, 'ST_NEVER', 'Jamais contacté'); -insert into llx_c_stcomm (id,code,libelle) values ( 1, 'ST_TODO', 'A contacter'); -insert into llx_c_stcomm (id,code,libelle) values ( 2, 'ST_PEND', 'Contact en cours'); -insert into llx_c_stcomm (id,code,libelle) values ( 3, 'ST_DONE', 'Contactée'); - --- --- Types entreprises --- - -delete from llx_c_typent; -insert into llx_c_typent (id,code,libelle,active) values ( 0, 'TE_UNKNOWN', '-', 1); -insert into llx_c_typent (id,code,libelle,active) values ( 1, 'TE_STARTUP', 'Start-up', 0); -insert into llx_c_typent (id,code,libelle,active) values ( 2, 'TE_GROUP', 'Grand groupe', 1); -insert into llx_c_typent (id,code,libelle,active) values ( 3, 'TE_MEDIUM', 'PME/PMI', 1); -insert into llx_c_typent (id,code,libelle,active) values ( 4, 'TE_SMALL', 'TPE', 1); -insert into llx_c_typent (id,code,libelle,active) values ( 5, 'TE_ADMIN', 'Administration',1); -insert into llx_c_typent (id,code,libelle,active) values ( 6, 'TE_WHOLE', 'Grossiste', 0); -insert into llx_c_typent (id,code,libelle,active) values ( 7, 'TE_RETAIL', 'Revendeur', 0); -insert into llx_c_typent (id,code,libelle,active) values ( 8, 'TE_PRIVATE', 'Particulier', 1); -insert into llx_c_typent (id,code,libelle,active) values (100, 'TE_OTHER', 'Autres', 1); - - --- --- Devises (code secondaire - code ISO4217 - libelle fr) --- - -insert into llx_c_currencies ( code, code_iso, active, label ) values ( 'BT', 'THB', 1, 'Bath thailandais'); -insert into llx_c_currencies ( code, code_iso, active, label ) values ( 'CD', 'DKK', 1, 'Couronnes dannoises'); -insert into llx_c_currencies ( code, code_iso, active, label ) values ( 'CN', 'NOK', 1, 'Couronnes norvegiennes'); -insert into llx_c_currencies ( code, code_iso, active, label ) values ( 'CS', 'SEK', 1, 'Couronnes suedoises'); -insert into llx_c_currencies ( code, code_iso, active, label ) values ( 'CZ', 'CZK', 1, 'Couronnes tcheques'); -insert into llx_c_currencies ( code, code_iso, active, label ) values ( 'DA', 'AUD', 1, 'Dollars australiens'); -insert into llx_c_currencies ( code, code_iso, active, label ) values ( 'DC', 'CAD', 1, 'Dollars canadiens'); -insert into llx_c_currencies ( code, code_iso, active, label ) values ( 'DH', 'HKD', 1, 'Dollars hong kong'); -insert into llx_c_currencies ( code, code_iso, active, label ) values ( 'DS', 'SGD', 1, 'Dollars singapour'); -insert into llx_c_currencies ( code, code_iso, active, label ) values ( 'DU', 'USD', 1, 'Dollars us'); -insert into llx_c_currencies ( code, code_iso, active, label ) values ( 'EC', 'XEU', 1, 'Ecus'); -insert into llx_c_currencies ( code, code_iso, active, label ) values ( 'ES', 'PTE', 0, 'Escudos'); -insert into llx_c_currencies ( code, code_iso, active, label ) values ( 'FB', 'BEF', 0, 'Francs belges'); -insert into llx_c_currencies ( code, code_iso, active, label ) values ( 'FF', 'FRF', 0, 'Francs francais'); -insert into llx_c_currencies ( code, code_iso, active, label ) values ( 'FL', 'LUF', 0, 'Francs luxembourgeois'); -insert into llx_c_currencies ( code, code_iso, active, label ) values ( 'FO', 'NLG', 1, 'Florins'); -insert into llx_c_currencies ( code, code_iso, active, label ) values ( 'FS', 'CHF', 1, 'Francs suisses'); -insert into llx_c_currencies ( code, code_iso, active, label ) values ( 'LI', 'IEP', 1, 'Livres irlandaises'); -insert into llx_c_currencies ( code, code_iso, active, label ) values ( 'LR', 'ITL', 0, 'Lires'); -insert into llx_c_currencies ( code, code_iso, active, label ) values ( 'LS', 'GBP', 1, 'Livres sterling'); -insert into llx_c_currencies ( code, code_iso, active, label ) values ( 'MA', 'DEM', 0, 'Deutsch mark'); -insert into llx_c_currencies ( code, code_iso, active, label ) values ( 'MF', 'FIM', 1, 'Mark finlandais'); -insert into llx_c_currencies ( code, code_iso, active, label ) values ( 'PA', 'ARP', 1, 'Pesos argentins'); -insert into llx_c_currencies ( code, code_iso, active, label ) values ( 'PC', 'CLP', 1, 'Pesos chilien'); -insert into llx_c_currencies ( code, code_iso, active, label ) values ( 'PE', 'ESP', 1, 'Pesete'); -insert into llx_c_currencies ( code, code_iso, active, label ) values ( 'PL', 'PLN', 1, 'Zlotys polonais'); -insert into llx_c_currencies ( code, code_iso, active, label ) values ( 'SA', 'ATS', 1, 'Shiliing autrichiens'); -insert into llx_c_currencies ( code, code_iso, active, label ) values ( 'TW', 'TWD', 1, 'Dollar taiwanais'); -insert into llx_c_currencies ( code, code_iso, active, label ) values ( 'YE', 'JPY', 1, 'Yens'); -insert into llx_c_currencies ( code, code_iso, active, label ) values ( 'ZA', 'ZAR', 1, 'Rand africa'); -insert into llx_c_currencies ( code, code_iso, active, label ) values ( 'DR', 'GRD', 1, 'Drachme (grece)'); -insert into llx_c_currencies ( code, code_iso, active, label ) values ( 'EU', 'EUR', 1, 'Euros'); -insert into llx_c_currencies ( code, code_iso, active, label ) values ( 'RB', 'BRL', 1, 'Real bresilien'); -insert into llx_c_currencies ( code, code_iso, active, label ) values ( 'SK', 'SKK', 1, 'Couronnes slovaques'); -insert into llx_c_currencies ( code, code_iso, active, label ) values ( 'YC', 'CNY', 1, 'Yuang chinois'); -insert into llx_c_currencies ( code, code_iso, active, label ) values ( 'AE', 'AED', 1, 'Arabes emirats dirham'); -insert into llx_c_currencies ( code, code_iso, active, label ) values ( 'CF', 'XAF', 1, 'Francs cfa beac'); -insert into llx_c_currencies ( code, code_iso, active, label ) values ( 'EG', 'EGP', 1, 'Livre egyptienne'); -insert into llx_c_currencies ( code, code_iso, active, label ) values ( 'KR', 'KRW', 1, 'Won coree du sud'); -insert into llx_c_currencies ( code, code_iso, active, label ) values ( 'NZ', 'NZD', 1, 'Dollar neo-zelandais'); -insert into llx_c_currencies ( code, code_iso, active, label ) values ( 'TR', 'TRL', 1, 'Livre turque'); -insert into llx_c_currencies ( code, code_iso, active, label ) values ( 'ID', 'IDR', 1, 'Rupiahs d''indonesie'); -insert into llx_c_currencies ( code, code_iso, active, label ) values ( 'IN', 'INR', 1, 'Roupie indienne'); -insert into llx_c_currencies ( code, code_iso, active, label ) values ( 'LT', 'LTL', 1, 'Litas'); -insert into llx_c_currencies ( code, code_iso, active, label ) values ( 'RU', 'SUR', 1, 'Rouble'); -insert into llx_c_currencies ( code, code_iso, active, label ) values ( 'FH', 'HUF', 1, 'Forint hongrois'); -insert into llx_c_currencies ( code, code_iso, active, label ) values ( 'LK', 'LKR', 1, 'Roupie sri lanka'); - --- --- Taux TVA --- Source des taux: http://fr.wikipedia.org/wiki/Taxe_sur_la_valeur_ajout%C3%A9e --- - -delete from llx_c_tva; - -SET IDENTITY_INSERT dbo.llx_c_tva ON - --- ALLEMAGNE (id 5) -insert into llx_c_tva(rowid,fk_pays,taux,recuperableonly,note,active) values ( 51, 5, '16','0','VAT Rate 16',1); -insert into llx_c_tva(rowid,fk_pays,taux,recuperableonly,note,active) values ( 52, 5, '7','0','VAT Rate 7',1); -insert into llx_c_tva(rowid,fk_pays,taux,recuperableonly,note,active) values ( 53, 5, '0','0','VAT Rate 0',1); - --- AUSTRALIE (id 28) -insert into llx_c_tva(rowid,fk_pays,taux,recuperableonly,note,active) values (281,28, '10','0','VAT Rate 10',1); -insert into llx_c_tva(rowid,fk_pays,taux,recuperableonly,note,active) values (282,28, '0','0','VAT Rate 0',1); - --- BELGIQUE (id 2) -insert into llx_c_tva(rowid,fk_pays,taux,recuperableonly,note,active) values ( 21, 2, '21','0','VAT Rate 21',1); -insert into llx_c_tva(rowid,fk_pays,taux,recuperableonly,note,active) values ( 22, 2, '6','0','VAT Rate 6',1); -insert into llx_c_tva(rowid,fk_pays,taux,recuperableonly,note,active) values ( 23, 2, '0','0','VAT Rate 0 ou non applicable',1); - --- CANADA (id 14) -insert into llx_c_tva(rowid,fk_pays,taux,recuperableonly,note,active) values (141,14, '7','0','VAT Rate 7',1); -insert into llx_c_tva(rowid,fk_pays,taux,recuperableonly,note,active) values (142,14, '0','0','VAT Rate 0',1); - --- ESPAGNE (id 4) -insert into llx_c_tva(rowid,fk_pays,taux,recuperableonly,note,active) values ( 41, 4, '16','0','VAT Rate 16',1); -insert into llx_c_tva(rowid,fk_pays,taux,recuperableonly,note,active) values ( 42, 4, '7','0','VAT Rate 7',1); -insert into llx_c_tva(rowid,fk_pays,taux,recuperableonly,note,active) values ( 43, 4, '4','0','VAT Rate 4',1); -insert into llx_c_tva(rowid,fk_pays,taux,recuperableonly,note,active) values ( 44, 4, '0','0','VAT Rate 0',1); - --- ITALY (id 3) -insert into llx_c_tva(rowid,fk_pays,taux,recuperableonly,note,active) values ( 31, 3, '20','0','VAT Rate 20',1); -insert into llx_c_tva(rowid,fk_pays,taux,recuperableonly,note,active) values ( 32, 3, '10','0','VAT Rate 10',1); -insert into llx_c_tva(rowid,fk_pays,taux,recuperableonly,note,active) values ( 33, 3, '4','0','VAT Rate 4',1); -insert into llx_c_tva(rowid,fk_pays,taux,recuperableonly,note,active) values ( 34, 3, '0','0','VAT Rate 0',1); - --- FRANCE (id 1) -insert into llx_c_tva(rowid,fk_pays,taux,recuperableonly,note,active) values ( 11, 1,'19.6','0','VAT Rate 19.6 (France hors DOM-TOM)',1); -insert into llx_c_tva(rowid,fk_pays,taux,recuperableonly,note,active) values ( 12, 1, '8.5','0','VAT Rate 8.5 (DOM sauf Guyane et Saint-Martin)',0); -insert into llx_c_tva(rowid,fk_pays,taux,recuperableonly,note,active) values ( 13, 1, '8.5','1','VAT Rate 8.5 (DOM sauf Guyane et Saint-Martin), non perçu par le vendeur mais récupérable par l''acheteur',0); -insert into llx_c_tva(rowid,fk_pays,taux,recuperableonly,note,active) values ( 14, 1, '5.5','0','VAT Rate 5.5 (France hors DOM-TOM)',1); -insert into llx_c_tva(rowid,fk_pays,taux,recuperableonly,note,active) values ( 15, 1, '0','0','VAT Rate 0 ou non applicable (France, TOM)',1); - --- PAYS-BAS (id 17) -insert into llx_c_tva(rowid,fk_pays,taux,recuperableonly,note,active) values (171,17, '19','0','VAT Rate 19',1); -insert into llx_c_tva(rowid,fk_pays,taux,recuperableonly,note,active) values (172,17, '6','0','VAT Rate 6',1); -insert into llx_c_tva(rowid,fk_pays,taux,recuperableonly,note,active) values (173,17, '0','0','VAT Rate 0',1); - --- PORTUGAL (id 25) -insert into llx_c_tva(rowid,fk_pays,taux,recuperableonly,note,active) values (251,25, '17','0','VAT Rate 17',1); -insert into llx_c_tva(rowid,fk_pays,taux,recuperableonly,note,active) values (252,25, '12','0','VAT Rate 12',1); -insert into llx_c_tva(rowid,fk_pays,taux,recuperableonly,note,active) values (253,25, '0','0','VAT Rate 0',1); - --- ROYAUME UNI (id 7) -insert into llx_c_tva(rowid,fk_pays,taux,recuperableonly,note,active) values ( 71, 7,'17.5','0','VAT Rate 17.5',1); -insert into llx_c_tva(rowid,fk_pays,taux,recuperableonly,note,active) values ( 72, 7, '5','0','VAT Rate 5',1); -insert into llx_c_tva(rowid,fk_pays,taux,recuperableonly,note,active) values ( 73, 7, '0','0','VAT Rate 0',1); - --- SUISSE (id 6) -insert into llx_c_tva(rowid,fk_pays,taux,recuperableonly,note,active) values ( 61, 6, '7.6','0','VAT Rate 7.6',1); -insert into llx_c_tva(rowid,fk_pays,taux,recuperableonly,note,active) values ( 62, 6, '3.6','0','VAT Rate 3.6',1); -insert into llx_c_tva(rowid,fk_pays,taux,recuperableonly,note,active) values ( 63, 6, '2.4','0','VAT Rate 2.4',1); -insert into llx_c_tva(rowid,fk_pays,taux,recuperableonly,note,active) values ( 64, 6, '0','0','VAT Rate 0',1); - -SET IDENTITY_INSERT dbo.llx_c_tva OFF - - --- --- Les types de contact d'un element --- -insert into llx_c_type_contact(rowid, element, source, code, libelle, active ) values (10, 'contrat', 'internal', 'SALESREPSIGN', 'Commercial signataire du contrat', 1); -insert into llx_c_type_contact(rowid, element, source, code, libelle, active ) values (11, 'contrat', 'internal', 'SALESREPFOLL', 'Commercial suivi du contrat', 1); -insert into llx_c_type_contact(rowid, element, source, code, libelle, active ) values (20, 'contrat', 'external', 'BILLING', 'Contact client facturation contrat', 1); -insert into llx_c_type_contact(rowid, element, source, code, libelle, active ) values (21, 'contrat', 'external', 'CUSTOMER', 'Contact client suivi contrat', 1); -insert into llx_c_type_contact(rowid, element, source, code, libelle, active ) values (22, 'contrat', 'external', 'SALESREPSIGN', 'Contact client signataire contrat', 1); - -insert into llx_c_type_contact(rowid, element, source, code, libelle, active ) values (31, 'propal', 'internal', 'SALESREPFOLL', 'Commercial à l''origine de la propale', 1); -insert into llx_c_type_contact(rowid, element, source, code, libelle, active ) values (40, 'propal', 'external', 'BILLING', 'Contact client facturation propale', 1); -insert into llx_c_type_contact(rowid, element, source, code, libelle, active ) values (41, 'propal', 'external', 'CUSTOMER', 'Contact client suivi propale', 1); - -insert into llx_c_type_contact(rowid, element, source, code, libelle, active ) values (80, 'projet', 'internal', 'PROJECTLEADER', 'Chef de Projet', 1); -insert into llx_c_type_contact(rowid, element, source, code, libelle, active ) values (81, 'projet', 'external', 'PROJECTLEADER', 'Chef de Projet', 1); - -insert into llx_c_type_contact(rowid, element, source, code, libelle, active ) values (50, 'facture', 'internal', 'SALESREPFOLL', 'Responsable suivi du paiement', 1); -insert into llx_c_type_contact(rowid, element, source, code, libelle, active ) values (60, 'facture', 'external', 'BILLING', 'Contact client facturation', 1); -insert into llx_c_type_contact(rowid, element, source, code, libelle, active ) values (61, 'facture', 'external', 'SHIPPING', 'Contact client livraison', 1); -insert into llx_c_type_contact(rowid, element, source, code, libelle, active ) values (62, 'facture', 'external', 'SERVICE', 'Contact client prestation', 1); - -insert into llx_c_type_contact(rowid, element, source, code, libelle, active ) values (91, 'commande','internal', 'SALESREPFOLL', 'Responsable suivi de la commande', 1); -insert into llx_c_type_contact(rowid, element, source, code, libelle, active ) values (100,'commande','external', 'BILLING', 'Contact client facturation commande', 1); -insert into llx_c_type_contact(rowid, element, source, code, libelle, active ) values (101,'commande','external', 'CUSTOMER', 'Contact client suivi commande', 1); - -insert into llx_c_type_contact(rowid, element, source, code, libelle, active ) values (120, 'fichinter','internal', 'INTERREPFOLL', 'Responsable suivi de l''intervention', 1); -insert into llx_c_type_contact(rowid, element, source, code, libelle, active ) values (121, 'fichinter','internal', 'INTERVENING', 'Intervenant', 1); -insert into llx_c_type_contact(rowid, element, source, code, libelle, active ) values (130, 'fichinter','external', 'BILLING', 'Contact client facturation intervention', 1); -insert into llx_c_type_contact(rowid, element, source, code, libelle, active ) values (131, 'fichinter','external', 'CUSTOMER', 'Contact client suivi de l''intervention', 1); - - --- --- Entree menu auguria --- - --- --- Contenu de la table llx_menu --- -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (1, 'home', '', 0, '/index.php?mainmenu=home&leftmenu=', 'Home', -1, '', '', '', 2, 1); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (2, 'companies', '', 0, '/index.php?mainmenu=companies&leftmenu=', 'ThirdParties', -1, 'companies', '', '', 2, 2); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (3, 'products', '', 0, '/product/index.php?mainmenu=products&leftmenu=', 'Products/Services', -1, 'products', '$user->rights->produit->lire', '', 0, 3); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (4, 'suppliers', '', 0, '/fourn/index.php?mainmenu=suppliers&leftmenu=', 'Suppliers', -1, 'suppliers', '$user->rights->fournisseur->lire', '', 0, 4); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (5, 'commercial', '', 0, '/comm/index.php?mainmenu=commercial&leftmenu=', 'Commercial', -1, 'commercial', '$user->rights->commercial->main->lire', '', 2, 5); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (6, 'accountancy', '', 0, '/compta/index.php?mainmenu=accountancy&leftmenu=', 'MenuFinancial', -1, 'compta', '$user->rights->compta->resultat->lire || $user->rights->comptaexpert->plancompte->lire || $user->rights->commande->lire || $user->rights->facture->lire || $user->rights->banque->lire', '', 2, 6); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (7, 'project', '', 0, '/projet/index.php?mainmenu=project&leftmenu=', 'Projects', -1, 'projects', '$user->rights->projet->lire', '', 0, 7); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (8, 'tools', '', 0, '/index.php?mainmenu=tools&leftmenu=', 'Tools', -1, 'other', '$user->rights->mailing->lire || $user->rights->bookmark->lire || $user->rights->export->lire', '', 2, 8); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (9, 'telephony', '', 0, '/telephonie/index.php?mainmenu=telephony&leftmenu=', 'Telephony', -1, 'telephony', '$user->rights->telephonie->lire', '', 2, 9); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (10, 'energy', '', 0, '/energie/index.php?mainmenu=energy&leftmenu=', 'Energy', -1, 'energy', '', '', 2, 10); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (11, 'shop', '', 0, '/boutique/index.php?mainmenu=shop&leftmenu=', 'OSCommerce', -1, 'shop', '', '', 0, 11); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (12, 'shop', '', 0, '/oscommerce_ws/index.php?mainmenu=shop&leftmenu=', 'OSCommerce', -1, 'shop', '', '', 0, 12); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (13, 'webcal', '', 0, '/webcal/webcal.php?mainmenu=webcal&leftmenu=', 'Calendar', -1, 'other', '', '', 0, 13); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (14, 'mantis', '', 0, '/mantis/mantis.php?mainmenu=mantis', 'BugTracker', -1, 'other', '', '', 2, 14); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (15, 'members', '', 0, '/adherents/index.php?mainmenu=members&leftmenu=', 'Members', -1, 'members', '', '', 2, 15); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (100, 'home', '', 1, '/admin/index.php?leftmenu=setup', 'Setup', 0, 'admin', '', '', 2, 0); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (101, 'home', '$leftmenu=="setup"', 100, '/admin/company.php', 'MenuCompanySetup', 1, 'admin', '', '', 2, 0); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (102, 'home', '$leftmenu=="setup"', 100, '/admin/ihm.php', 'GUISetup', 1, 'admin', '', '', 2, 1); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (103, 'home', '$leftmenu=="setup"', 100, '/admin/modules.php', 'Modules', 1, 'admin', '', '', 2, 2); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (104, 'home', '$leftmenu=="setup"', 100, '/admin/boxes.php', 'Boxes', 1, 'admin', '', '', 2, 3); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (105, 'home', '$leftmenu=="setup"', 100, '/admin/menus.php', 'Menus', 1, 'admin', '', '', 2, 4); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (106, 'home', '$leftmenu=="setup"', 100, '/admin/delais.php', 'DelaysBeforeWarning', 1, 'admin', '', '', 2, 5); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (107, 'home', '$leftmenu=="setup"', 100, '/admin/triggers.php', 'Triggers', 1, 'admin', '', '', 2, 6); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (108, 'home', '$leftmenu=="setup"', 100, '/admin/perms.php', 'Security', 1, 'admin', '', '', 2, 7); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (109, 'home', '$leftmenu=="setup"', 100, '/admin/mails.php', 'Emails', 1, 'admin', '', '', 2, 8); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (110, 'home', '$leftmenu=="setup"', 100, '/admin/limits.php', 'Limits', 1, 'admin', '', '', 2, 9); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (111, 'home', '$leftmenu=="setup"', 100, '/admin/dict.php', 'DictionnarySetup', 1, 'admin', '', '', 2, 10); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (112, 'home', '$leftmenu=="setup"', 100, '/admin/const.php', 'OtherSetup', 1, 'admin', '', '', 2, 11); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (200, 'home', '', 1, '/admin/system/index.php?leftmenu=system', 'SystemInfo', 0, 'admin', '', '', 2, 1); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (201, 'home', '$leftmenu=="system"', 200, '/admin/system/dolibarr.php', 'Dolibarr', 1, 'admin', '', '', 2, 0); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (202, 'home', '$leftmenu=="system"', 201, '/admin/system/constall.php', 'AllParameters', 2, 'admin', '', '', 2, 0); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (203, 'home', '$leftmenu=="system"', 201, '/about.php', 'About', 2, 'admin', '', '', 2, 1); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (204, 'home', '$leftmenu=="system"', 200, '/admin/system/os.php', 'OS', 1, 'admin', '', '', 2, 1); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (205, 'home', '$leftmenu=="system"', 200, '/admin/system/web.php', 'WebServer', 1, 'admin', '', '', 2, 2); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (206, 'home', '$leftmenu=="system"', 200, '/admin/system/phpinfo.php', 'Php', 1, 'admin', '', '', 2, 3); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (207, 'home', '$leftmenu=="system"', 206, '/admin/system/phpinfo.php?what=conf', 'PhpConf', 2, 'admin', '', '', 2, 0); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (208, 'home', '$leftmenu=="system"', 206, '/admin/system/phpinfo.php?what=env', 'PhpEnv', 2, 'admin', '', '', 2, 1); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (209, 'home', '$leftmenu=="system"', 206, '/admin/system/phpinfo.php?what=modules', 'PhpModules', 2, 'admin', '', '', 2, 2); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (210, 'home', '$leftmenu=="system"', 200, '/admin/system/database.php', 'Database', 1, 'admin', '', '', 2, 4); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (211, 'home', '$leftmenu=="system"', 210, '/admin/system/database-tables.php', 'Tables', 2, 'admin', '', '', 2, 0); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (212, 'home', '$leftmenu=="system"', 210, '/admin/system/database-tables-contraintes.php', 'Constraints', 2, 'admin', '', '', 2, 1); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (300, 'home', '', 1, '/admin/tools/index.php?leftmenu=admintools', 'SystemTools', 0, 'admin', '', '', 2, 2); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (301, 'home', '$leftmenu=="admintools"', 300, '/admin/tools/dolibarr_export.php', 'Backup', 1, 'admin', '', '', 2, 0); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (302, 'home', '$leftmenu=="admintools"', 300, '/admin/tools/dolibarr_import.php', 'Restore', 1, 'admin', '', '', 2, 1); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (303, 'home', '$leftmenu=="admintools"', 300, '/admin/tools/purge.php', 'Purge', 1, 'admin', '', '', 2, 2); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (400, 'home', '', 1, '/user/home.php?leftmenu=users', 'MenuUsersAndGroups', 0, 'users', '', '', 2, 3); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (401, 'home', '$leftmenu=="users"', 400, '/user/index.php', 'Users', 1, 'users', '$user->rights->user->user->lire || $user->admin', '', 2, 0); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (402, 'home', '$leftmenu=="users"', 401, '/user/fiche.php?action=create', 'NewUser', 2, 'users', '$user->rights->user->user->creer || $user->admin', '', 2, 0); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (403, 'home', '$leftmenu=="users"', 400, '/user/group/index.php', 'Groups', 1, 'users', '$user->rights->user->user->lire || $user->admin', '', 2, 1); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (404, 'home', '$leftmenu=="users"', 403, '/user/group/fiche.php?action=create', 'NewGroup', 2, 'users', '$user->rights->user->user->creer || $user->admin', '', 2, 0); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (500, 'companies', '', 2, '/societe.php', 'ThirdParty', 0, 'companies', '$user->rights->societe->lire', '', 2, 0); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (501, 'companies', '', 500, '/soc.php?action=create', 'MenuNewThirdParty', 1, 'companies', '$user->rights->societe->lire', '', 2, 0); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (502, 'companies', '', 500, '/societe/groupe/index.php', 'MenuSocGroup', 1, 'companies', '$user->rights->societe->lire', '', 2, 1); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (503, 'companies', '', 500, '/fourn/liste.php?leftmenu=suppliers', 'Suppliers', 1, 'suppliers', '$user->rights->societe->lire && $user->rights->fournisseur->lire', '', 2, 2); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (504, 'companies', '', 503, '/soc.php?leftmenu=supplier&action=create&type=f', 'NewSupplier', 2, 'suppliers', '$user->rights->societe->lire', '', 2, 0); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (505, 'companies', '', 503, '/contact/index.php?leftmenu=suppliers&type=f', 'Contacts', 2, 'suppliers', '$user->rights->societe->lire && $user->rights->fournisseur->lire', '', 2, 1); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (506, 'companies', '', 500, '/comm/prospect/prospects.php?leftmenu=prospects', 'Prospects', 1, 'companies', '$user->rights->societe->lire', '', 2, 3); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (507, 'companies', '', 506, '/soc.php?leftmenu=prospects&action=create&type=p', 'MenuNewProspect', 2, 'companies', '$user->rights->societe->creer', '', 2, 0); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (508, 'companies', '', 506, '/contact/index.php?leftmenu=customers&type=p', 'Contacts', 2, 'companies', '$user->rights->societe->lire', '', 2, 1); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (509, 'companies', '', 500, '/comm/clients.php?leftmenu=customers', 'Customers', 1, 'companies', '$user->rights->societe->lire', '', 2, 4); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (510, 'companies', '', 509, '/soc.php?leftmenu=customers&action=create&type=c', 'MenuNewCustomer', 2, 'companies', '$user->rights->societe->creer', '', 2, 0); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (511, 'companies', '', 509, '/contact/index.php?leftmenu=customers&type=c', 'Contacts', 2, 'companies', '$user->rights->societe->lire', '', 2, 1); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (600, 'companies', '', 2, '/contact/index.php?leftmenu=contacts', 'Contacts', 0, 'companies', '$user->rights->societe->lire', '', 2, 1); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (601, 'companies', '', 600, '/contact/fiche.php?leftmenu=contacts&action=create', 'NewContact', 1, 'companies', '$user->rights->societe->creer', '', 2, 0); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (602, 'companies', '', 600, '/contact/index.php?leftmenu=contacts', 'List', 1, 'companies', '$user->rights->societe->lire', '', 2, 1); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (700, 'commercial', '', 5, '/comm/prospect/index.php?leftmenu=prospects', 'Prospects', 0, 'companies', '$user->rights->societe->lire', '', 0, 0); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (701, 'commercial', '', 700, '/soc.php?leftmenu=prospects&action=create&type=c', 'MenuNewProspect', 1, 'companies', '$user->rights->societe->creer', '', 0, 0); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (702, 'commercial', '', 700, '/contact/index.php?leftmenu=prospects&type=p', 'List', 1, 'companies', '$user->rights->societe->lire', '', 0, 1); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (703, 'commercial', '$leftmenu=="prospects"', 702, '/comm/prospect/prospects.php?sortfield=s.datec&sortorder=desc&begin=&stcomm=-1', 'LastProspectDoNotContact', 2, 'companies', '$user->rights->societe->lire', '', 0, 0); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (704, 'commercial', '$leftmenu=="prospects"', 702, '/comm/prospect/prospects.php?sortfield=s.datec&sortorder=desc&begin=&stcomm=0', 'LastProspectNeverContacted', 2, 'companies', '$user->rights->societe->lire', '', 0, 1); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (705, 'commercial', '$leftmenu=="prospects"', 702, '/comm/prospect/prospects.php?sortfield=s.datec&sortorder=desc&begin=&stcomm=1', 'LastProspectToContact', 2, 'companies', '$user->rights->societe->lire', '', 0, 2); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (706, 'commercial', '$leftmenu=="prospects"', 702, '/comm/prospect/prospects.php?sortfield=s.datec&sortorder=desc&begin=&stcomm=2', 'LastProspectContactInProcess', 2, 'companies', '$user->rights->societe->lire', '', 0, 3); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (707, 'commercial', '$leftmenu=="prospects"', 702, '/comm/prospect/prospects.php?sortfield=s.datec&sortorder=desc&begin=&stcomm=3', 'LastProspectContactDone', 2, 'companies', '$user->rights->societe->lire', '', 0, 4); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (708, 'commercial', '', 700, '/contact/index.php?leftmenu=prospects&type=p', 'Contacts', 1, 'companies', '$user->rights->societe->lire', '', 0, 2); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (800, 'commercial', '', 5, '/comm/index.php?leftmenu=customers', 'Customers', 0, 'companies', '$user->rights->societe->lire', '', 0, 1); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (801, 'commercial', '', 800, '/soc.php?leftmenu=customers&action=create&type=c', 'MenuNewCustomer', 1, 'companies', '$user->rights->societe->creer', '', 0, 0); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (802, 'commercial', '', 800, '/comm/clients.php?leftmenu=customers', 'List', 1, 'companies', '$user->rights->societe->lire', '', 0, 1); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (803, 'commercial', '', 800, '/contact/index.php?leftmenu=customers&type=c', 'Contacts', 1, 'companies', '$user->rights->societe->lire', '', 0, 2); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (900, 'commercial', '', 5, '/contact/index.php?leftmenu=contacts', 'Contacts', 0, 'companies', '$user->rights->societe->lire', '', 0, 2); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (901, 'commercial', '', 900, '/contact/fiche.php?leftmenu=contacts&action=create', 'NewContact', 1, 'companies', '$user->rights->societe->creer', '', 0, 0); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (902, 'commercial', '', 900, '/contact/index.php?leftmenu=contacts&action=create', 'List', 1, 'companies', '$user->rights->societe->lire', '', 0, 1); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (1000, 'commercial', '', 5, '/comm/action/index.php?leftmenu=actions', 'Actions', 0, 'companies', '$user->rights->societe->lire', '', 0, 3); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (1001, 'commercial', '$leftmenu=="actions"', 1000, '/societe.php?leftmenu=actions', 'NewAction', 1, 'companies', '$user->rights->societe->lire', '', 0, 0); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (1002, 'commercial', '$leftmenu=="actions"', 1000, '/comm/action/index.php?leftmenu=actions&status=todo', 'MenuToDoActions', 1, 'companies', '$user->rights->societe->lire', '', 0, 1); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (1003, 'commercial', '$leftmenu=="actions"', 1000, '/comm/action/index.php?leftmenu=actions&time=today', 'Today', 1, 'companies', '$user->rights->societe->lire', '', 0, 2); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (1004, 'commercial', '$leftmenu=="actions"', 1000, '/comm/action/rapport/index.php?leftmenu=actions', 'Reportings', 1, 'companies', '$user->rights->societe->lire', '', 0, 3); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (1100, 'commercial', '', 5, '/comm/propal.php?leftmenu=propals', 'Prop', 0, 'propal', '$user->rights->propale->lire', '', 2, 4); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (1101, 'commercial', '$leftmenu=="propals"', 1100, '/societe.php?leftmenu=propals', 'NewPropal', 1, 'propal', '$user->rights->propale->creer', '', 2, 0); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (1102, 'commercial', '$leftmenu=="propals"', 1100, '/comm/propal.php?viewstatut=0', 'PropalsDraft', 1, 'propal', '$user->rights->propale->lire', '', 2, 1); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (1103, 'commercial', '$leftmenu=="propals"', 1100, '/comm/propal.php?viewstatut=1', 'PropalsOpened', 1, 'propal', '$user->rights->propale->lire', '', 2, 2); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (1104, 'commercial', '$leftmenu=="propals"', 1100, '/comm/propal.php?viewstatut=2,3,4', 'PropalStatusClosedShort', 1, 'propal', '$user->rights->propale->lire', '', 2, 3); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (1105, 'commercial', '$leftmenu=="propals"', 1100, '/comm/propal/stats.php', 'Statistics', 1, 'propal', '$user->rights->propale->lire', '', 2, 4); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (1200, 'commercial', '', 5, '/commande/index.php?leftmenu=orders', 'Orders', 0, 'orders', '$user->rights->commande->lire', '', 2, 5); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (1201, 'commercial', '$leftmenu=="orders"', 1200, '/societe.php?leftmenu=orders', 'NewOrder', 1, 'orders', '$user->rights->commande->creer', '', 2, 0); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (1202, 'commercial', '$leftmenu=="orders"', 1200, '/commande/liste.php?leftmenu=orders&viewstatut=0', 'StatusOrderDraftShort', 1, 'orders', '$user->rights->commande->lire', '', 2, 1); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (1203, 'commercial', '$leftmenu=="orders"', 1200, '/commande/liste.php?leftmenu=orders&viewstatut=1', 'StatusOrderValidated', 1, 'orders', '$user->rights->commande->lire', '', 2, 2); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (1204, 'commercial', '$leftmenu=="orders"', 1200, '/commande/liste.php?leftmenu=orders&viewstatut=2', 'StatusOrderOnProcessShort', 1, 'orders', '$user->rights->commande->lire', '', 2, 3); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (1205, 'commercial', '$leftmenu=="orders"', 1200, '/commande/liste.php?leftmenu=orders&viewstatut=3', 'StatusOrderToBill', 1, 'orders', '$user->rights->commande->lire', '', 2, 4); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (1206, 'commercial', '$leftmenu=="orders"', 1200, '/commande/liste.php?leftmenu=orders&viewstatut=4', 'StatusOrderProcessed', 1, 'orders', '$user->rights->commande->lire', '', 2, 5); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (1207, 'commercial', '$leftmenu=="orders"', 1200, '/commande/liste.php?leftmenu=orders&viewstatut=-1', 'StatusOrderCanceledShort', 1, 'orders', '$user->rights->commande->lire', '', 2, 6); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (1208, 'commercial', '$leftmenu=="orders"', 1200, '/commande/stats/index.php?leftmenu=orders', 'Statistics', 1, 'orders', '$user->rights->commande->lire', '', 2, 7); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (1300, 'commercial', '', 5, '/expedition/index.php?leftmenu=sendings', 'Sendings', 0, 'orders', '$user->rights->expedition->lire', '', 2, 6); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (1301, 'commercial', '$leftmenu=="sendings"', 1300, '/expedition/liste.php?leftmenu=sendings', 'List', 1, 'orders', '$user->rights->expedition->lire', '', 2, 0); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (1302, 'commercial', '$leftmenu=="sendings"', 1300, '/expedition/stats/index.php?leftmenu=sendings', 'Statistics', 1, 'orders', '$user->rights->expedition->lire', '', 2, 1); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (1400, 'commercial', '', 5, '/contrat/index.php?leftmenu=contracts', 'Contracts', 0, 'contracts', '$user->rights->contrat->lire', '', 2, 7); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (1401, 'commercial', '$leftmenu=="contracts"', 1400, '/societe.php?leftmenu=contracts', 'NewContract', 1, 'contracts', '$user->rights->contrat->creer', '', 2, 0); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (1402, 'commercial', '$leftmenu=="contracts"', 1400, '/contrat/liste.php?leftmenu=contracts', 'List', 1, 'contracts', '$user->rights->contrat->lire', '', 2, 1); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (1403, 'commercial', '$leftmenu=="contracts"', 1400, '/contrat/services.php?leftmenu=contracts', 'MenuServices', 1, 'contracts', '$user->rights->contrat->lire', '', 2, 2); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (1404, 'commercial', '$leftmenu=="contracts"', 1402, '/contrat/services.php?leftmenu=contracts&mode=0', 'MenuInactiveServices', 2, 'contracts', '$user->rights->contrat->lire', '', 2, 0); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (1405, 'commercial', '$leftmenu=="contracts"', 1402, '/contrat/services.php?leftmenu=contracts&mode=4', 'MenuRunningServices', 2, 'contracts', '$user->rights->contrat->lire', '', 2, 1); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (1406, 'commercial', '$leftmenu=="contracts"', 1402, '/contrat/services.php?leftmenu=contracts&mode=4&filter=expired', 'MenuExpiredServices', 2, 'contracts', '$user->rights->contrat->lire', '', 2, 2); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (1407, 'commercial', '$leftmenu=="contracts"', 1402, '/contrat/services.php?leftmenu=contracts&mode=5', 'MenuClosedServices', 2, 'contracts', '$user->rights->contrat->lire', '', 2, 3); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (1500, 'commercial', '', 5, '/fichinter/index.php?leftmenu=ficheinter', 'Interventions', 0, 'interventions', '$user->rights->ficheinter->lire', '', 2, 8); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (1501, 'commercial', '$leftmenu=="ficheinter"', 1500, '/fichinter/fiche.php?action=create&leftmenu=ficheinter', 'NewIntervention', 1, 'interventions', '$user->rights->ficheinter->creer', '', 2, 0); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (1502, 'commercial', '$leftmenu=="ficheinter"', 1500, '/fichinter/index.php?leftmenu=ficheinter', 'List', 1, 'interventions', '$user->rights->ficheinter->lire', '', 2, 1); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (1600, 'accountancy', '', 6, '/compta/index.php?leftmenu=suppliers', 'Suppliers', 0, 'companies', '$user->rights->societe->lire && $user->rights->fournisseur->lire', '', 2, 0); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (1601, 'accountancy', '', 1600, '/soc.php?leftmenu=suppliers&action=create&type=f', 'NewSupplier', 1, 'companies', '$user->rights->societe->creer && $user->rights->fournisseur->lire', '', 2, 0); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (1602, 'accountancy', '', 1600, '/fourn/liste.php?leftmenu=suppliers', 'List', 1, 'companies', '$user->rights->societe->lire && $user->rights->fournisseur->lire', '', 2, 1); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (1603, 'accountancy', '', 1600, '/contact/index.php?leftmenu=suppliers&type=f', 'Contacts', 1, 'companies', '$user->rights->societe->lire && $user->rights->fournisseur->lire', '', 2, 2); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (1604, 'accountancy', '', 1600, '/fourn/facture/index.php?leftmenu=suppliers_bills', 'BillsSuppliers', 1, 'bills', '$user->rights->fournisseur->facture->lire', '', 2, 3); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (1605, 'accountancy', '$leftmenu=="suppliers_bills"', 1604, '/fourn/facture/fiche.php?action=create', 'NewBill', 2, 'bills', '$user->rights->fournisseur->facture->creer', '', 2, 0); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (1606, 'accountancy', '$leftmenu=="suppliers_bills"', 1604, '/fourn/facture/impayees.php', 'Unpayed', 2, 'bills', '$user->rights->fournisseur->facture->lire', '', 2, 1); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (1607, 'accountancy', '$leftmenu=="suppliers_bills"', 1604, '/fourn/facture/paiement.php', 'Payments', 2, 'bills', '$user->rights->fournisseur->facture->lire', '', 2, 2); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (1700, 'accountancy', '', 6, '/compta/index.php?leftmenu=customers', 'Customers', 0, 'companies', '$user->rights->societe->lire', '', 2, 1); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (1701, 'accountancy', '', 1700, '/soc.php?leftmenu=customers&action=create&type=c', 'MenuNewCustomer', 1, 'companies', '$user->rights->societe->creer', '', 2, 0); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (1702, 'accountancy', '', 1700, '/compta/clients.php?leftmenu=customers', 'List', 1, 'companies', '$user->rights->societe->lire', '', 2, 1); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (1703, 'accountancy', '', 1700, '/contact/index.php?leftmenu=customers&type=c', 'Contacts', 1, 'companies', '$user->rights->societe->lire && $user->rights->fournisseur->lire', '', 2, 2); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (1704, 'accountancy', '', 1700, '/compta/facture.php?leftmenu=customers_bills', 'BillsCustomers', 1, 'bills', '$user->rights->facture->lire', '', 2, 3); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (1705, 'accountancy', 'eregi("customers_bills",$leftmenu)', 1704, '/compta/clients.php?action=facturer&leftmenu=customers_bills', 'NewBill', 2, 'bills', '$user->rights->facture->creer', '', 2, 3); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (1706, 'accountancy', 'eregi("customers_bills",$leftmenu)', 1704, '/compta/facture/fiche-rec.php?leftmenu=customers_bills', 'Repeatable', 2, 'bills', '$user->rights->facture->lire', '', 2, 4); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (1707, 'accountancy', 'eregi("customers_bills",$leftmenu)', 1704, '/compta/facture/impayees.php?action=facturer&leftmenu=customers_bills', 'Unpayed', 2, 'bills', '$user->rights->facture->lire', '', 2, 5); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (1708, 'accountancy', 'eregi("customers_bills",$leftmenu)', 1704, '/compta/paiement/liste.php?leftmenu=customers_bills_payments', 'Payments', 2, 'bills', '$user->rights->facture->lire', '', 2, 6); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (1709, 'accountancy', 'eregi("customers_bills_payments",$leftmenu)', 1708, '/compta/paiement/avalider.php?leftmenu=customers_bills_payments', 'MenuToValid', 3, 'bills', '$user->rights->facture->lire', '', 2, 0); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (1710, 'accountancy', 'eregi("customers_bills_payments",$leftmenu)', 1708, '/compta/paiement/rapport.php?leftmenu=customers_bills_payments', 'Reportings', 3, 'bills', '$user->rights->facture->lire', '', 2, 1); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (1711, 'accountancy', '', 6, '/compta/paiement/cheque/index.php?leftmenu=checks', 'MenuChequeDeposits', 0, 'bills', '$user->rights->facture->lire', '', 2, 1); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (1712, 'accountancy', 'eregi("checks",$leftmenu)', 1711, '/compta/paiement/cheque/fiche.php?leftmenu=checks&action=new', 'NewCheckDeposit', 1, 'bills', '$user->rights->facture->lire', '', 2, 0); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (1713, 'accountancy', 'eregi("checks",$leftmenu)', 1711, '/compta/paiement/cheque/liste.php?leftmenu=checks', 'MenuChequesReceipts', 1, 'bills', '$user->rights->facture->lire', '', 2, 1); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (1714, 'accountancy', 'eregi("customers_bills",$leftmenu)', 1704, '/compta/facture/stats/index.php?leftmenu=customers_bills', 'Statistics', 2, 'bills', '$user->rights->facture->lire', '', 2, 8); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (1715, 'accountancy', '', 1700, '/compta/paiement/cheque/index.php', 'CheckReceipt', 1, 'bills', '$user->rights->facture->lire', '', 1, 4); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (1716, 'accountancy', '', 1704, '/compta/paiement/cheque/fiche.php?action=new', 'New', 2, 'bills', '$user->rights->facture->lire', '', 1, 9); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (1717, 'accountancy', '', 1704, '/compta/paiement/cheque/liste.php', 'List', 2, 'bills', '$user->rights->facture->lire', '', 1, 10); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (1800, 'accountancy', '', 6, '/compta/propal.php', 'Prop', 0, 'propal', '$user->rights->propale->lire', '', 2, 2); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (1900, 'accountancy', '', 6, '/compta/commande/liste.php?leftmenu=orders&status=3&afacturer=1', 'MenuOrdersToBill', 0, 'orders', '$user->rights->commande->lire', '', 0, 3); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (2000, 'accountancy', '', 6, '/compta/dons/index.php?leftmenu=donations&mainmenu=accountancy', 'Donations', 0, 'donations', '$user->rights->don->lire', '', 2, 4); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (2001, 'accountancy', '$leftmenu=="donations"', 2000, '/compta/dons/fiche.php?action=create', 'NewDonation', 1, 'donations', '$user->rights->don->creer', '', 2, 0); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (2002, 'accountancy', '$leftmenu=="donations"', 2000, '/compta/dons/liste.php?action=create', 'List', 1, 'donations', '$user->rights->don->lire', '', 2, 1); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (2003, 'accountancy', '$leftmenu=="donations"', 2000, '/compta/dons/stats.php', 'Statistics', 1, 'donations', '$user->rights->don->lire', '', 2, 2); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (2100, 'accountancy', '', 6, '/compta/deplacement/index.php', 'Trips', 0, 'trips', '$user->rights->deplacement->lire', '', 0, 5); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (2200, 'accountancy', '', 6, '/compta/charges/index.php?leftmenu=charges&mainmenu=accountancy', 'Charges', 0, 'Charges', '$user->rights->tax->charges->lire', '', 0, 6); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (2201, 'accountancy', '$leftmenu=="charges"', 2200, '/compta/sociales/index.php', 'SocialContributions', 1, '', '$user->rights->tax->charges->lire', '', 0, 0); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (2300, 'accountancy', '', 6, '/compta/tva/index.php?leftmenu=vat&mainmenu=accountancy', 'VAT', 0, 'companies', '$user->rights->tax->charges->lire', '', 0, 7); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (2301, 'accountancy', '$leftmenu=="vat"', 2300, '/compta/tva/fiche.php?action=create', 'NewPayment', 1, 'companies', '$user->rights->tax->charges->creer', '', 0, 0); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (2302, 'accountancy', '$leftmenu=="vat"', 2300, '/compta/tva/reglement.php', 'Payments', 1, 'companies', '$user->rights->tax->charges->lire', '', 0, 1); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (2303, 'accountancy', '$leftmenu=="vat"', 2300, '/compta/tva/clients.php', 'ReportByCustomers', 1, 'companies', '$user->rights->tax->charges->lire', '', 0, 2); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (2400, 'accountancy', '', 6, '/compta/ventilation/index.php?leftmenu=ventil', 'Ventilation', 0, 'companies', '$user->rights->compta->ventilation->lire', '', 0, 8); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (2401, 'accountancy', '$leftmenu=="ventil"', 2400, '/compta/ventilation/liste.php', 'A ventiler', 1, 'companies', '$user->rights->compta->ventilation->lire', '', 0, 0); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (2402, 'accountancy', '$leftmenu=="ventil"', 2400, '/compta/ventilation/lignes.php', 'Ventilées', 1, 'companies', '$user->rights->compta->ventilation->lire', '', 0, 1); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (2403, 'accountancy', '$leftmenu=="ventil"', 2400, '/compta/param/', 'Setup', 1, 'companies', '$user->rights->compta->ventilation->parametrer', '', 0, 2); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (2404, 'accountancy', '$leftmenu=="ventil"', 2403, '/compta/param/comptes/liste.php', 'List', 2, 'companies', '$user->rights->compta->ventilation->parametrer', '', 0, 0); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (2405, 'accountancy', '$leftmenu=="ventil"', 2403, '/compta/param/comptes/fiche.php?action=create', 'New', 2, 'companies', '$user->rights->compta->ventilation->parametrer', '', 0, 1); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (2406, 'accountancy', '$leftmenu=="ventil"', 2400, '/compta/export/', 'Export', 1, 'companies', '$user->rights->compta->ventilation->lire', '', 0, 3); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (2407, 'accountancy', '$leftmenu=="ventil"', 2406, '/compta/export/index.php', 'New', 2, 'companies', '$user->rights->compta->ventilation->lire', '', 0, 0); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (2408, 'accountancy', '$leftmenu=="ventil"', 2406, '/compta/export/liste.php', 'List', 2, 'companies', '$user->rights->compta->ventilation->lire', '', 0, 1); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (2500, 'accountancy', '', 6, '/compta/prelevement/index.php?leftmenu=withdraw', 'StandingOrders', 0, 'withdrawals', '$user->rights->prelevement->bons->lire', '', 2, 9); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (2501, 'accountancy', '$leftmenu=="withdraw"', 2500, '/compta/prelevement/demandes.php?status=0', 'StandingOrderToProcess', 1, 'withdrawals', '$user->rights->prelevement->bons->lire', '', 2, 0); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (2502, 'accountancy', '$leftmenu=="withdraw"', 2500, '/compta/prelevement/create.php', 'NewStandingOrder', 1, 'withdrawals', '$user->rights->prelevement->bons->lire', '', 2, 1); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (2503, 'accountancy', '$leftmenu=="withdraw"', 2500, '/compta/prelevement/bons.php', 'WithdrawalsReceipts', 1, 'withdrawals', '$user->rights->prelevement->bons->lire', '', 2, 2); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (2504, 'accountancy', '$leftmenu=="withdraw"', 2500, '/compta/prelevement/liste.php', 'WithdrawalsLines', 1, 'withdrawals', '$user->rights->prelevement->bons->lire', '', 2, 3); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (2505, 'accountancy', '$leftmenu=="withdraw"', 2500, '/compta/prelevement/liste_factures.php', 'WithdrawedBills', 1, 'withdrawals', '$user->rights->prelevement->bons->lire', '', 2, 4); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (2506, 'accountancy', '$leftmenu=="withdraw"', 2500, '/compta/prelevement/rejets.php', 'Rejects', 1, 'withdrawals', '$user->rights->prelevement->bons->lire', '', 2, 5); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (2507, 'accountancy', '$leftmenu=="withdraw"', 2500, '/compta/prelevement/stats.php', 'Statistics', 1, 'withdrawals', '$user->rights->prelevement->bons->lire', '', 2, 6); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (2508, 'accountancy', '$leftmenu=="withdraw"', 2500, '/compta/prelevement/config.php', 'Setup', 1, 'withdrawals', '$user->rights->prelevement->bons->configurer', '', 2, 7); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (2600, 'accountancy', '', 6, '/compta/bank/index.php?leftmenu=bank', 'MenuBankCash', 0, 'banks', '$user->rights->banque->lire', '', 0, 10); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (2601, 'accountancy', '$leftmenu=="bank"', 2600, '/compta/bank/fiche.php?action=create', 'MenuNewFinancialAccount', 1, 'banks', '$user->rights->banque->configurer', '', 0, 0); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (2602, 'accountancy', '$leftmenu=="bank"', 2600, '/compta/bank/categ.php', 'Categories', 1, 'banks', '$user->rights->banque->configurer', '', 0, 1); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (2603, 'accountancy', '$leftmenu=="bank"', 2600, '/compta/bank/search.php', 'SearchTransaction', 1, 'banks', '$user->rights->banque->lire', '', 0, 2); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (2604, 'accountancy', '$leftmenu=="bank"', 2600, '/compta/bank/budget.php', 'ByCategories', 1, 'banks', '$user->rights->banque->lire', '', 0, 3); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (2605, 'accountancy', '$leftmenu=="bank"', 2600, '/compta/bank/bilan.php', 'Bilan', 1, 'banks', '$user->rights->banque->lire', '', 0, 4); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (2606, 'accountancy', '$leftmenu=="bank"', 2600, '/compta/bank/virement.php', 'BankTransfers', 1, 'banks', '$user->rights->banque->modifier', '', 0, 5); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (2607, 'accountancy', '$leftmenu=="bank"', 2600, '/compta/bank/bplc.php', 'Transactions BPLC', 1, 'banks', '', '', 0, 6); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (2700, 'accountancy', '', 6, '/compta/resultat/index.php?leftmenu=ca&mainmenu=accountancy', 'Reportings', 0, 'main', '$user->rights->compta->resultat->lire || $user->rights->comptaexpert->comptarapport->lire', '', 0, 11); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (2701, 'accountancy', '$leftmenu=="ca"', 2700, '/compta/resultat/index.php?leftmenu=ca', 'Résultat / Exercice', 1, 'main', '$user->rights->compta->resultat->lire || $user->rights->comptaexpert->comptarapport->lire', '', 0, 0); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (2702, 'accountancy', '$leftmenu=="ca"', 2701, '/compta/resultat/clientfourn.php?leftmenu=ca', 'ByCompanies', 2, 'main', '$user->rights->compta->resultat->lire || $user->rights->comptaexpert->comptarapport->lire', '', 0, 0); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (2703, 'accountancy', '$leftmenu=="ca"', 2700, '/compta/stats/index.php?leftmenu=ca', 'Chiffre d''affaire', 1, 'main', '$user->rights->compta->resultat->lire || $user->rights->comptaexpert->comptarapport->lire', '', 0, 1); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (2704, 'accountancy', '$leftmenu=="ca"', 2703, '/compta/stats/casoc?leftmenu=ca', 'ByCompanies', 2, 'main', '$user->rights->compta->resultat->lire || $user->rights->comptaexpert->comptarapport->lire', '', 0, 0); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (2705, 'accountancy', '$leftmenu=="ca"', 2703, '/compta/stats/cabyuser.php?leftmenu=ca', 'ByUsers', 2, 'main', '$user->rights->compta->resultat->lire || $user->rights->comptaexpert->comptarapport->lire', '', 0, 1); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (2800, 'products', '', 3, '/product/index.php?leftmenu=product&type=0', 'Products', 0, 'products', '$user->rights->produit->lire', '', 2, 0); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (2801, 'products', '', 2800, '/product/fiche.php?leftmenu=product&action=create&type=0', 'NewProduct', 1, 'products', '$user->rights->produit->creer', '', 2, 0); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (2802, 'products', '', 2800, '/product/liste.php?leftmenu=product&type=0', 'List', 1, 'products', '$user->rights->produit->lire', '', 2, 1); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (2803, 'products', '', 2800, '/product/reassort.php?type=0', 'Stocks', 1, 'products', '$user->rights->stock->lire', '', 2, 4); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (2804, 'products', '', 2800, '/product/fiche.php?leftmenu=product&action=create&type=0&canvas=livre', 'Nouveau livre', 1, 'products', '$user->rights->produit->creer', '', 2, 2); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (2805, 'products', '', 2800, '/product/liste.php?leftmenu=product&type=0&canvas=livre', 'Livre', 1, 'products', '$user->rights->produit->lire', '', 2, 3); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (2900, 'products', '', 3, '/product/index.php?leftmenu=service&type=1', 'Services', 0, 'products', '$user->rights->produit->lire', '', 2, 1); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (2901, 'products', '', 2900, '/product/fiche.php?leftmenu=service&action=create&type=1', 'NewService', 1, 'products', '$user->rights->produit->creer', '', 2, 0); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (2902, 'products', '', 2900, '/product/liste.php?leftmenu=service&type=1', 'List', 1, 'products', '$user->rights->produit->lire', '', 2, 1); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (3000, 'products', '', 3, '/product/stats/index.php?leftmenu=stats', 'Statistics', 0, 'main', '$user->rights->produit>lire', '', 2, 2); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (3001, 'products', '', 3000, '/product/popuprop.php?leftmenu=stats', 'Popularity', 1, 'main', '$user->rights->produit>lire', '', 2, 0); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (3100, 'products', '', 3, '/product/stock/index.php?leftmenu=stock', 'Stock', 0, 'stocks', '$user->rights->stock->lire', '', 2, 3); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (3101, 'products', '$leftmenu=="stock"', 3100, '/product/stock/fiche.php?action=create', 'MenuNewWarehouse', 1, 'stocks', '$user->rights->stock->creer', '', 2, 0); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (3102, 'products', '$leftmenu=="stock"', 3100, '/product/stock/liste.php', 'List', 1, 'stocks', '$user->rights->stock->lire', '', 2, 1); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (3103, 'products', '$leftmenu=="stock"', 3100, '/product/stock/valo.php', 'EnhancedValue', 1, 'stocks', '$user->rights->stock->lire', '', 2, 2); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (3104, 'products', '$leftmenu=="stock"', 3100, '/product/stock/mouvement.php', 'Movements', 1, 'stocks', '$user->rights->stock->mouvement->lire', '', 2, 3); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (3200, 'products', '', 3, '/categories/index.php?leftmenu=cat&type=0', 'Categories', 0, 'categories', '$user->rights->categorie>lire', '', 2, 4); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (3201, 'products', '$leftmenu=="cat"', 3200, '/categories/fiche.php?action=create&type=0', 'NewCat', 1, 'categories', '$user->rights->categorie>creer', '', 2, 0); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (3300, 'suppliers', '', 4, '/fourn/index.php?leftmenu=suppliers', 'Suppliers', 0, 'suppliers', '$user->rights->societe->lire && $user->rights->fournisseur->lire', '', 2, 0); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (3301, 'suppliers', '', 3300, '/soc.php?leftmenu=suppliers&action=create&type=f', 'NewSupplier', 1, 'suppliers', '$user->rights->societe->creer && $user->rights->fournisseur->lire', '', 2, 0); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (3302, 'suppliers', '', 3300, '/fourn/liste.php', 'List', 1, 'suppliers', '$user->rights->societe->lire && $user->rights->fournisseur->lire', '', 2, 1); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (3303, 'suppliers', '', 3300, '/contact/index.php?leftmenu=supplier&type=f', 'Contacts', 1, 'suppliers', '$user->rights->societe->lire && $user->rights->fournisseur->lire', '', 2, 2); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (3304, 'suppliers', '', 3300, '/fourn/stats.php', 'Statistics', 1, 'suppliers', '$user->rights->societe->lire && $user->rights->fournisseur->lire', '', 2, 3); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (3400, 'suppliers', '', 4, '/fourn/facture/index.php', 'Bills', 0, 'bills', '$user->rights->fournisseur->facture->lire', '', 2, 1); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (3401, 'suppliers', '', 3400, '/fourn/facture/fiche.php?action=create', 'NewBill', 1, 'bills', '$user->rights->fournisseur->facture->creer', '', 2, 0); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (3402, 'suppliers', '', 3400, '/fourn/facture/paiement.php', 'Payments', 1, 'bills', '$user->rights->fournisseur->facture->lire', '', 2, 1); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (3500, 'suppliers', '', 4, '/fourn/commande/index.php?leftmenu=suppliers', 'Orders', 0, 'orders', '$user->rights->fournisseur->commande->lire', '', 2, 2); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (3501, 'suppliers', '', 3500, '/societe.php?leftmenu=supplier', 'NewOrder', 1, 'orders', '$user->rights->fournisseur->commande->creer', '', 2, 0); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (3502, 'suppliers', '', 3500, '/fourn/commande/liste.php?leftmenu=suppliers', 'List', 1, 'orders', '$user->rights->fournisseur->commande->lire', '', 2, 1); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (3600, 'project', '', 7, '/projet/index.php?leftmenu=projects', 'Projects', 0, 'projects', '$user->rights->projet->lire', '', 2, 0); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (3601, 'project', '', 3600, '/comm/clients.php?leftmenu=projects', 'NewProject', 1, 'projects', '$user->rights->projet->lire', '', 2, 0); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (3602, 'project', '', 3600, '/projet/liste.php?leftmenu=projects', 'List', 1, 'projects', '$user->rights->projet->lire', '', 2, 1); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (3700, 'project', '', 7, '/projet/tasks', 'Tasks', 0, 'projects', '$user->rights->projet->lire', '', 2, 1); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (3701, 'project', '', 3700, '/projet/tasks/mytasks.php', 'Mytasks', 1, 'projects', '$user->rights->projet->lire', '', 2, 0); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (3800, 'project', '', 7, '/projet/activity', 'Activity', 0, 'projects', '$user->rights->projet->lire', '', 2, 2); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (3801, 'project', '', 3800, '/projet/activity/myactivity.php', 'MyActivity', 1, 'projects', '$user->rights->projet->lire', '', 2, 0); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (3900, 'tools', '', 8, '/comm/mailing/index.php?leftmenu=mailing', 'EMailings', 0, 'mails', '$user->rights->mailing->lire', '', 0, 0); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (3901, 'tools', '', 3900, '/comm/mailing/fiche.php?leftmenu=mailing&action=create', 'NewMailing', 1, 'mails', '$user->rights->mailing->creer', '', 0, 0); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (3902, 'tools', '', 3900, '/comm/mailing/fiche.php?leftmenu=mailing', 'List', 1, 'mails', '$user->rights->mailing->lire', '', 0, 1); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (4000, 'tools', '', 8, '/bookmarks/liste.php?leftmenu=bookmarks', 'Bookmarks', 0, 'other', '$user->rights->bookmark->lire', '', 2, 1); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (4001, 'tools', '', 4000, '/bookmarks/fiche.php?action=create', 'NewBookmark', 1, 'other', '$user->rights->bookmark->creer', '', 2, 0); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (4002, 'tools', '', 4000, '/bookmarks/liste.php', 'List', 1, 'other', '$user->rights->bookmark->lire', '', 2, 1); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (4100, 'tools', '', 8, '/exports/index.php?leftmenu=export', 'FormatedExport', 0, 'exports', '$user->rights->export->lire', '', 2, 2); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (4101, 'tools', '', 4100, '/exports/export.php?leftmenu=export', 'NewExport', 1, 'exports', '$user->rights->export->creer', '', 2, 0); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (4200, 'members', '', 13, '/adherents/index.php?leftmenu=members&mainmenu=members', 'Members', 0, 'members', '$user->rights->adherent->lire', '', 2, 0); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (4201, 'members', '', 4200, '/adherents/fiche.php?action=create', 'NewMember', 1, 'members', '$user->rights->adherent->creer', '', 2, 0); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (4202, 'members', '', 4200, '/adherents/liste.php', 'List', 1, 'members', '$user->rights->adherent->lire', '', 2, 1); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (4203, 'members', '', 4200, '/adherents/liste.php?statut=-1', 'MenuMembersToValidate', 1, 'members', '$user->rights->adherent->lire', '', 2, 2); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (4204, 'members', '', 4200, '/adherents/liste.php?statut=1', 'MenuMembersValidated', 1, 'members', '$user->rights->adherent->lire', '', 2, 3); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (4205, 'members', '', 4200, '/adherents/liste.php?statut=1&filter=outofdate', 'MenuMembersNotUpToDate', 1, 'members', '$user->rights->adherent->lire', '', 2, 4); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (4206, 'members', '', 4200, '/adherents/liste.php?statut=1&filter=uptodate', 'MenuMembersUpToDate', 1, 'members', '$user->rights->adherent->lire', '', 2, 5); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (4207, 'members', '', 4200, '/adherents/liste.php?statut=0', 'MenuMembersResiliated', 1, 'members', '$user->rights->adherent->lire', '', 2, 6); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (4300, 'members', '', 13, '/adherents/index.php?leftmenu=accountancy&mainmenu=members', 'Subscriptions', 0, 'compta', '$user->rights->adherent->cotisation->lire', '', 2, 1); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (4301, 'members', '', 4300, '/adherents/liste.php?statut=-1&leftmenu=accountancy&mainmenu=members', 'NewSubscription', 1, 'compta', '$user->rights->adherent->cotisation->creer', '', 2, 0); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (4302, 'members', '', 4300, '/adherents/cotisations.php?leftmenu=accountancy', 'List', 1, 'compta', '$user->rights->adherent->cotisation->lire', '', 2, 1); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (4400, 'members', '', 13, '/compta/bank/index.php?leftmenu=accountancy', 'Bank', 0, 'banks', '$user->rights->adherent->lire', '', 2, 2); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (4500, 'members', '', 13, '/adherents/index.php?leftmenu=export&mainmenu=members', 'Exports', 0, 'members', '$user->rights->adherent->export', '', 2, 3); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (4501, 'members', '$leftmenu=="export"', 4500, '/exports/index.php?leftmenu=export', 'Datas', 1, 'members', '$user->rights->adherent->export', '', 2, 0); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (4502, 'members', '$leftmenu=="export"', 4500, '/adherents/htpasswd.php?leftmenu=export', 'Filehtpasswd', 1, 'members', '$user->rights->adherent->export', '', 2, 1); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (4503, 'members', '$leftmenu=="export"', 4500, '/adherents/cartes/carte.php?leftmenu=export', 'MembersCards', 1, 'members', '$user->rights->adherent->export', '_new', 2, 2); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (4504, 'members', '$leftmenu=="export"', 4500, '/adherents/cartes/etiquette.php?leftmenu=export', 'Etiquettes d''adhérents', 1, 'members', '$user->rights->adherent->export', '_new', 2, 3); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (4600, 'members', '', 13, '/public/adherents/index.php?leftmenu=member_public', 'MemberPublicLinks', 0, 'members', '$user->rights->adherent->export', '', 2, 4); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (4700, 'members', '', 13, '/adherents/index.php?leftmenu=setup&mainmenu=members', 'Setup', 0, 'members', '$user->rights->adherent->configurer', '', 2, 5); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (4701, 'members', '', 4700, '/adherents/type.php?leftmenu=setup', 'MembersTypes', 1, 'members', '$user->rights->adherent->configurer', '', 2, 0); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (4702, 'members', '', 4700, '/adherents/options.php?leftmenu=setup', 'MembersAttributes', 1, 'members', '$user->rights->adherent->configurer', '', 2, 1); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (4800, 'product', '', 3, '/product/droitpret/index.php?leftmenu=droitpret', 'Droit de prêt', 0, 'products', '$user->rights->droitpret->lire', '', 2, 5); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (4801, 'product', '$leftmenu=="droitpret"', 4800, '/product/droitpret/index.php?leftmenu=droitpret', 'Générer rapport', 1, 'products', '$user->rights->droitpret->creer', '', 2, 1); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (4900, 'suppliers', '', 4, '/categories/index.php?leftmenu=cat&type=1', 'Categories', 0, 'categories', '$user->rights->categorie>lire', '', 2, 3); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (4901, 'suppliers', '$leftmenu=="cat"', 4900, '/categories/fiche.php?action=create&type=1', 'NewCat', 1, 'categories', '$user->rights->categorie>creer', '', 2, 0); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (5000, 'commercial', '', 5, '/categories/index.php?leftmenu=cat&type=2', 'Categories', 0, 'commercial', '$user->rights->categorie>lire', '', 2, 9); -insert into llx_menu (rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, [right], target, [user], [order]) values (5001, 'commercial', '$leftmenu=="cat"', 5000, '/categories/fiche.php?action=create&type=2', 'NewCat', 1, 'commercial', '$user->rights->categorie>creer', '', 2, 0); -update llx_menu set type='top' where level=-1; - --- --- Contenu de la table llx_menu_constraint --- -insert into llx_menu_constraint (rowid, action) values (1, '$user->admin'); -insert into llx_menu_constraint (rowid, action) values (2, '$conf->societe->enabled && $user->rights->societe->lire'); -insert into llx_menu_constraint (rowid, action) values (3, '$user->rights->societe->creer'); -insert into llx_menu_constraint (rowid, action) values (4, 'is_dir("societe/groupe")'); -insert into llx_menu_constraint (rowid, action) values (5, '$conf->societe->enabled && $conf->fournisseur->enabled'); -insert into llx_menu_constraint (rowid, action) values (6, '$user->societe_id == 0'); -insert into llx_menu_constraint (rowid, action) values (7, '$conf->propal->enabled'); -insert into llx_menu_constraint (rowid, action) values (8, '$conf->commande->enabled'); -insert into llx_menu_constraint (rowid, action) values (9, '$conf->expedition->enabled'); -insert into llx_menu_constraint (rowid, action) values (10, '$conf->contrat->enabled'); -insert into llx_menu_constraint (rowid, action) values (11, '$conf->fichinter->enabled'); -insert into llx_menu_constraint (rowid, action) values (12, '$conf->societe->enabled'); -insert into llx_menu_constraint (rowid, action) values (13, '$conf->facture->enabled'); -insert into llx_menu_constraint (rowid, action) values (14, '! $conf->global->FACTURE_DISABLE_RECUR'); -insert into llx_menu_constraint (rowid, action) values (15, '$conf->don->enabled'); -insert into llx_menu_constraint (rowid, action) values (16, '$conf->deplacement->enabled'); -insert into llx_menu_constraint (rowid, action) values (17, '$conf->tax->enabled'); -insert into llx_menu_constraint (rowid, action) values (18, '($conf->compta->enabled || $conf->comptaexpert->enabled) && $conf->compta->tva && $user->societe_id == 0'); -insert into llx_menu_constraint (rowid, action) values (19, '$conf->compta-enabled'); -insert into llx_menu_constraint (rowid, action) values (20, '$conf->prelevement->enabled'); -insert into llx_menu_constraint (rowid, action) values (21, '$conf->banque->enabled'); -insert into llx_menu_constraint (rowid, action) values (22, '$conf->compta->enabled || $conf->comptaexpert->enabled'); -insert into llx_menu_constraint (rowid, action) values (23, '$conf->produit->enabled'); -insert into llx_menu_constraint (rowid, action) values (24, '$conf->stock->enabled'); -insert into llx_menu_constraint (rowid, action) values (25, '$conf->service->enabled'); -insert into llx_menu_constraint (rowid, action) values (26, '$conf->categorie->enabled'); -insert into llx_menu_constraint (rowid, action) values (27, '$conf->projet->enabled'); -insert into llx_menu_constraint (rowid, action) values (28, '$conf->mailing->enabled'); -insert into llx_menu_constraint (rowid, action) values (29, '$conf->bookmark->enabled'); -insert into llx_menu_constraint (rowid, action) values (30, '$conf->export->enabled'); -insert into llx_menu_constraint (rowid, action) values (31, '$conf->adherent->enabled'); -insert into llx_menu_constraint (rowid, action) values (32, '($conf->societe->enabled && $user->rights->societe->lire) || ($conf->fournisseur->enabled && $user->rights->fournisseur->lire)'); -insert into llx_menu_constraint (rowid, action) values (33, '$conf->produit->enabled || $conf->service->enabled'); -insert into llx_menu_constraint (rowid, action) values (34, '$conf->fournisseur->enabled'); -insert into llx_menu_constraint (rowid, action) values (35, '$conf->commercial->enabled'); -insert into llx_menu_constraint (rowid, action) values (36, '$conf->compta->enabled || $conf->comptaexpert->enabled || $conf->banque->enabled\r\n || $conf->commande->enabled || $conf->facture->enabled'); -insert into llx_menu_constraint (rowid, action) values (37, '$conf->mailing->enabled || $conf->export->enabled || $conf->bookmark->enabled'); -insert into llx_menu_constraint (rowid, action) values (38, '$conf->boutique->enabled'); -insert into llx_menu_constraint (rowid, action) values (39, '$conf->oscommerce2->enabled'); -insert into llx_menu_constraint (rowid, action) values (40, '$conf->webcal->enabled'); -insert into llx_menu_constraint (rowid, action) values (41, '$conf->mantis->enabled'); -insert into llx_menu_constraint (rowid, action) values (42, '(dolibarr_get_const($this->db,"PRODUIT_SPECIAL_LIVRE")) && (dolibarr_get_const($this->db,"PRODUCT_CANVAS_ABILITY"))'); -insert into llx_menu_constraint (rowid, action) values (43, '!((dolibarr_get_const($this->db,"PRODUIT_SPECIAL_LIVRE")) && (dolibarr_get_const($this->db,"PRODUCT_CANVAS_ABILITY")))'); -insert into llx_menu_constraint (rowid, action) values (44, '$conf->droitpret->enabled'); -insert into llx_menu_constraint (rowid, action) values (45, '$conf->menudb->enabled'); -insert into llx_menu_constraint (rowid, action) values (46, '$conf->energie->enabled'); -insert into llx_menu_constraint (rowid, action) values (47, '$conf->telephonie->enabled'); - --- --- Contenu de la table llx_menu_const --- -SET IDENTITY_INSERT dbo.llx_menu_const ON - -insert into llx_menu_const (rowid, fk_menu, fk_constraint, [user]) values (1, 100, 1, 2); -insert into llx_menu_const (rowid, fk_menu, fk_constraint, [user]) values (2, 200, 1, 2); -insert into llx_menu_const (rowid, fk_menu, fk_constraint, [user]) values (3, 300, 1, 2); -insert into llx_menu_const (rowid, fk_menu, fk_constraint, [user]) values (4, 501, 3, 2); -insert into llx_menu_const (rowid, fk_menu, fk_constraint, [user]) values (5, 502, 4, 2); -insert into llx_menu_const (rowid, fk_menu, fk_constraint, [user]) values (6, 504, 6, 2); -insert into llx_menu_const (rowid, fk_menu, fk_constraint, [user]) values (7, 503, 5, 2); -insert into llx_menu_const (rowid, fk_menu, fk_constraint, [user]) values (8, 504, 5, 2); -insert into llx_menu_const (rowid, fk_menu, fk_constraint, [user]) values (9, 505, 5, 2); -insert into llx_menu_const (rowid, fk_menu, fk_constraint, [user]) values (11, 500, 2, 2); -insert into llx_menu_const (rowid, fk_menu, fk_constraint, [user]) values (12, 1100, 7, 2); -insert into llx_menu_const (rowid, fk_menu, fk_constraint, [user]) values (13, 1200, 8, 2); -insert into llx_menu_const (rowid, fk_menu, fk_constraint, [user]) values (14, 1300, 9, 2); -insert into llx_menu_const (rowid, fk_menu, fk_constraint, [user]) values (15, 1400, 10, 2); -insert into llx_menu_const (rowid, fk_menu, fk_constraint, [user]) values (16, 1500, 11, 2); -insert into llx_menu_const (rowid, fk_menu, fk_constraint, [user]) values (17, 1600, 5, 2); -insert into llx_menu_const (rowid, fk_menu, fk_constraint, [user]) values (18, 1601, 6, 2); -insert into llx_menu_const (rowid, fk_menu, fk_constraint, [user]) values (19, 1603, 12, 2); -insert into llx_menu_const (rowid, fk_menu, fk_constraint, [user]) values (20, 1605, 6, 2); -insert into llx_menu_const (rowid, fk_menu, fk_constraint, [user]) values (21, 1604, 13, 2); -insert into llx_menu_const (rowid, fk_menu, fk_constraint, [user]) values (22, 1605, 13, 2); -insert into llx_menu_const (rowid, fk_menu, fk_constraint, [user]) values (23, 1606, 13, 2); -insert into llx_menu_const (rowid, fk_menu, fk_constraint, [user]) values (24, 1607, 13, 2); -insert into llx_menu_const (rowid, fk_menu, fk_constraint, [user]) values (25, 1701, 6, 2); -insert into llx_menu_const (rowid, fk_menu, fk_constraint, [user]) values (26, 1700, 12, 2); -insert into llx_menu_const (rowid, fk_menu, fk_constraint, [user]) values (27, 1705, 6, 2); -insert into llx_menu_const (rowid, fk_menu, fk_constraint, [user]) values (28, 1706, 14, 2); -insert into llx_menu_const (rowid, fk_menu, fk_constraint, [user]) values (29, 1704, 13, 2); -insert into llx_menu_const (rowid, fk_menu, fk_constraint, [user]) values (30, 1705, 13, 2); -insert into llx_menu_const (rowid, fk_menu, fk_constraint, [user]) values (31, 1706, 13, 2); -insert into llx_menu_const (rowid, fk_menu, fk_constraint, [user]) values (32, 1708, 13, 2); -insert into llx_menu_const (rowid, fk_menu, fk_constraint, [user]) values (33, 1709, 13, 2); -insert into llx_menu_const (rowid, fk_menu, fk_constraint, [user]) values (34, 1710, 13, 2); -insert into llx_menu_const (rowid, fk_menu, fk_constraint, [user]) values (35, 1711, 13, 2); -insert into llx_menu_const (rowid, fk_menu, fk_constraint, [user]) values (36, 1712, 13, 2); -insert into llx_menu_const (rowid, fk_menu, fk_constraint, [user]) values (37, 1713, 13, 2); -insert into llx_menu_const (rowid, fk_menu, fk_constraint, [user]) values (38, 1714, 13, 2); -insert into llx_menu_const (rowid, fk_menu, fk_constraint, [user]) values (39, 1800, 7, 2); -insert into llx_menu_const (rowid, fk_menu, fk_constraint, [user]) values (40, 1900, 13, 2); -insert into llx_menu_const (rowid, fk_menu, fk_constraint, [user]) values (41, 1900, 8, 2); -insert into llx_menu_const (rowid, fk_menu, fk_constraint, [user]) values (42, 2000, 15, 2); -insert into llx_menu_const (rowid, fk_menu, fk_constraint, [user]) values (43, 2100, 16, 2); -insert into llx_menu_const (rowid, fk_menu, fk_constraint, [user]) values (44, 2200, 17, 2); -insert into llx_menu_const (rowid, fk_menu, fk_constraint, [user]) values (45, 2300, 18, 2); -insert into llx_menu_const (rowid, fk_menu, fk_constraint, [user]) values (46, 2400, 19, 2); -insert into llx_menu_const (rowid, fk_menu, fk_constraint, [user]) values (47, 2500, 20, 2); -insert into llx_menu_const (rowid, fk_menu, fk_constraint, [user]) values (48, 2300, 21, 2); -insert into llx_menu_const (rowid, fk_menu, fk_constraint, [user]) values (49, 2700, 22, 2); -insert into llx_menu_const (rowid, fk_menu, fk_constraint, [user]) values (50, 2800, 23, 2); -insert into llx_menu_const (rowid, fk_menu, fk_constraint, [user]) values (51, 2801, 6, 2); -insert into llx_menu_const (rowid, fk_menu, fk_constraint, [user]) values (52, 2803, 24, 2); -insert into llx_menu_const (rowid, fk_menu, fk_constraint, [user]) values (53, 2900, 25, 2); -insert into llx_menu_const (rowid, fk_menu, fk_constraint, [user]) values (54, 2901, 6, 2); -insert into llx_menu_const (rowid, fk_menu, fk_constraint, [user]) values (55, 3000, 7, 2); -insert into llx_menu_const (rowid, fk_menu, fk_constraint, [user]) values (56, 3100, 24, 2); -insert into llx_menu_const (rowid, fk_menu, fk_constraint, [user]) values (57, 3200, 26, 2); -insert into llx_menu_const (rowid, fk_menu, fk_constraint, [user]) values (58, 3201, 6, 2); -insert into llx_menu_const (rowid, fk_menu, fk_constraint, [user]) values (59, 3300, 5, 2); -insert into llx_menu_const (rowid, fk_menu, fk_constraint, [user]) values (60, 3301, 6, 2); -insert into llx_menu_const (rowid, fk_menu, fk_constraint, [user]) values (61, 3400, 13, 2); -insert into llx_menu_const (rowid, fk_menu, fk_constraint, [user]) values (62, 3401, 6, 2); -insert into llx_menu_const (rowid, fk_menu, fk_constraint, [user]) values (63, 3500, 8, 2); -insert into llx_menu_const (rowid, fk_menu, fk_constraint, [user]) values (64, 3600, 27, 2); -insert into llx_menu_const (rowid, fk_menu, fk_constraint, [user]) values (65, 3700, 27, 2); -insert into llx_menu_const (rowid, fk_menu, fk_constraint, [user]) values (66, 3800, 27, 2); -insert into llx_menu_const (rowid, fk_menu, fk_constraint, [user]) values (67, 3900, 28, 2); -insert into llx_menu_const (rowid, fk_menu, fk_constraint, [user]) values (68, 4000, 29, 2); -insert into llx_menu_const (rowid, fk_menu, fk_constraint, [user]) values (69, 4100, 30, 2); -insert into llx_menu_const (rowid, fk_menu, fk_constraint, [user]) values (70, 4200, 31, 2); -insert into llx_menu_const (rowid, fk_menu, fk_constraint, [user]) values (71, 4300, 31, 2); -insert into llx_menu_const (rowid, fk_menu, fk_constraint, [user]) values (72, 4400, 31, 2); -insert into llx_menu_const (rowid, fk_menu, fk_constraint, [user]) values (73, 4500, 31, 2); -insert into llx_menu_const (rowid, fk_menu, fk_constraint, [user]) values (74, 4600, 31, 2); -insert into llx_menu_const (rowid, fk_menu, fk_constraint, [user]) values (75, 4700, 31, 2); -insert into llx_menu_const (rowid, fk_menu, fk_constraint, [user]) values (76, 4400, 21, 2); -insert into llx_menu_const (rowid, fk_menu, fk_constraint, [user]) values (77, 4501, 30, 2); -insert into llx_menu_const (rowid, fk_menu, fk_constraint, [user]) values (78, 2, 32, 2); -insert into llx_menu_const (rowid, fk_menu, fk_constraint, [user]) values (79, 3, 33, 2); -insert into llx_menu_const (rowid, fk_menu, fk_constraint, [user]) values (80, 4, 34, 2); -insert into llx_menu_const (rowid, fk_menu, fk_constraint, [user]) values (81, 5, 35, 2); -insert into llx_menu_const (rowid, fk_menu, fk_constraint, [user]) values (82, 6, 36, 2); -insert into llx_menu_const (rowid, fk_menu, fk_constraint, [user]) values (83, 7, 27, 2); -insert into llx_menu_const (rowid, fk_menu, fk_constraint, [user]) values (84, 8, 37, 2); -insert into llx_menu_const (rowid, fk_menu, fk_constraint, [user]) values (85, 9, 47, 2); -insert into llx_menu_const (rowid, fk_menu, fk_constraint, [user]) values (86, 10, 46, 2); -insert into llx_menu_const (rowid, fk_menu, fk_constraint, [user]) values (87, 11, 38, 2); -insert into llx_menu_const (rowid, fk_menu, fk_constraint, [user]) values (88, 12, 39, 2); -insert into llx_menu_const (rowid, fk_menu, fk_constraint, [user]) values (89, 13, 40, 2); -insert into llx_menu_const (rowid, fk_menu, fk_constraint, [user]) values (90, 14, 41, 2); -insert into llx_menu_const (rowid, fk_menu, fk_constraint, [user]) values (91, 15, 31, 2); -insert into llx_menu_const (rowid, fk_menu, fk_constraint, [user]) values (100, 1715, 13, 1); -insert into llx_menu_const (rowid, fk_menu, fk_constraint, [user]) values (101, 1716, 13, 1); -insert into llx_menu_const (rowid, fk_menu, fk_constraint, [user]) values (102, 1717, 13, 1); -insert into llx_menu_const (rowid, fk_menu, fk_constraint, [user]) values (103, 2804, 42, 2); -insert into llx_menu_const (rowid, fk_menu, fk_constraint, [user]) values (104, 2805, 42, 2); -insert into llx_menu_const (rowid, fk_menu, fk_constraint, [user]) values (105, 2801, 43, 2); -insert into llx_menu_const (rowid, fk_menu, fk_constraint, [user]) values (106, 2802, 43, 2); -insert into llx_menu_const (rowid, fk_menu, fk_constraint, [user]) values (110, 4800, 44, 2); -insert into llx_menu_const (rowid, fk_menu, fk_constraint, [user]) values (111, 4900, 26, 2); -insert into llx_menu_const (rowid, fk_menu, fk_constraint, [user]) values (112, 4901, 6, 2); -insert into llx_menu_const (rowid, fk_menu, fk_constraint, [user]) values (113, 5000, 26, 2); -insert into llx_menu_const (rowid, fk_menu, fk_constraint, [user]) values (114, 5001, 6, 2); - -SET IDENTITY_INSERT dbo.llx_menu_const OFF - --- --- Eco-Taxes --- - -SET IDENTITY_INSERT dbo.llx_c_ecotaxe ON - --- France (Organisme ERP) -INSERT INTO llx_c_ecotaxe (rowid, code, libelle, price, organization, fk_pays, active) VALUES (1, 'ER-A-A', 'Matériels électriques < 0,2kg', 0.01000000, 'ERP', 1, 1); -INSERT INTO llx_c_ecotaxe (rowid, code, libelle, price, organization, fk_pays, active) VALUES (2, 'ER-A-B', 'Matériels électriques >= 0,2 kg et < 0,5 kg', 0.03000000, 'ERP', 1, 1); -INSERT INTO llx_c_ecotaxe (rowid, code, libelle, price, organization, fk_pays, active) VALUES (3, 'ER-A-C', 'Matériels électriques >= 0,5 kg et < 1 kg', 0.04000000, 'ERP', 1, 1); -INSERT INTO llx_c_ecotaxe (rowid, code, libelle, price, organization, fk_pays, active) VALUES (4, 'ER-A-D', 'Matériels électriques >= 1 kg et < 2 kg', 0.13000000, 'ERP', 1, 1); -INSERT INTO llx_c_ecotaxe (rowid, code, libelle, price, organization, fk_pays, active) VALUES (5, 'ER-A-E', 'Matériels électriques >= 2 kg et < 4kg', 0.21000000, 'ERP', 1, 1); -INSERT INTO llx_c_ecotaxe (rowid, code, libelle, price, organization, fk_pays, active) VALUES (6, 'ER-A-F', 'Matériels électriques >= 4 kg et < 8 kg', 0.42000000, 'ERP', 1, 1); -INSERT INTO llx_c_ecotaxe (rowid, code, libelle, price, organization, fk_pays, active) VALUES (7, 'ER-A-G', 'Matériels électriques >= 8 kg et < 15 kg', 0.84000000, 'ERP', 1, 1); -INSERT INTO llx_c_ecotaxe (rowid, code, libelle, price, organization, fk_pays, active) VALUES (8, 'ER-A-H', 'Matériels électriques >= 15 kg et < 20 kg', 1.25000000, 'ERP', 1, 1); -INSERT INTO llx_c_ecotaxe (rowid, code, libelle, price, organization, fk_pays, active) VALUES (9, 'ER-A-I', 'Matériels électriques >= 20 kg et < 30 kg', 1.88000000, 'ERP', 1, 1); -INSERT INTO llx_c_ecotaxe (rowid, code, libelle, price, organization, fk_pays, active) VALUES (10, 'ER-A-J', 'Matériels électriques >= 30 kg', 3.34000000, 'ERP', 1, 1); -INSERT INTO llx_c_ecotaxe (rowid, code, libelle, price, organization, fk_pays, active) VALUES (11, 'ER-M-1', 'TV, Moniteurs < 9kg', 0.84000000, 'ERP', 1, 1); -INSERT INTO llx_c_ecotaxe (rowid, code, libelle, price, organization, fk_pays, active) VALUES (12, 'ER-M-2', 'TV, Moniteurs >= 9kg et < 15kg', 1.67000000, 'ERP', 1, 1); -INSERT INTO llx_c_ecotaxe (rowid, code, libelle, price, organization, fk_pays, active) VALUES (13, 'ER-M-3', 'TV, Moniteurs >= 15kg et < 30kg', 3.34000000, 'ERP', 1, 1); -INSERT INTO llx_c_ecotaxe (rowid, code, libelle, price, organization, fk_pays, active) VALUES (14, 'ER-M-4', 'TV, Moniteurs >= 30 kg', 6.69000000, 'ERP', 1, 1); -INSERT INTO llx_c_ecotaxe (rowid, code, libelle, price, organization, fk_pays, active) VALUES (15, 'EC-A-A', 'Matériels électriques 0,2 kg max', 0.00840000, 'Ecologic', 1, 1); -INSERT INTO llx_c_ecotaxe (rowid, code, libelle, price, organization, fk_pays, active) VALUES (16, 'EC-A-B', 'Matériels électriques 0,21 kg min - 0,50 kg max', 0.02500000, 'Ecologic', 1, 1); -INSERT INTO llx_c_ecotaxe (rowid, code, libelle, price, organization, fk_pays, active) VALUES (17, 'EC-A-C', 'Matériels électriques 0,51 kg min - 1 kg max', 0.04000000, 'Ecologic', 1, 1); -INSERT INTO llx_c_ecotaxe (rowid, code, libelle, price, organization, fk_pays, active) VALUES (18, 'EC-A-D', 'Matériels électriques 1,01 kg min - 2,5 kg max', 0.13000000, 'Ecologic', 1, 1); -INSERT INTO llx_c_ecotaxe (rowid, code, libelle, price, organization, fk_pays, active) VALUES (19, 'EC-A-E', 'Matériels électriques 2,51 kg min - 4 kg max', 0.21000000, 'Ecologic', 1, 1); -INSERT INTO llx_c_ecotaxe (rowid, code, libelle, price, organization, fk_pays, active) VALUES (20, 'EC-A-F', 'Matériels électriques 4,01 kg min - 8 kg max', 0.42000000, 'Ecologic', 1, 1); -INSERT INTO llx_c_ecotaxe (rowid, code, libelle, price, organization, fk_pays, active) VALUES (21, 'EC-A-G', 'Matériels électriques 8,01 kg min - 12 kg max', 0.63000000, 'Ecologic', 1, 1); -INSERT INTO llx_c_ecotaxe (rowid, code, libelle, price, organization, fk_pays, active) VALUES (22, 'EC-A-H', 'Matériels électriques 12,01 kg min - 20 kg max', 1.05000000, 'Ecologic', 1, 1); -INSERT INTO llx_c_ecotaxe (rowid, code, libelle, price, organization, fk_pays, active) VALUES (23, 'EC-A-I', 'Matériels électriques 20,01 kg min', 1.88000000, 'Ecologic', 1, 1); -INSERT INTO llx_c_ecotaxe (rowid, code, libelle, price, organization, fk_pays, active) VALUES (24, 'EC-M-1', 'TV, Moniteurs 9 kg max', 0.84000000, 'Ecologic', 1, 1); -INSERT INTO llx_c_ecotaxe (rowid, code, libelle, price, organization, fk_pays, active) VALUES (25, 'EC-M-2', 'TV, Moniteurs 9,01 kg min - 18 kg max', 1.67000000, 'Ecologic', 1, 1); -INSERT INTO llx_c_ecotaxe (rowid, code, libelle, price, organization, fk_pays, active) VALUES (26, 'EC-M-3', 'TV, Moniteurs 18,01 kg min - 36 kg max', 3.34000000, 'Ecologic', 1, 1); -INSERT INTO llx_c_ecotaxe (rowid, code, libelle, price, organization, fk_pays, active) VALUES (27, 'EC-M-4', 'TV, Moniteurs 36,01 kg min', 6.69000000, 'Ecologic', 1, 1); -INSERT INTO llx_c_ecotaxe (rowid, code, libelle, price, organization, fk_pays, active) VALUES (28, 'ES-M-1', 'TV, Moniteurs <= 20 pouces', 0.84000000, 'Eco-systèmes', 1, 1); -INSERT INTO llx_c_ecotaxe (rowid, code, libelle, price, organization, fk_pays, active) VALUES (29, 'ES-M-2', 'TV, Moniteurs > 20 pouces et <= 32 pouces', 3.34000000, 'Eco-systèmes', 1, 1); -INSERT INTO llx_c_ecotaxe (rowid, code, libelle, price, organization, fk_pays, active) VALUES (30, 'ES-M-3', 'TV, Moniteurs > 32 pouces et autres grands écrans', 6.69000000, 'Eco-systèmes', 1, 1); -INSERT INTO llx_c_ecotaxe (rowid, code, libelle, price, organization, fk_pays, active) VALUES (31, 'ES-A-A', 'Ordinateur fixe, Audio home systems (HIFI), éléments hifi séparés…', 0.84000000, 'Eco-systèmes', 1, 1); -INSERT INTO llx_c_ecotaxe (rowid, code, libelle, price, organization, fk_pays, active) VALUES (32, 'ES-A-B', 'Ordinateur portable, CD-RCR, VCR, lecteurs et enregistreurs DVD … Instruments de musique et caisses de résonance, haut parleurs...', 0.25000000, 'Eco-systèmes', 1, 1); -INSERT INTO llx_c_ecotaxe (rowid, code, libelle, price, organization, fk_pays, active) VALUES (33, 'ES-A-C', 'Imprimante, photocopieur, télécopieur,…', 0.42000000, 'Eco-systèmes', 1, 1); -INSERT INTO llx_c_ecotaxe (rowid, code, libelle, price, organization, fk_pays, active) VALUES (34, 'ES-A-D', 'Accessoires, clavier, souris, PDA, imprimante photo, appareil photo, gps, téléphone, répondeur, téléphone sans fil, modem,... Télécommande, casque, caméscope, baladeur mp3, radio portable, radio K7 et CD portable, set top box, radio réveil …', 0.08400000, 'Eco-systèmes', 1, 1); -INSERT INTO llx_c_ecotaxe (rowid, code, libelle, price, organization, fk_pays, active) VALUES (35, 'ES-A-E', 'GSM', 0.00840000, 'Eco-systèmes', 1, 1); -INSERT INTO llx_c_ecotaxe (rowid, code, libelle, price, organization, fk_pays, active) VALUES (36, 'ES-A-F', 'Jouets et équipements de loisirs et de sports < 0,5 kg', 0.04200000, 'Eco-systèmes', 1, 1); -INSERT INTO llx_c_ecotaxe (rowid, code, libelle, price, organization, fk_pays, active) VALUES (37, 'ES-A-G', 'Jouets et équipements de loisirs et de sports > 0,5 kg', 0.17000000, 'Eco-systèmes', 1, 1); -INSERT INTO llx_c_ecotaxe (rowid, code, libelle, price, organization, fk_pays, active) VALUES (38, 'ES-A-H', 'Jouets et équipements de loisirs et de sports > 10 kg', 1.25000000, 'Eco-systèmes', 1, 1); - -SET IDENTITY_INSERT dbo.llx_c_ecotaxe OFF diff --git a/mssql/tables/llx_accountingaccount.key.sql b/mssql/tables/llx_accountingaccount.key.sql deleted file mode 100644 index 1cd002cb31e..00000000000 --- a/mssql/tables/llx_accountingaccount.key.sql +++ /dev/null @@ -1,27 +0,0 @@ --- ============================================================================ --- Copyright (C) 2003 Rodolphe Quiedeville --- Copyright (C) 2005-2006 Laurent Destailleur --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General [public] License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General [public] License for more details. --- --- You should have received a copy of the GNU General [public] License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- $Id$ --- $Source$ --- =========================================================================== - - -CREATE INDEX idx_accountingaccount_fk_pcg_version On llx_accountingaccount(fk_pcg_version); - - -ALTER TABLE llx_accountingaccount ADD CONSTRAINT fk_accountingaccount_fk_pcg_version FOREIGN KEY (fk_pcg_version) REFERENCES llx_accountingsystem (pcg_version); diff --git a/mssql/tables/llx_accountingaccount.sql b/mssql/tables/llx_accountingaccount.sql deleted file mode 100644 index d21aa0e4229..00000000000 --- a/mssql/tables/llx_accountingaccount.sql +++ /dev/null @@ -1,31 +0,0 @@ --- ============================================================================ --- Copyright (C) 2004-2006 Laurent Destailleur --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General [public] License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General [public] License for more details. --- --- You should have received a copy of the GNU General [public] License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- $Id$ --- $Source$ --- ============================================================================ - -create table llx_accountingaccount -( - rowid integer IDENTITY PRIMARY KEY, - fk_pcg_version varchar(12) NOT NULL, - pcg_type varchar(20) NOT NULL, - pcg_subtype varchar(20) NOT NULL, - label varchar(128) NOT NULL, - account_number varchar(20) NOT NULL, - account_parent varchar(20) -); diff --git a/mssql/tables/llx_accountingdebcred.sql b/mssql/tables/llx_accountingdebcred.sql deleted file mode 100644 index b90bb0db7e8..00000000000 --- a/mssql/tables/llx_accountingdebcred.sql +++ /dev/null @@ -1,28 +0,0 @@ --- ============================================================================ --- Copyright (C) 2004-2006 Laurent Destailleur --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General [public] License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General [public] License for more details. --- --- You should have received a copy of the GNU General [public] License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- $Id$ --- $Source$ --- ============================================================================ - -create table llx_accountingdebcred -( - fk_transaction integer NOT NULL, - fk_account integer NOT NULL, - amount real NOT NULL, - direction varchar(1) NOT NULL -); diff --git a/mssql/tables/llx_accountingsystem.sql b/mssql/tables/llx_accountingsystem.sql deleted file mode 100644 index 3e3e4fa48de..00000000000 --- a/mssql/tables/llx_accountingsystem.sql +++ /dev/null @@ -1,31 +0,0 @@ --- ============================================================================ --- Copyright (C) 2004-2006 Laurent Destailleur --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General [public] License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General [public] License for more details. --- --- You should have received a copy of the GNU General [public] License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- $Id$ --- $Source$ --- ============================================================================ - -create table llx_accountingsystem -( - pcg_version varchar(12) PRIMARY KEY, - fk_pays integer NOT NULL, - label varchar(128) NOT NULL, - datec varchar(12) NOT NULL, - fk_author varchar(20), - tms timestamp, - active smallint DEFAULT 0 -); diff --git a/mssql/tables/llx_accountingtransaction.sql b/mssql/tables/llx_accountingtransaction.sql deleted file mode 100644 index b78c1cd1105..00000000000 --- a/mssql/tables/llx_accountingtransaction.sql +++ /dev/null @@ -1,33 +0,0 @@ --- ============================================================================ --- Copyright (C) 2004-2006 Laurent Destailleur --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General [public] License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General [public] License for more details. --- --- You should have received a copy of the GNU General [public] License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- $Id$ --- $Source$ --- ============================================================================ - -create table llx_accountingtransaction -( - rowid integer IDENTITY PRIMARY KEY, - label varchar(128) NOT NULL, - datec SMALLDATETIME NOT NULL, - fk_author varchar(20) NOT NULL, - tms timestamp, - fk_facture integer, - fk_facture_fourn integer, - fk_paiement integer, - fk_paiement_fourn integer -); diff --git a/mssql/tables/llx_action_def.sql b/mssql/tables/llx_action_def.sql deleted file mode 100644 index d1ba3094d1e..00000000000 --- a/mssql/tables/llx_action_def.sql +++ /dev/null @@ -1,33 +0,0 @@ --- =================================================================== --- Copyright (C) 2003 Rodolphe Quiedeville --- Copyright (C) 2004 Benoit Mortier --- Copyright (C) 2004 Guillaume Delecourt --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General [public] License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General [public] License for more details. --- --- You should have received a copy of the GNU General [public] License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- $Id$ --- $Source$ --- --- =================================================================== - -create table llx_action_def -( - rowid integer NOT NULL PRIMARY KEY, - code varchar(25) UNIQUE NOT NULL, - tms timestamp, - titre varchar(255) NOT NULL, - description text, - objet_type varchar(14) check (objet_type in ('ficheinter','facture','propale','mailing','order_supplier')) -); diff --git a/mssql/tables/llx_actioncomm.key.sql b/mssql/tables/llx_actioncomm.key.sql deleted file mode 100644 index f218d86ea69..00000000000 --- a/mssql/tables/llx_actioncomm.key.sql +++ /dev/null @@ -1,27 +0,0 @@ --- ============================================================================ --- Copyright (C) 2005 Laurent Destailleur --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General [public] License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General [public] License for more details. --- --- You should have received a copy of the GNU General [public] License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- $Id$ --- $Source$ --- --- =========================================================================== - - -CREATE INDEX idx_actioncomm_datea ON llx_actioncomm(datea); -CREATE INDEX idx_actioncomm_fk_soc ON llx_actioncomm(fk_soc); -CREATE INDEX idx_actioncomm_fk_contact ON llx_actioncomm(fk_contact); -CREATE INDEX idx_actioncomm_fk_facture ON llx_actioncomm(fk_facture); diff --git a/mssql/tables/llx_actioncomm.sql b/mssql/tables/llx_actioncomm.sql deleted file mode 100644 index 75d8b5ae716..00000000000 --- a/mssql/tables/llx_actioncomm.sql +++ /dev/null @@ -1,60 +0,0 @@ --- ======================================================================== --- Copyright (C) 2001-2003 Rodolphe Quiedeville --- Copyright (C) 2005 Laurent Destailleur --- --- $Id$ --- $Source$ --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General [public] License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General [public] License for more details. --- --- You should have received a copy of the GNU General [public] License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Actions commerciales --- --- ======================================================================== - -create table llx_actioncomm -( - id integer IDENTITY PRIMARY KEY, - datec SMALLDATETIME, -- SMALLDATETIME creation - datep SMALLDATETIME, -- SMALLDATETIME debut planifiee - datep2 SMALLDATETIME, -- SMALLDATETIME fin planifiee si action non ponctuelle - datea SMALLDATETIME, -- SMALLDATETIME debut realisation - datea2 SMALLDATETIME, -- SMALLDATETIME fin realisation si action non ponctuelle - tms timestamp, -- SMALLDATETIME modif - fk_action integer, -- type de l'action - label varchar(50) NOT NULL, -- libelle de l'action - - fk_project integer, - fk_soc integer, - fk_contact integer, - fk_parent integer NOT NULL default 0, - - fk_user_action integer, -- id de la personne qui doit effectuer l'action - fk_user_author integer, -- id de la personne qui a effectuer l'action - priority smallint, - punctual smallint NOT NULL default 1, - [percent] smallint NOT NULL default 0, - durationp real, -- duree planifiee - durationa real, -- duree reellement passee - note text, - - propalrowid integer, - fk_commande integer, - fk_facture integer - -); - - - - diff --git a/mssql/tables/llx_adherent.sql b/mssql/tables/llx_adherent.sql deleted file mode 100644 index df1aeaaa2e4..00000000000 --- a/mssql/tables/llx_adherent.sql +++ /dev/null @@ -1,62 +0,0 @@ --- =================================================================== --- Copyright (C) 2002-2004 Rodolphe Quiedeville --- Copyright (C) 2002-2003 Jean-Louis Bergamo --- Copyright (C) 2006 Laurent Destailleur --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General [public] License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General [public] License for more details. --- --- You should have received a copy of the GNU General [public] License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- $Id$ --- $Source$ --- --- =================================================================== --- --- statut --- -1 : brouillon --- 0 : resilie --- 1 : valide - -create table llx_adherent -( - rowid integer IDENTITY PRIMARY KEY, - nom varchar(50), - prenom varchar(50), - login varchar(50) NOT NULL, -- login - pass varchar(50), -- password - fk_adherent_type smallint, - morphy varchar(3) check (morphy in ('mor','phy')) NOT NULL, -- personne morale / personne physique - societe varchar(50), - adresse text, - cp varchar(30), - ville varchar(50), - pays varchar(50), - email varchar(255), - phone varchar(30), - phone_perso varchar(30), - phone_mobile varchar(30), - naiss SMALLDATETIME, -- SMALLDATETIME de naissance - photo varchar(255), -- url vers photo - statut smallint NOT NULL DEFAULT 0, - [public] smallint NOT NULL DEFAULT 0, -- certain champ de la fiche sont ils [public] ou pas ? - datefin SMALLDATETIME, -- SMALLDATETIME de fin de validité de la cotisation - note text, - datevalid SMALLDATETIME, -- SMALLDATETIME de validation - datec SMALLDATETIME, -- SMALLDATETIME de creation - tms timestamp, -- SMALLDATETIME de modification - fk_user_author integer NOT NULL, - fk_user_mod integer NOT NULL, - fk_user_valid integer NOT NULL, -); - -CREATE UNIQUE INDEX login ON llx_adherent(login) diff --git a/mssql/tables/llx_adherent_options.sql b/mssql/tables/llx_adherent_options.sql deleted file mode 100644 index 3b9ff2f0f2d..00000000000 --- a/mssql/tables/llx_adherent_options.sql +++ /dev/null @@ -1,31 +0,0 @@ --- =================================================================== --- Copyright (C) 2002-2003 Rodolphe Quiedeville --- Copyright (C) 2002-2003 Jean-Louis Bergamo --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General [public] License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General [public] License for more details. --- --- You should have received a copy of the GNU General [public] License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- $Id$ --- $Source$ --- --- =================================================================== - -create table llx_adherent_options -( - optid integer IDENTITY PRIMARY KEY, - tms timestamp, - adhid integer NOT NULL, -- id de l'adherent auquel correspond ces attributs optionnel -); - -CREATE UNIQUE INDEX adhid ON llx_adherent_options(adhid) diff --git a/mssql/tables/llx_adherent_options_label.sql b/mssql/tables/llx_adherent_options_label.sql deleted file mode 100644 index 05472d53dde..00000000000 --- a/mssql/tables/llx_adherent_options_label.sql +++ /dev/null @@ -1,29 +0,0 @@ --- =================================================================== --- Copyright (C) 2002-2003 Rodolphe Quiedeville --- Copyright (C) 2002-2003 Jean-Louis Bergamo --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General [public] License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General [public] License for more details. --- --- You should have received a copy of the GNU General [public] License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- $Id$ --- $Source$ --- --- =================================================================== - -create table llx_adherent_options_label -( - name varchar(64) PRIMARY KEY, -- nom de l'attribut - tms timestamp, - label varchar(255) NOT NULL -- label correspondant a l'attribut -); diff --git a/mssql/tables/llx_adherent_type.key.sql b/mssql/tables/llx_adherent_type.key.sql deleted file mode 100644 index 8f5abbe1b71..00000000000 --- a/mssql/tables/llx_adherent_type.key.sql +++ /dev/null @@ -1,24 +0,0 @@ --- ============================================================================ --- Copyright (C) 2007 Laurent Destailleur --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- $Id$ --- $Source$ --- --- ============================================================================ - - -CREATE UNIQUE INDEX uk_adherent_type_libelle ON llx_adherent_type(libelle); diff --git a/mssql/tables/llx_adherent_type.sql b/mssql/tables/llx_adherent_type.sql deleted file mode 100644 index cdbf09711be..00000000000 --- a/mssql/tables/llx_adherent_type.sql +++ /dev/null @@ -1,38 +0,0 @@ --- =================================================================== --- Copyright (C) 2002-2003 Rodolphe Quiedeville --- Copyright (C) 2002-2003 Jean-Louis Bergamo --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General [public] License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General [public] License for more details. --- --- You should have received a copy of the GNU General [public] License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- $Id$ --- $Source$ --- --- =================================================================== --- --- statut --- 0 : actif --- 1 : inactif - -create table llx_adherent_type -( - rowid integer IDENTITY PRIMARY KEY, - tms timestamp, - statut smallint NOT NULL DEFAULT 0, - libelle varchar(50) NOT NULL, - cotisation varchar(3) check (cotisation in ('yes','no')) NOT NULL DEFAULT 'yes', - vote varchar(3) check (vote in ('yes','no')) DEFAULT 'yes', - note text, - mail_valid text -- mail envoye a la validation -); diff --git a/mssql/tables/llx_appro.sql b/mssql/tables/llx_appro.sql deleted file mode 100644 index 6be89b45641..00000000000 --- a/mssql/tables/llx_appro.sql +++ /dev/null @@ -1,33 +0,0 @@ --- ============================================================================ --- Copyright (C) 2003 Rodolphe Quiedeville --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General [public] License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General [public] License for more details. --- --- You should have received a copy of the GNU General [public] License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- $Id$ --- $Source$ --- --- ============================================================================ - -create table llx_appro -( - rowid integer IDENTITY PRIMARY KEY, - datec datetime, - tms timestamp, - fk_product integer NOT NULL, - quantity smallint NOT NULL, - price real, - fk_user_author integer -); - diff --git a/mssql/tables/llx_bank.sql b/mssql/tables/llx_bank.sql deleted file mode 100644 index e4f1bbe56e1..00000000000 --- a/mssql/tables/llx_bank.sql +++ /dev/null @@ -1,44 +0,0 @@ --- =================================================================== --- Copyright (C) 2000-2006 Rodolphe Quiedeville --- Copyright (C) 2005 Laurent Destailleur --- --- $Id$ --- $Source$ --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General [public] License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General [public] License for more details. --- --- You should have received a copy of the GNU General [public] License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- =================================================================== - -create table llx_bank -( - rowid integer IDENTITY PRIMARY KEY, - datec datetime, - datev SMALLDATETIME, -- SMALLDATETIME de valeur - dateo SMALLDATETIME, -- SMALLDATETIME operation - amount real NOT NULL default 0, - label varchar(255), - fk_account integer, - fk_user_author integer, - fk_user_rappro integer, - fk_type varchar(4), -- CB, Virement, cheque - num_releve varchar(50), - num_chq integer, - rappro tinyint default 0, - note text, - fk_bordereau integer DEFAULT 0, - banque varchar(255), -- banque pour les cheques - emetteur varchar(255), -- emetteur du cheque - author varchar(40) -- a supprimer apres migration -); diff --git a/mssql/tables/llx_bank_account.key.sql b/mssql/tables/llx_bank_account.key.sql deleted file mode 100644 index c868a3297a1..00000000000 --- a/mssql/tables/llx_bank_account.key.sql +++ /dev/null @@ -1,24 +0,0 @@ --- ============================================================================ --- Copyright (C) 2005 Laurent Destailleur --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General [public] License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General [public] License for more details. --- --- You should have received a copy of the GNU General [public] License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- $Id$ --- $Source$ --- --- ============================================================================ - - -ALTER TABLE llx_bank_account add constraint uk_bank_account_label UNIQUE (label); diff --git a/mssql/tables/llx_bank_account.sql b/mssql/tables/llx_bank_account.sql deleted file mode 100644 index a04af128e93..00000000000 --- a/mssql/tables/llx_bank_account.sql +++ /dev/null @@ -1,54 +0,0 @@ --- ============================================================================= --- Copyright (C) 2000-2004 Rodolphe Quiedeville --- Copyright (C) 2004-2006 Laurent Destailleur --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General [public] License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General [public] License for more details. --- --- You should have received a copy of the GNU General [public] License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- $Id$ --- $Source$ --- --- --- courant : type de compte: 0 epargne, 1 courant, 2 caisse --- clos : le compte est-il clos ou encore ouvert --- --- ============================================================================= - -create table llx_bank_account -( - rowid integer IDENTITY PRIMARY KEY, - datec datetime, - tms timestamp, - ref varchar(12) NOT NULL, - label varchar(30) NOT NULL, - bank varchar(60), - code_banque varchar(7), - code_guichet varchar(6), - number varchar(255), - cle_rib varchar(5), - bic varchar(11), - iban_prefix varchar(5), - domiciliation varchar(255), - proprio varchar(60), - adresse_proprio varchar(255), - courant smallint DEFAULT 0 NOT NULL, - clos smallint DEFAULT 0 NOT NULL, - rappro smallint DEFAULT 1, - url varchar(128), - account_number varchar(8), - currency_code varchar(3) NOT NULL, - min_allowed integer DEFAULT 0, - min_desired integer DEFAULT 0, - comment varchar(254) -); diff --git a/mssql/tables/llx_bank_categ.sql b/mssql/tables/llx_bank_categ.sql deleted file mode 100644 index 3c0fafba6b7..00000000000 --- a/mssql/tables/llx_bank_categ.sql +++ /dev/null @@ -1,25 +0,0 @@ --- =================================================================== --- $Id$ --- $Source$ --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General [public] License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General [public] License for more details. --- --- You should have received a copy of the GNU General [public] License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- =================================================================== - -create table llx_bank_categ -( - rowid integer IDENTITY PRIMARY KEY, - label varchar(255) -); diff --git a/mssql/tables/llx_bank_class.sql b/mssql/tables/llx_bank_class.sql deleted file mode 100644 index abe75852e2d..00000000000 --- a/mssql/tables/llx_bank_class.sql +++ /dev/null @@ -1,27 +0,0 @@ --- =================================================================== --- $Id$ --- $Source$ --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General [public] License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General [public] License for more details. --- --- You should have received a copy of the GNU General [public] License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- =================================================================== - -create table llx_bank_class -( - lineid integer NOT NULL, - fk_categ integer NOT NULL, -); - -CREATE INDEX lineid ON llx_bank_class(lineid) diff --git a/mssql/tables/llx_bank_url.key.sql b/mssql/tables/llx_bank_url.key.sql deleted file mode 100644 index 1a7f92baf9d..00000000000 --- a/mssql/tables/llx_bank_url.key.sql +++ /dev/null @@ -1,26 +0,0 @@ --- =================================================================== --- Copyright (C) 2005-2007 Laurent Destailleur --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General [public] License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General [public] License for more details. --- --- You should have received a copy of the GNU General [public] License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- $Id$ --- $Source$ --- --- =================================================================== - - -CREATE UNIQUE INDEX uk_bank_url ON llx_bank_url(fk_bank,type); - ---ALTER TABLE llx_bank_url ADD INDEX idx_bank_url_fk_bank (fk_bank); \ No newline at end of file diff --git a/mssql/tables/llx_bank_url.sql b/mssql/tables/llx_bank_url.sql deleted file mode 100644 index 683d461a781..00000000000 --- a/mssql/tables/llx_bank_url.sql +++ /dev/null @@ -1,32 +0,0 @@ --- =================================================================== --- Copyright (C) 2003 Rodolphe Quiedeville --- Copyright (C) 2007 Laurent Destailleur --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General [public] License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General [public] License for more details. --- --- You should have received a copy of the GNU General [public] License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- $Id$ --- $Source$ --- --- =================================================================== - -create table llx_bank_url -( - rowid integer IDENTITY PRIMARY KEY, - fk_bank integer, - url_id integer, - url varchar(255), - label varchar(255), - type varchar(16) NOT NULL check (type in ('?','company','payment','payment_supplier','member','subscription','donation','sc','payment_sc')) -); diff --git a/mssql/tables/llx_bookmark.key.sql b/mssql/tables/llx_bookmark.key.sql deleted file mode 100644 index 240298ee37b..00000000000 --- a/mssql/tables/llx_bookmark.key.sql +++ /dev/null @@ -1,25 +0,0 @@ --- =================================================================== --- Copyright (C) 2005 Laurent Destailleur --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General [public] License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General [public] License for more details. --- --- You should have received a copy of the GNU General [public] License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- $Id$ --- $Source$ --- --- =================================================================== - - -CREATE UNIQUE INDEX uk_bookmark_url ON llx_bookmark(fk_user, url); -CREATE UNIQUE INDEX uk_bookmark_title ON llx_bookmark(fk_user, title); diff --git a/mssql/tables/llx_bookmark.sql b/mssql/tables/llx_bookmark.sql deleted file mode 100644 index 9d4e1119679..00000000000 --- a/mssql/tables/llx_bookmark.sql +++ /dev/null @@ -1,31 +0,0 @@ --- =================================================================== --- $Id$ --- $Source$ --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General [public] License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General [public] License for more details. --- --- You should have received a copy of the GNU General [public] License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- =================================================================== - -create table llx_bookmark -( - rowid integer IDENTITY PRIMARY KEY, - fk_soc integer, - fk_user integer NOT NULL, - dateb datetime, - url varchar(128) NOT NULL, - target varchar(16), - title varchar(64), - favicon varchar(24) -); diff --git a/mssql/tables/llx_bordereau_cheque.sql b/mssql/tables/llx_bordereau_cheque.sql deleted file mode 100644 index b1a5173e4c9..00000000000 --- a/mssql/tables/llx_bordereau_cheque.sql +++ /dev/null @@ -1,37 +0,0 @@ --- =================================================================== --- Copyright (C) 2006 Rodolphe Quiedeville --- --- $Id$ --- $Source$ --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- =================================================================== --- --- Bordereaux de remise de cheque --- -create table llx_bordereau_cheque -( - rowid integer IDENTITY PRIMARY KEY, - datec datetime, - date_bordereau SMALLDATETIME, - number integer, - amount float, - nbcheque smallint DEFAULT 0, - fk_bank_account integer, - fk_user_author integer, - note text, - statut tinyint DEFAULT 0 -); diff --git a/mssql/tables/llx_boxes.key.sql b/mssql/tables/llx_boxes.key.sql deleted file mode 100644 index c458d970f7f..00000000000 --- a/mssql/tables/llx_boxes.key.sql +++ /dev/null @@ -1,30 +0,0 @@ --- =================================================================== --- Copyright (C) 2006 Laurent Destailleur --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General [public] License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General [public] License for more details. --- --- You should have received a copy of the GNU General [public] License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- $Id$ --- $Source$ --- =================================================================== - - --- Supprimme orphelins pour permettre montée de la clé --- V4 DELETE llx_boxes FROM llx_boxes LEFT JOIN llx_boxes_def ON llx_boxes.box_id = llx_boxes_def.rowid WHERE llx_boxes_def.rowid IS NULL; - -CREATE INDEX idx_boxes_boxid ON llx_boxes(box_id); - -ALTER TABLE llx_boxes ADD CONSTRAINT fk_boxes_box_id FOREIGN KEY (box_id) REFERENCES llx_boxes_def (rowid); - -CREATE INDEX idx_boxes_fk_user ON llx_boxes(fk_user); diff --git a/mssql/tables/llx_boxes.sql b/mssql/tables/llx_boxes.sql deleted file mode 100644 index 139a29ed64f..00000000000 --- a/mssql/tables/llx_boxes.sql +++ /dev/null @@ -1,35 +0,0 @@ --- ============================================================================ --- Copyright (C) 2003 Rodolphe Quiedeville --- Copyright (C) 2006 Laurent Destailleur --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General [public] License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General [public] License for more details. --- --- You should have received a copy of the GNU General [public] License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- $Id$ --- $Source$ --- --- =========================================================================== --- --- position : 0=index.php --- box_order : Box sort order --- - -create table llx_boxes -( - rowid integer IDENTITY PRIMARY KEY, - box_id integer NOT NULL, - position smallint NOT NULL, - box_order varchar(3) NOT NULL, - fk_user integer default 0 NOT NULL -); diff --git a/mssql/tables/llx_boxes_def.sql b/mssql/tables/llx_boxes_def.sql deleted file mode 100644 index 36ed2be9286..00000000000 --- a/mssql/tables/llx_boxes_def.sql +++ /dev/null @@ -1,29 +0,0 @@ --- ============================================================================ --- Copyright (C) 2003 Rodolphe Quiedeville --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General [public] License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General [public] License for more details. --- --- You should have received a copy of the GNU General [public] License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- $Id$ --- $Source$ --- --- =========================================================================== - -create table llx_boxes_def -( - rowid integer IDENTITY PRIMARY KEY, - name varchar(255) NOT NULL, - [file] varchar(255) NOT NULL, - note text -); diff --git a/mssql/tables/llx_c_actioncomm.sql b/mssql/tables/llx_c_actioncomm.sql deleted file mode 100644 index 3f64ed5ca56..00000000000 --- a/mssql/tables/llx_c_actioncomm.sql +++ /dev/null @@ -1,33 +0,0 @@ --- ======================================================================== --- Copyright (C) 2001-2002,2004 Rodolphe Quiedeville --- Copyright (C) 2004 Laurent Destailleur --- --- $Id$ --- $Source$ --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General [public] License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General [public] License for more details. --- --- You should have received a copy of the GNU General [public] License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- ======================================================================== - -create table llx_c_actioncomm -( - id integer PRIMARY KEY, - code varchar(12) UNIQUE NOT NULL, - type varchar(10) DEFAULT 'system' NOT NULL, - libelle varchar(30) NOT NULL, - module varchar(16) DEFAULT NULL, - active tinyint DEFAULT 1 NOT NULL, - todo tinyint -); diff --git a/mssql/tables/llx_c_chargesociales.sql b/mssql/tables/llx_c_chargesociales.sql deleted file mode 100644 index 2eafb1a6ee7..00000000000 --- a/mssql/tables/llx_c_chargesociales.sql +++ /dev/null @@ -1,33 +0,0 @@ --- ======================================================================== --- Copyright (C) 2001-2002,2004 Rodolphe Quiedeville --- Copyright (C) 2004 Laurent Destailleur --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General [public] License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General [public] License for more details. --- --- You should have received a copy of the GNU General [public] License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- $Id$ --- $Source$ --- --- ======================================================================== - -create table llx_c_chargesociales -( - id integer IDENTITY PRIMARY KEY, - libelle varchar(80), - deductible smallint DEFAULT 0 NOT NULL, - active tinyint DEFAULT 1 NOT NULL -); - - - diff --git a/mssql/tables/llx_c_civilite.sql b/mssql/tables/llx_c_civilite.sql deleted file mode 100644 index d9997621ac3..00000000000 --- a/mssql/tables/llx_c_civilite.sql +++ /dev/null @@ -1,30 +0,0 @@ --- ======================================================================== --- Copyright (C) 2004 Benoit Mortier --- Copyright (C) 2004 Laurent Destailleur --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General [public] License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General [public] License for more details. --- --- You should have received a copy of the GNU General [public] License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- $Id$ --- $Source$ --- ======================================================================== - -create table llx_c_civilite -( - rowid integer PRIMARY KEY, - code varchar(6) UNIQUE NOT NULL, - civilite varchar(50), - active tinyint DEFAULT 1 NOT NULL -); - diff --git a/mssql/tables/llx_c_currencies.key.sql b/mssql/tables/llx_c_currencies.key.sql deleted file mode 100644 index 2c88ce9f9c8..00000000000 --- a/mssql/tables/llx_c_currencies.key.sql +++ /dev/null @@ -1,24 +0,0 @@ --- ======================================================================== --- Copyright (C) 2005 Laurent Destailleur --- --- $Id$ --- $Source$ --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General [public] License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General [public] License for more details. --- --- You should have received a copy of the GNU General [public] License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- ======================================================================== - - -CREATE UNIQUE INDEX uk_c_currencies_code_iso ON llx_c_currencies(code_iso); diff --git a/mssql/tables/llx_c_currencies.sql b/mssql/tables/llx_c_currencies.sql deleted file mode 100644 index 3ed0e19c67f..00000000000 --- a/mssql/tables/llx_c_currencies.sql +++ /dev/null @@ -1,30 +0,0 @@ --- ======================================================================== --- Copyright (C) 2005 Laurent Destailleur --- --- $Id$ --- $Source$ --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General [public] License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General [public] License for more details. --- --- You should have received a copy of the GNU General [public] License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- ======================================================================== - -create table llx_c_currencies -( - code varchar(2) PRIMARY KEY, - code_iso varchar(3) NOT NULL, - label varchar(64), - active tinyint DEFAULT 1 NOT NULL -); - diff --git a/mssql/tables/llx_c_departements.key.sql b/mssql/tables/llx_c_departements.key.sql deleted file mode 100644 index 054ffb9ee80..00000000000 --- a/mssql/tables/llx_c_departements.key.sql +++ /dev/null @@ -1,27 +0,0 @@ --- ============================================================================ --- Copyright (C) 2005 Laurent Destailleur --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General [public] License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General [public] License for more details. --- --- You should have received a copy of the GNU General [public] License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- $Id$ --- $Source$ --- --- ============================================================================ - - -CREATE UNIQUE INDEX uk_departements ON llx_c_departements(code_departement,fk_region); - - -CREATE INDEX idx_departements_fk_region ON llx_c_departements(fk_region); diff --git a/mssql/tables/llx_c_departements.sql b/mssql/tables/llx_c_departements.sql deleted file mode 100644 index 494582999ec..00000000000 --- a/mssql/tables/llx_c_departements.sql +++ /dev/null @@ -1,37 +0,0 @@ --- ======================================================================== --- Copyright (C) 2004 Rodolphe Quiedeville --- Copyright (C) 2004 Laurent Destailleur --- --- $Id$ --- $Source$ --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General [public] License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General [public] License for more details. --- --- You should have received a copy of the GNU General [public] License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- ======================================================================== - -create table llx_c_departements -( - rowid integer IDENTITY PRIMARY KEY, - code_departement varchar(6) NOT NULL, - fk_region integer, - cheflieu varchar(7), - tncc integer, - ncc varchar(50), - nom varchar(50), - active tinyint DEFAULT 1 NOT NULL -); - - - diff --git a/mssql/tables/llx_c_ecotaxe.sql b/mssql/tables/llx_c_ecotaxe.sql deleted file mode 100644 index e6991324188..00000000000 --- a/mssql/tables/llx_c_ecotaxe.sql +++ /dev/null @@ -1,32 +0,0 @@ --- ======================================================================== --- Copyright (C) 2007 Régis Houssin --- --- $Id$ --- $Source$ --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- ======================================================================== - -create table llx_c_ecotaxe -( - rowid integer IDENTITY PRIMARY KEY, - code varchar(64) UNIQUE NOT NULL, -- Code servant à la traduction et à la référence interne - libelle varchar(255), -- Description - price FLOAT(25), -- Montant HT - organization varchar(255), -- Organisme gérant le barème tarifaire - fk_pays integer NOT NULL, -- Pays correspondant - active tinyint DEFAULT 1 NOT NULL -); \ No newline at end of file diff --git a/mssql/tables/llx_c_effectif.sql b/mssql/tables/llx_c_effectif.sql deleted file mode 100644 index 49b44eeba5e..00000000000 --- a/mssql/tables/llx_c_effectif.sql +++ /dev/null @@ -1,31 +0,0 @@ --- ======================================================================== --- Copyright (C) 2001-2002,2004 Rodolphe Quiedeville --- Copyright (C) 2004 Laurent Destailleur --- --- $Id$ --- $Source$ --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General [public] License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General [public] License for more details. --- --- You should have received a copy of the GNU General [public] License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- ======================================================================== - -create table llx_c_effectif -( - id integer PRIMARY KEY, - code varchar(12) UNIQUE NOT NULL, - libelle varchar(30), - active tinyint DEFAULT 1 NOT NULL -); - diff --git a/mssql/tables/llx_c_forme_juridique.sql b/mssql/tables/llx_c_forme_juridique.sql deleted file mode 100644 index ef13731c4a2..00000000000 --- a/mssql/tables/llx_c_forme_juridique.sql +++ /dev/null @@ -1,33 +0,0 @@ --- ======================================================================== --- Copyright (C) 2004 Rodolphe Quiedeville --- Copyright (C) 2004 Laurent Destailleur --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General [public] License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General [public] License for more details. --- --- You should have received a copy of the GNU General [public] License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- $Id$ --- $Source$ --- --- ======================================================================== - -create table llx_c_forme_juridique -( - rowid integer IDENTITY PRIMARY KEY, - code varchar(12) UNIQUE NOT NULL, - fk_pays integer NOT NULL, - libelle varchar(255), - active tinyint DEFAULT 1 NOT NULL - -); - diff --git a/mssql/tables/llx_c_methode_commande_fournisseur.sql b/mssql/tables/llx_c_methode_commande_fournisseur.sql deleted file mode 100644 index 90accaeb882..00000000000 --- a/mssql/tables/llx_c_methode_commande_fournisseur.sql +++ /dev/null @@ -1,32 +0,0 @@ --- ======================================================================== --- Copyright (C) 2004-2005 Rodolphe Quiedeville --- Copyright (C) 2005 Laurent Destailleur --- --- $Id$ --- $Source$ --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General [public] License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General [public] License for more details. --- --- You should have received a copy of the GNU General [public] License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- ======================================================================== - -create table llx_c_methode_commande_fournisseur -( - rowid integer IDENTITY PRIMARY KEY, - code varchar(30), - libelle varchar(60), - active tinyint default 1 NOT NULL, -); - -CREATE UNIQUE INDEX code ON llx_c_methode_commande_fournisseur(code) diff --git a/mssql/tables/llx_c_paiement.sql b/mssql/tables/llx_c_paiement.sql deleted file mode 100644 index ae89ad55732..00000000000 --- a/mssql/tables/llx_c_paiement.sql +++ /dev/null @@ -1,40 +0,0 @@ --- ======================================================================== --- Copyright (C) 2001-2004 Rodolphe Quiedeville --- Copyright (C) 2004 Laurent Destailleur --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General [public] License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General [public] License for more details. --- --- You should have received a copy of the GNU General [public] License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- $Id$ --- $Source$ --- --- ======================================================================== --- --- Type : --- --- 0 : entrée d'argent --- 1 : sortie d'argent --- 2 : entrée ou sortie d'argent - -create table llx_c_paiement -( - id integer PRIMARY KEY, - code varchar(6) UNIQUE NOT NULL, - libelle varchar(30), - type smallint, - active tinyint DEFAULT 1 NOT NULL -); - - - diff --git a/mssql/tables/llx_c_pays.key.sql b/mssql/tables/llx_c_pays.key.sql deleted file mode 100644 index 2c0c6342f09..00000000000 --- a/mssql/tables/llx_c_pays.key.sql +++ /dev/null @@ -1,26 +0,0 @@ --- ======================================================================== --- Copyright (C) 2005 Laurent Destailleur --- --- $Id$ --- $Source$ --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General [public] License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General [public] License for more details. --- --- You should have received a copy of the GNU General [public] License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- ======================================================================== - - -CREATE UNIQUE INDEX idx_c_pays_code ON llx_c_pays(code); ---CREATE UNIQUE INDEX idx_c_pays_code_iso ON llx_c_pays(code_iso); -CREATE UNIQUE INDEX idx_c_pays_libelle ON llx_c_pays(libelle); diff --git a/mssql/tables/llx_c_pays.sql b/mssql/tables/llx_c_pays.sql deleted file mode 100644 index 4710f2c8089..00000000000 --- a/mssql/tables/llx_c_pays.sql +++ /dev/null @@ -1,31 +0,0 @@ --- ======================================================================== --- Copyright (C) 2001-2002,2004 Rodolphe Quiedeville --- Copyright (C) 2004 Laurent Destailleur --- --- $Id$ --- $Source$ --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General [public] License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General [public] License for more details. --- --- You should have received a copy of the GNU General [public] License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- ======================================================================== - -create table llx_c_pays -( - rowid integer PRIMARY KEY, - code varchar(2) NOT NULL, - code_iso varchar(3) , - libelle varchar(50) NOT NULL, - active tinyint DEFAULT 1 NOT NULL -); diff --git a/mssql/tables/llx_c_propalst.sql b/mssql/tables/llx_c_propalst.sql deleted file mode 100644 index c89641de7c6..00000000000 --- a/mssql/tables/llx_c_propalst.sql +++ /dev/null @@ -1,31 +0,0 @@ --- =================================================================== --- Copyright (C) 2001-2002,2004 Rodolphe Quiedeville --- Copyright (C) 2004 Laurent Destailleur --- --- $Id$ --- $Source$ --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General [public] License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General [public] License for more details. --- --- You should have received a copy of the GNU General [public] License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- =================================================================== - -create table llx_c_propalst -( - id smallint PRIMARY KEY, - code varchar(12) UNIQUE NOT NULL, - label varchar(30), - active tinyint DEFAULT 1 NOT NULL -); - diff --git a/mssql/tables/llx_c_regions.key.sql b/mssql/tables/llx_c_regions.key.sql deleted file mode 100644 index 3ec6c73668c..00000000000 --- a/mssql/tables/llx_c_regions.key.sql +++ /dev/null @@ -1,26 +0,0 @@ --- ======================================================================== --- Copyright (C) 2005 Laurent Destailleur --- --- $Id$ --- $Source$ --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General [public] License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General [public] License for more details. --- --- You should have received a copy of the GNU General [public] License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- ======================================================================== - - -CREATE INDEX idx_c_regions_fk_pays ON llx_c_regions(fk_pays); - -ALTER TABLE llx_c_regions ADD CONSTRAINT fk_c_regions_fk_pays FOREIGN KEY (fk_pays) REFERENCES llx_c_pays (rowid); diff --git a/mssql/tables/llx_c_regions.sql b/mssql/tables/llx_c_regions.sql deleted file mode 100644 index 9f5d3bdc2a6..00000000000 --- a/mssql/tables/llx_c_regions.sql +++ /dev/null @@ -1,34 +0,0 @@ --- ======================================================================== --- Copyright (C) 2001-2002,2004 Rodolphe Quiedeville --- Copyright (C) 2004 Laurent Destailleur --- --- $Id$ --- $Source$ --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General [public] License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General [public] License for more details. --- --- You should have received a copy of the GNU General [public] License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- ======================================================================== - -create table llx_c_regions -( - rowid integer IDENTITY PRIMARY KEY, - code_region integer UNIQUE NOT NULL, - fk_pays integer NOT NULL, - cheflieu varchar(7), - tncc integer, - nom varchar(50), - active tinyint DEFAULT 1 NOT NULL -); - diff --git a/mssql/tables/llx_c_stcomm.sql b/mssql/tables/llx_c_stcomm.sql deleted file mode 100644 index e50640e038d..00000000000 --- a/mssql/tables/llx_c_stcomm.sql +++ /dev/null @@ -1,31 +0,0 @@ --- ======================================================================== --- Copyright (C) 2001-2002,2004 Rodolphe Quiedeville --- Copyright (C) 2004 Laurent Destailleur --- --- $Id$ --- $Source$ --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General [public] License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General [public] License for more details. --- --- You should have received a copy of the GNU General [public] License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- ======================================================================== - -create table llx_c_stcomm -( - id integer PRIMARY KEY, - code varchar(12) UNIQUE NOT NULL, - libelle varchar(30), - active tinyint default 1 NOT NULL -); - diff --git a/mssql/tables/llx_c_tva.sql b/mssql/tables/llx_c_tva.sql deleted file mode 100644 index a87cce86004..00000000000 --- a/mssql/tables/llx_c_tva.sql +++ /dev/null @@ -1,33 +0,0 @@ --- ======================================================================== --- Copyright (C) 2005 Laurent Destailleur --- --- $Id$ --- $Source$ --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General [public] License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General [public] License for more details. --- --- You should have received a copy of the GNU General [public] License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- ======================================================================== - -create table llx_c_tva -( - rowid integer NOT NULL IDENTITY PRIMARY KEY, - fk_pays integer NOT NULL, - taux FLOAT(25) NOT NULL, - recuperableonly integer NOT NULL DEFAULT 0, - note varchar(128), - active tinyint DEFAULT 1 NOT NULL - -); - diff --git a/mssql/tables/llx_c_type_contact.key.sql b/mssql/tables/llx_c_type_contact.key.sql deleted file mode 100644 index e096791fa71..00000000000 --- a/mssql/tables/llx_c_type_contact.key.sql +++ /dev/null @@ -1,33 +0,0 @@ --- ======================================================================== --- Copyright (C) 2005 Patrick Rouillon --- Copyright (C) 2005 Laurent Destailleur --- --- $Id$ --- $Source$ --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General [public] License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General [public] License for more details. --- --- You should have received a copy of the GNU General [public] License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Defini les types de contact d'un element sert de reference pour --- la table llx_element_contact --- --- element est le nom de la table utilisant le type de contact. --- i.e. contact, facture, projet, societe (sans le llx_ devant). --- Libelle est un texte décrivant le type de contact. --- active précide si cette valeur est active ou 'archivé'. --- --- ======================================================================== - - -CREATE UNIQUE INDEX idx_c_type_contact_uk ON llx_c_type_contact(element, source, code); diff --git a/mssql/tables/llx_c_type_contact.sql b/mssql/tables/llx_c_type_contact.sql deleted file mode 100644 index f5326d1f7a4..00000000000 --- a/mssql/tables/llx_c_type_contact.sql +++ /dev/null @@ -1,41 +0,0 @@ --- ======================================================================== --- Copyright (C) 2005 Patrick Rouillon --- Copyright (C) 2005 Laurent Destailleur --- --- $Id$ --- $Source$ --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General [public] License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General [public] License for more details. --- --- You should have received a copy of the GNU General [public] License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- Defini les types de contact d'un element sert de reference pour --- la table llx_element_contact --- --- element est le nom de la table utilisant le type de contact. --- i.e. contact, facture, projet, societe (sans le llx_ devant). --- Libelle est un texte décrivant le type de contact. --- active précide si cette valeur est active ou 'archivé'. --- --- ======================================================================== - - -create table llx_c_type_contact -( - rowid integer PRIMARY KEY, - element varchar(30) NOT NULL, - source varchar(8) DEFAULT 'external' NOT NULL, - code varchar(16) NOT NULL, - libelle varchar(64) NOT NULL, - active tinyint DEFAULT 1 NOT NULL -); diff --git a/mssql/tables/llx_c_typent.sql b/mssql/tables/llx_c_typent.sql deleted file mode 100644 index 67658ee20d5..00000000000 --- a/mssql/tables/llx_c_typent.sql +++ /dev/null @@ -1,30 +0,0 @@ --- ======================================================================== --- Copyright (C) 2001-2002,2004 Rodolphe Quiedeville --- Copyright (C) 2004 Laurent Destailleur --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General [public] License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General [public] License for more details. --- --- You should have received a copy of the GNU General [public] License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- $Id$ --- $Source$ --- --- ======================================================================== - -create table llx_c_typent -( - id integer PRIMARY KEY, - code varchar(12) UNIQUE NOT NULL, - libelle varchar(30), - active tinyint DEFAULT 1 NOT NULL -); diff --git a/mssql/tables/llx_categorie.key.sql b/mssql/tables/llx_categorie.key.sql deleted file mode 100644 index 43000ca31ab..00000000000 --- a/mssql/tables/llx_categorie.key.sql +++ /dev/null @@ -1,20 +0,0 @@ --- ============================================================================ --- Copyright (C) 2007 Laurent Destailleur --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General [public] License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General [public] License for more details. --- --- You should have received a copy of the GNU General [public] License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- ============================================================================ - -CREATE INDEX uk_categorie_ref ON llx_categorie(label); diff --git a/mssql/tables/llx_categorie.sql b/mssql/tables/llx_categorie.sql deleted file mode 100644 index d5e68de9a5a..00000000000 --- a/mssql/tables/llx_categorie.sql +++ /dev/null @@ -1,32 +0,0 @@ --- ============================================================================ --- Copyright (C) 2005 Brice Davoleau --- Copyright (C) 2005 Matthieu Valleton --- Copyright (C) 2005-2006 Regis Houssin --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General [public] License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General [public] License for more details. --- --- You should have received a copy of the GNU General [public] License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- $Id$ --- $Source$ --- --- ============================================================================ - -create table llx_categorie -( - rowid integer IDENTITY PRIMARY KEY, - label VARCHAR(255), -- nom de la catégorie - description text, -- description de la catégorie - visible tinyint DEFAULT 1 NOT NULL, -- determine si les produits sont visible ou pas - type integer not null default 0 -); diff --git a/mssql/tables/llx_categorie_association.key.sql b/mssql/tables/llx_categorie_association.key.sql deleted file mode 100644 index 71c18b0fe48..00000000000 --- a/mssql/tables/llx_categorie_association.key.sql +++ /dev/null @@ -1,27 +0,0 @@ --- ============================================================================ --- Copyright (C) 2005 Brice Davoleau --- Copyright (C) 2005 Matthieu Valleton --- Copyright (C) 2005 Laurent Destailleur --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General [public] License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General [public] License for more details. --- --- You should have received a copy of the GNU General [public] License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- ============================================================================ - - -CREATE INDEX idx_categorie_association_fk_categorie_mere ON llx_categorie_association(fk_categorie_mere); -CREATE INDEX idx_categorie_association_fk_categorie_fille ON llx_categorie_association(fk_categorie_fille); - -ALTER TABLE llx_categorie_association ADD CONSTRAINT fk_categorie_asso_fk_categorie_mere FOREIGN KEY (fk_categorie_mere) REFERENCES llx_categorie (rowid); -ALTER TABLE llx_categorie_association ADD CONSTRAINT fk_categorie_asso_fk_categorie_fille FOREIGN KEY (fk_categorie_fille) REFERENCES llx_categorie (rowid); diff --git a/mssql/tables/llx_categorie_association.sql b/mssql/tables/llx_categorie_association.sql deleted file mode 100644 index ce6b53e0122..00000000000 --- a/mssql/tables/llx_categorie_association.sql +++ /dev/null @@ -1,25 +0,0 @@ --- ============================================================================ --- Copyright (C) 2005 Brice Davoleau --- Copyright (C) 2005 Matthieu Valleton --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General [public] License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General [public] License for more details. --- --- You should have received a copy of the GNU General [public] License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- ============================================================================ - -create table llx_categorie_association -( - fk_categorie_mere integer NOT NULL, - fk_categorie_fille integer NOT NULL -); diff --git a/mssql/tables/llx_categorie_fournisseur.sql b/mssql/tables/llx_categorie_fournisseur.sql deleted file mode 100644 index bf997c20a51..00000000000 --- a/mssql/tables/llx_categorie_fournisseur.sql +++ /dev/null @@ -1,28 +0,0 @@ --- ============================================================================ --- Copyright (C) 2006 Rodolphe Quiedeville --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General [public] License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General [public] License for more details. --- --- You should have received a copy of the GNU General [public] License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- $Id$ --- $Source$ --- --- ============================================================================ - -create table llx_categorie_fournisseur -( - fk_categorie integer NOT NULL, - fk_societe integer NOT NULL, - UNIQUE (fk_categorie, fk_societe) -); diff --git a/mssql/tables/llx_categorie_product.key.sql b/mssql/tables/llx_categorie_product.key.sql deleted file mode 100644 index 4902caf1603..00000000000 --- a/mssql/tables/llx_categorie_product.key.sql +++ /dev/null @@ -1,27 +0,0 @@ --- ============================================================================ --- Copyright (C) 2005 Brice Davoleau --- Copyright (C) 2005 Matthieu Valleton --- Copyright (C) 2005 Laurent Destailleur --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General [public] License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General [public] License for more details. --- --- You should have received a copy of the GNU General [public] License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- ============================================================================ - -ALTER TABLE llx_categorie_product ADD PRIMARY KEY (fk_categorie, fk_product); -CREATE INDEX idx_categorie_product_fk_categorie ON llx_categorie_product(fk_categorie); -CREATE INDEX idx_categorie_product_fk_product ON llx_categorie_product(fk_product); - -ALTER TABLE llx_categorie_product ADD CONSTRAINT fk_categorie_product_categorie_rowid FOREIGN KEY (fk_categorie) REFERENCES llx_categorie (rowid); -ALTER TABLE llx_categorie_product ADD CONSTRAINT fk_categorie_product_product_rowid FOREIGN KEY (fk_product) REFERENCES llx_product (rowid); diff --git a/mssql/tables/llx_categorie_product.sql b/mssql/tables/llx_categorie_product.sql deleted file mode 100644 index ce6c9b6824b..00000000000 --- a/mssql/tables/llx_categorie_product.sql +++ /dev/null @@ -1,25 +0,0 @@ --- ============================================================================ --- Copyright (C) 2005 Brice Davoleau --- Copyright (C) 2005 Matthieu Valleton --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General [public] License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General [public] License for more details. --- --- You should have received a copy of the GNU General [public] License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- ============================================================================ - -create table llx_categorie_product -( - fk_categorie integer NOT NULL, - fk_product integer NOT NULL -); diff --git a/mssql/tables/llx_categorie_societe.key.sql b/mssql/tables/llx_categorie_societe.key.sql deleted file mode 100644 index f36eae10618..00000000000 --- a/mssql/tables/llx_categorie_societe.key.sql +++ /dev/null @@ -1,28 +0,0 @@ --- ============================================================================ --- Copyright (C) 2007 Patrick Raguin --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- ============================================================================ - -ALTER TABLE llx_categorie_societe ADD PRIMARY KEY (fk_categorie, fk_societe); - -CREATE INDEX idx_categorie_societe_fk_categorie ON llx_categorie_societe(fk_categorie); -CREATE INDEX idx_categorie_societe_fk_societe ON llx_categorie_societe(fk_societe); - -ALTER TABLE llx_categorie_societe ADD CONSTRAINT fk_categorie_societe_categorie_rowid FOREIGN KEY (fk_categorie) REFERENCES llx_categorie (rowid); -ALTER TABLE llx_categorie_societe ADD CONSTRAINT fk_categorie_societe_fk_soc FOREIGN KEY (fk_societe) REFERENCES llx_societe (rowid); - -CREATE UNIQUE INDEX fk_categorie ON llx_categorie_societe(fk_categorie, fk_societe); diff --git a/mssql/tables/llx_categorie_societe.sql b/mssql/tables/llx_categorie_societe.sql deleted file mode 100644 index cc0b7575b0f..00000000000 --- a/mssql/tables/llx_categorie_societe.sql +++ /dev/null @@ -1,23 +0,0 @@ --- ============================================================================ --- Copyright (C) 2007 Patrick Raguin --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- ============================================================================ - -create table llx_categorie_societe ( - fk_categorie integer not null, - fk_societe integer not null -); diff --git a/mssql/tables/llx_chargesociales.sql b/mssql/tables/llx_chargesociales.sql deleted file mode 100644 index 9a22af1fec7..00000000000 --- a/mssql/tables/llx_chargesociales.sql +++ /dev/null @@ -1,35 +0,0 @@ --- ======================================================================== --- Copyright (C) 2001-2002 Rodolphe Quiedeville --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General [public] License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General [public] License for more details. --- --- You should have received a copy of the GNU General [public] License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- $Id$ --- $Source$ --- --- ======================================================================== - -create table llx_chargesociales -( - rowid integer IDENTITY PRIMARY KEY, - date_ech datetime NOT NULL, -- SMALLDATETIME d'echeance - libelle varchar(80), - fk_type integer, - amount real default 0 NOT NULL, - paye smallint default 0 NOT NULL, - periode SMALLDATETIME -); - - - diff --git a/mssql/tables/llx_co_fa.sql b/mssql/tables/llx_co_fa.sql deleted file mode 100644 index 46a14588d28..00000000000 --- a/mssql/tables/llx_co_fa.sql +++ /dev/null @@ -1,30 +0,0 @@ --- =================================================================== --- Copyright (C) 2003 Rodolphe Quiedeville --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General [public] License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General [public] License for more details. --- --- You should have received a copy of the GNU General [public] License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- $Id$ --- $Source$ --- =================================================================== - -create table llx_co_fa -( - rowid integer IDENTITY PRIMARY KEY, - fk_commande integer NOT NULL, - fk_facture integer NOT NULL - - --key(fk_commande), - --key(fk_facture) -); diff --git a/mssql/tables/llx_co_pr.sql b/mssql/tables/llx_co_pr.sql deleted file mode 100644 index 7d89659ddb6..00000000000 --- a/mssql/tables/llx_co_pr.sql +++ /dev/null @@ -1,27 +0,0 @@ --- =================================================================== --- Copyright (C) 2003 Rodolphe Quiedeville --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General [public] License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General [public] License for more details. --- --- You should have received a copy of the GNU General [public] License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- $Id$ --- $Source$ --- =================================================================== - -create table llx_co_pr -( - rowid integer IDENTITY PRIMARY KEY, - fk_commande integer, - fk_propale integer -); diff --git a/mssql/tables/llx_commande.key.sql b/mssql/tables/llx_commande.key.sql deleted file mode 100644 index 36f0a8b4c93..00000000000 --- a/mssql/tables/llx_commande.key.sql +++ /dev/null @@ -1,29 +0,0 @@ --- ============================================================================ --- Copyright (C) 2006 Laurent Destailleur --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General [public] License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General [public] License for more details. --- --- You should have received a copy of the GNU General [public] License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- $Id$ --- $Source$ --- --- ============================================================================ - - --- Supprimme orphelins pour permettre montée de la clé --- V4 DELETE llx_commande FROM llx_commande LEFT JOIN llx_societe ON llx_commande.fk_soc = llx_societe.idp WHERE llx_societe.idp IS NULL; - -CREATE INDEX idx_commande_fk_soc ON llx_commande(fk_soc); - -ALTER TABLE llx_commande ADD CONSTRAINT fk_commande_societe FOREIGN KEY (fk_soc) REFERENCES llx_societe (rowid); diff --git a/mssql/tables/llx_commande.sql b/mssql/tables/llx_commande.sql deleted file mode 100644 index 5da7779b93a..00000000000 --- a/mssql/tables/llx_commande.sql +++ /dev/null @@ -1,60 +0,0 @@ --- =================================================================== --- Copyright (C) 2003 Rodolphe Quiedeville --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General [public] License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General [public] License for more details. --- --- You should have received a copy of the GNU General [public] License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- $Id$ --- $Source$ --- --- =================================================================== - -create table llx_commande -( - rowid integer IDENTITY PRIMARY KEY, - tms timestamp, - fk_soc integer NOT NULL, - fk_projet integer DEFAULT 0, -- projet auquel est rattache la commande - ref varchar(30) NOT NULL, -- order number - ref_client varchar(30), -- customer order number - - date_creation datetime, -- date de creation - date_valid datetime, -- date de validation - date_cloture datetime, -- date de cloture - date_commande SMALLDATETIME, -- date de la commande - fk_user_author integer, -- createur de la commande - fk_user_valid integer, -- valideur de la commande - fk_user_cloture integer, -- auteur cloture - source smallint NOT NULL, - fk_statut smallint default 0, - amount_ht real default 0, - remise_percent real default 0, - remise_absolue real default 0, - remise real default 0, - tva float default 0, - total_ht float default 0, - total_ttc float default 0, - note text, - note_public text, - model_pdf varchar(50), - - facture tinyint default 0, - fk_cond_reglement integer, -- condition de réglement - fk_mode_reglement integer, -- mode de réglement - date_livraison SMALLDATETIME default NULL, - fk_adresse_livraison integer -- adresse de livraison - -); - -CREATE UNIQUE INDEX ref ON llx_commande(ref) diff --git a/mssql/tables/llx_commande_fournisseur.key.sql b/mssql/tables/llx_commande_fournisseur.key.sql deleted file mode 100644 index 95ca08c28f8..00000000000 --- a/mssql/tables/llx_commande_fournisseur.key.sql +++ /dev/null @@ -1,31 +0,0 @@ --- ============================================================================ --- Copyright (C) 2006 Laurent Destailleur --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General [public] License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General [public] License for more details. --- --- You should have received a copy of the GNU General [public] License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- $Id$ --- $Source$ --- --- ============================================================================ - - --- Supprimme orphelins pour permettre montée de la clé --- V4 DELETE llx_commande_fournisseur FROM llx_commande_fournisseur LEFT JOIN llx_societe ON llx_commande_fournisseur.fk_soc = llx_societe.idp WHERE llx_societe.idp IS NULL; - -CREATE INDEX idx_commande_fournisseur_fk_soc ON llx_commande_fournisseur(fk_soc); - -ALTER TABLE llx_commande_fournisseur ADD CONSTRAINT fk_commande_fournisseur_fk_soc FOREIGN KEY (fk_soc) REFERENCES llx_societe (rowid); - -CREATE UNIQUE INDEX uk_commande_fournisseur_ref ON llx_commande_fournisseur(ref, fk_soc); diff --git a/mssql/tables/llx_commande_fournisseur.sql b/mssql/tables/llx_commande_fournisseur.sql deleted file mode 100644 index 17bd804e4c3..00000000000 --- a/mssql/tables/llx_commande_fournisseur.sql +++ /dev/null @@ -1,54 +0,0 @@ --- =================================================================== --- Copyright (C) 2004 Rodolphe Quiedeville --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General [public] License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General [public] License for more details. --- --- You should have received a copy of the GNU General [public] License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- $Id$ --- $Source$ --- --- =================================================================== - -create table llx_commande_fournisseur -( - rowid integer IDENTITY PRIMARY KEY, - tms timestamp, - fk_soc integer NOT NULL, - fk_projet integer DEFAULT 0, -- projet auquel est rattache la commande - ref varchar(30) NOT NULL, -- order number - - date_creation datetime, -- SMALLDATETIME de creation - date_valid datetime, -- SMALLDATETIME de validation - date_cloture datetime, -- SMALLDATETIME de cloture - date_commande SMALLDATETIME, -- SMALLDATETIME de la commande - fk_user_author integer, -- createur de la commande - fk_user_valid integer, -- valideur de la commande - fk_user_cloture integer, -- auteur cloture - source smallint NOT NULL, - fk_statut smallint default 0, - amount_ht real default 0, - remise_percent real default 0, - remise real default 0, - tva float default 0, - total_ht float default 0, - total_ttc float default 0, - note text, - note_public text, - model_pdf varchar(50), - - fk_methode_commande integer default 0, - -); - -CREATE UNIQUE INDEX ref ON llx_commande_fournisseur(ref) diff --git a/mssql/tables/llx_commande_fournisseur_dispatch.key.sql b/mssql/tables/llx_commande_fournisseur_dispatch.key.sql deleted file mode 100644 index 01bffb57d26..00000000000 --- a/mssql/tables/llx_commande_fournisseur_dispatch.key.sql +++ /dev/null @@ -1,22 +0,0 @@ --- =================================================================== --- Copyright (C) 2006 Rodolphe Quiedeville --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General [public] License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General [public] License for more details. --- --- You should have received a copy of the GNU General [public] License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- $Id$ --- $Source$ --- =================================================================== - -CREATE INDEX fk_commande ON llx_commande_fournisseur_dispatch(fk_commande); diff --git a/mssql/tables/llx_commande_fournisseur_dispatch.sql b/mssql/tables/llx_commande_fournisseur_dispatch.sql deleted file mode 100644 index b01022f5122..00000000000 --- a/mssql/tables/llx_commande_fournisseur_dispatch.sql +++ /dev/null @@ -1,31 +0,0 @@ --- =================================================================== --- Copyright (C) 2006 Rodolphe Quiedeville --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General [public] License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General [public] License for more details. --- --- You should have received a copy of the GNU General [public] License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- $Id$ --- $Source$ --- =================================================================== - -create table llx_commande_fournisseur_dispatch -( - rowid integer IDENTITY PRIMARY KEY, - fk_commande integer, - fk_product integer, - qty float, -- quantité - fk_entrepot integer, - fk_user integer, - datec datetime -); diff --git a/mssql/tables/llx_commande_fournisseur_log.sql b/mssql/tables/llx_commande_fournisseur_log.sql deleted file mode 100644 index f848028f9b3..00000000000 --- a/mssql/tables/llx_commande_fournisseur_log.sql +++ /dev/null @@ -1,31 +0,0 @@ --- =================================================================== --- Copyright (C) 2004 Rodolphe Quiedeville --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General [public] License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General [public] License for more details. --- --- You should have received a copy of the GNU General [public] License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- $Id$ --- $Source$ --- --- =================================================================== - -create table llx_commande_fournisseur_log -( - rowid integer IDENTITY PRIMARY KEY, - tms timestamp, - datelog datetime NOT NULL, - fk_commande integer NOT NULL, - fk_statut smallint NOT NULL, - fk_user integer NOT NULL -); diff --git a/mssql/tables/llx_commande_fournisseurdet.sql b/mssql/tables/llx_commande_fournisseurdet.sql deleted file mode 100644 index 5d57a6c070a..00000000000 --- a/mssql/tables/llx_commande_fournisseurdet.sql +++ /dev/null @@ -1,40 +0,0 @@ --- =================================================================== --- Copyright (C) 2004 Rodolphe Quiedeville --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General [public] License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General [public] License for more details. --- --- You should have received a copy of the GNU General [public] License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- $Id$ --- $Source$ --- =================================================================== - -create table llx_commande_fournisseurdet -( - rowid integer IDENTITY PRIMARY KEY, - fk_commande integer, - fk_product integer, - ref varchar(50), - label varchar(255), - description text, - tva_tx real DEFAULT 19.6, -- taux tva - qty real, -- quantité - remise_percent real DEFAULT 0, -- pourcentage de remise - remise real DEFAULT 0, -- montant de la remise - price real, -- prix final - subprice float, -- prix avant remise - total_ht float, -- Total HT de la ligne toute quantité et incluant remise ligne et globale - total_tva float, -- Total TVA de la ligne toute quantité et incluant remise ligne et globale - total_ttc float, -- Total TTC de la ligne toute quantité et incluant remise ligne et globale - info_bits integer DEFAULT 0 -- TVA NPR ou non -); diff --git a/mssql/tables/llx_commandedet.key.sql b/mssql/tables/llx_commandedet.key.sql deleted file mode 100644 index 1f7c8bd1940..00000000000 --- a/mssql/tables/llx_commandedet.key.sql +++ /dev/null @@ -1,28 +0,0 @@ --- =================================================================== --- Copyright (C) 2006 Laurent Destailleur --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General [public] License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General [public] License for more details. --- --- You should have received a copy of the GNU General [public] License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- $Id$ --- $Source$ --- =================================================================== - - --- Supprimme orhpelins pour permettre montée de la clé --- V4 DELETE llx_commandedet FROM llx_commandedet LEFT JOIN llx_commande ON llx_commandedet.fk_commande = llx_commande.rowid WHERE llx_commande.rowid IS NULL; - -CREATE INDEX idx_commandedet_fk_commande ON llx_commandedet(fk_commande); - --- V4 ALTER TABLE llx_commandedet ADD CONSTRAINT fk_commandedet_fk_commande FOREIGN KEY (fk_commande) REFERENCES llx_commande (rowid); diff --git a/mssql/tables/llx_commandedet.sql b/mssql/tables/llx_commandedet.sql deleted file mode 100644 index ad3df019b70..00000000000 --- a/mssql/tables/llx_commandedet.sql +++ /dev/null @@ -1,50 +0,0 @@ --- =================================================================== --- Copyright (C) 2003 Rodolphe Quiedeville --- Copyright (C) 2006 Laurent Destailleur --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General [public] License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General [public] License for more details. --- --- You should have received a copy of the GNU General [public] License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- $Id$ --- $Source$ --- =================================================================== - -create table llx_commandedet -( - rowid integer IDENTITY PRIMARY KEY, - fk_commande integer, - fk_product integer, - description text, - tva_tx real, -- taux tva - qty real, -- quantité - remise_percent real DEFAULT 0, -- pourcentage de remise - remise real DEFAULT 0, -- montant de la remise - fk_remise_except integer NULL, -- Lien vers table des remises fixes - price real, -- prix final - subprice float, -- prix avant remise - total_ht float, -- Total HT de la ligne toute quantité et incluant remise ligne et globale - total_tva float, -- Total TVA de la ligne toute quantité et incluant remise ligne et globale - total_ttc float, -- Total TTC de la ligne toute quantité et incluant remise ligne et globale - info_bits integer DEFAULT 0, -- TVA NPR ou non - marge_tx real, -- taux de marge (marge sur prix d'achat) - marque_tx real, -- taux de marque (marge sur prix de vente) - special_code tinyint DEFAULT 0, -- code pour les lignes speciales - rang integer DEFAULT 0 -); - --- --- Liste des codes pour special_code --- --- 1 : frais de port --- \ No newline at end of file diff --git a/mssql/tables/llx_compta.sql b/mssql/tables/llx_compta.sql deleted file mode 100644 index 7fa695c71b8..00000000000 --- a/mssql/tables/llx_compta.sql +++ /dev/null @@ -1,36 +0,0 @@ --- =================================================================== --- Copyright (C) 2000-2002 Rodolphe Quiedeville --- --- $Id$ --- $Source$ --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General [public] License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General [public] License for more details. --- --- You should have received a copy of the GNU General [public] License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- =================================================================== - -create table llx_compta -( - rowid integer IDENTITY PRIMARY KEY, - datec datetime, - datev SMALLDATETIME, -- SMALLDATETIME de valeur - amount real DEFAULT 0 NOT NULL , - label varchar(255), - fk_compta_account integer, - fk_user_author integer, - fk_user_valid integer, - valid tinyint DEFAULT 0, - note text - -); diff --git a/mssql/tables/llx_compta_account.sql b/mssql/tables/llx_compta_account.sql deleted file mode 100644 index d9cb51ac0a3..00000000000 --- a/mssql/tables/llx_compta_account.sql +++ /dev/null @@ -1,32 +0,0 @@ --- =================================================================== --- Copyright (C) 2000-2002 Rodolphe Quiedeville --- --- $Id$ --- $Source$ --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General [public] License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General [public] License for more details. --- --- You should have received a copy of the GNU General [public] License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- =================================================================== - -create table llx_compta_account -( - rowid integer IDENTITY PRIMARY KEY, - datec datetime, - number varchar(12), - label varchar(255), - fk_user_author integer, - note text - -); diff --git a/mssql/tables/llx_compta_compte_generaux.sql b/mssql/tables/llx_compta_compte_generaux.sql deleted file mode 100644 index 7757dfd271a..00000000000 --- a/mssql/tables/llx_compta_compte_generaux.sql +++ /dev/null @@ -1,33 +0,0 @@ --- =================================================================== --- Copyright (C) 2004 Rodolphe Quiedeville --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General [public] License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General [public] License for more details. --- --- You should have received a copy of the GNU General [public] License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- $Id$ --- $Source$ --- --- =================================================================== - -create table llx_compta_compte_generaux -( - rowid integer IDENTITY PRIMARY KEY, - date_creation datetime, - numero varchar(50), - intitule varchar(255), - fk_user_author integer, - note text, - - UNIQUE(numero) -); diff --git a/mssql/tables/llx_cond_reglement.sql b/mssql/tables/llx_cond_reglement.sql deleted file mode 100644 index 2d932693566..00000000000 --- a/mssql/tables/llx_cond_reglement.sql +++ /dev/null @@ -1,34 +0,0 @@ --- ============================================================================ --- Copyright (C) 2002-2003 Rodolphe Quiedeville --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General [public] License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General [public] License for more details. --- --- You should have received a copy of the GNU General [public] License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- $Id$ --- $Source$ --- --- ============================================================================ - -create table llx_cond_reglement -( - rowid integer PRIMARY KEY, - code varchar(16), - sortorder smallint, - active tinyint DEFAULT 1, - libelle varchar(255), - libelle_facture text, - fdm tinyint, -- reglement fin de mois - nbjour smallint, - decalage smallint -); diff --git a/mssql/tables/llx_const.sql b/mssql/tables/llx_const.sql deleted file mode 100644 index 605aa86057d..00000000000 --- a/mssql/tables/llx_const.sql +++ /dev/null @@ -1,37 +0,0 @@ --- ============================================================================ --- Copyright (C) 2001-2002 Rodolphe Quiedeville --- Copyright (C) 2003 Jean-Louis Bergamo --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General [public] License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General [public] License for more details. --- --- You should have received a copy of the GNU General [public] License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- $Id$ --- $Source$ --- --- =========================================================================== --- --- Definitions des constantes utilisés comme parametres de configuration --- - -create table llx_const -( - rowid integer IDENTITY PRIMARY KEY, - name varchar(255), - value text, -- max 65535 caracteres - type varchar(6) check (type in ('yesno','texte','chaine')), - visible tinyint DEFAULT 1 NOT NULL, - note text, -); - -CREATE UNIQUE INDEX name ON llx_const(name) diff --git a/mssql/tables/llx_contrat.key.sql b/mssql/tables/llx_contrat.key.sql deleted file mode 100644 index 1c2bdda763a..00000000000 --- a/mssql/tables/llx_contrat.key.sql +++ /dev/null @@ -1,34 +0,0 @@ --- ============================================================================ --- Copyright (C) 2002-2004 Rodolphe Quiedeville --- Copyright (C) 2004-2005 Laurent Destailleur --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General [public] License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General [public] License for more details. --- --- You should have received a copy of the GNU General [public] License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- $Id$ --- $Source$ --- --- ============================================================================ - - --- Supprimme orhpelins pour permettre montée de la clé --- V4 DELETE llx_contratdet FROM llx_contratdet, llx_contrat LEFT JOIN llx_societe ON llx_contrat.fk_soc = llx_societe.idp WHERE llx_contratdet.fk_contrat = llx_contrat.rowid AND llx_societe.idp IS NULL; --- V4 DELETE llx_contrat FROM llx_contrat LEFT JOIN llx_societe ON llx_contrat.fk_soc = llx_societe.idp WHERE llx_societe.idp IS NULL; --- V4 DELETE llx_contrat FROM llx_contrat LEFT JOIN llx_user ON llx_contrat.fk_user_author = llx_user.rowid WHERE llx_user.rowid IS NULL; - -CREATE INDEX idx_contrat_fk_soc ON llx_contrat(fk_soc); -CREATE INDEX idx_contrat_fk_user_author ON llx_contrat(fk_user_author); - -ALTER TABLE llx_contrat ADD CONSTRAINT fk_contrat_societe FOREIGN KEY (fk_soc) REFERENCES llx_societe (rowid); -ALTER TABLE llx_contrat ADD CONSTRAINT fk_contrat_user_author FOREIGN KEY (fk_user_author) REFERENCES llx_user (rowid); \ No newline at end of file diff --git a/mssql/tables/llx_contrat.sql b/mssql/tables/llx_contrat.sql deleted file mode 100644 index 09c8419a00a..00000000000 --- a/mssql/tables/llx_contrat.sql +++ /dev/null @@ -1,45 +0,0 @@ --- ============================================================================ --- Copyright (C) 2002-2004 Rodolphe Quiedeville --- Copyright (C) 2004-2005 Laurent Destailleur --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General [public] License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General [public] License for more details. --- --- You should have received a copy of the GNU General [public] License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- $Id$ --- $Source$ --- --- ============================================================================ - -create table llx_contrat -( - rowid integer IDENTITY PRIMARY KEY, - ref varchar(30), -- reference de contrat - tms timestamp, - datec datetime, -- SMALLDATETIME de creation de l'enregistrement - date_contrat datetime, - statut smallint DEFAULT 0, - mise_en_service datetime, - fin_validite datetime, - date_cloture datetime, - fk_soc integer NOT NULL, - fk_projet integer, - fk_commercial_signature integer NOT NULL, -- obsolete - fk_commercial_suivi integer NOT NULL, -- obsolete - fk_user_author integer NOT NULL default 0, - fk_user_mise_en_service integer, - fk_user_cloture integer, - note text, - note_public text -); - diff --git a/mssql/tables/llx_contratdet.key.sql b/mssql/tables/llx_contratdet.key.sql deleted file mode 100644 index abdc2758c06..00000000000 --- a/mssql/tables/llx_contratdet.key.sql +++ /dev/null @@ -1,32 +0,0 @@ --- ============================================================================ --- Copyright (C) 2004 Rodolphe Quiedeville --- Copyright (C) 2005 Laurent Destailleur --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General [public] License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General [public] License for more details. --- --- You should have received a copy of the GNU General [public] License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- $Id$ --- $Source$ --- --- ============================================================================ - - -CREATE INDEX idx_contratdet_fk_contrat ON llx_contratdet(fk_contrat); -CREATE INDEX idx_contratdet_fk_product ON llx_contratdet(fk_product); -CREATE INDEX idx_contratdet_date_ouverture_prevue ON llx_contratdet(date_ouverture_prevue); -CREATE INDEX idx_contratdet_date_ouverture ON llx_contratdet(date_ouverture); -CREATE INDEX idx_contratdet_date_fin_validite ON llx_contratdet(date_fin_validite); - -ALTER TABLE llx_contratdet ADD CONSTRAINT fk_contratdet_fk_contrat FOREIGN KEY (fk_contrat) REFERENCES llx_contrat (rowid); -ALTER TABLE llx_contratdet ADD CONSTRAINT fk_contratdet_fk_product FOREIGN KEY (fk_product) REFERENCES llx_product (rowid); diff --git a/mssql/tables/llx_contratdet.sql b/mssql/tables/llx_contratdet.sql deleted file mode 100644 index f9d6bb2b535..00000000000 --- a/mssql/tables/llx_contratdet.sql +++ /dev/null @@ -1,59 +0,0 @@ --- ============================================================================ --- Copyright (C) 2004 Rodolphe Quiedeville --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General [public] License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General [public] License for more details. --- --- You should have received a copy of the GNU General [public] License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- $Id$ --- $Source$ --- --- ============================================================================ - -create table llx_contratdet -( - rowid integer IDENTITY PRIMARY KEY, - tms timestamp, - - fk_contrat integer NOT NULL, - fk_product integer NULL, -- doit pouvoir etre nul pour ligne detail sans produits - - statut smallint DEFAULT 0, - - label text, -- libellé du produit - description text, - fk_remise_except integer NULL, -- Lien vers table des remises fixes - - date_commande datetime, - date_ouverture_prevue datetime, - date_ouverture datetime, -- SMALLDATETIME d'ouverture du service chez le client - date_fin_validite datetime, - date_cloture datetime, - - tva_tx float DEFAULT 19.6, -- taux tva - qty real, -- quantité - remise_percent real DEFAULT 0, -- pourcentage de remise - subprice float, -- prix avant remise - price_ht real, -- prix final - remise real DEFAULT 0, -- montant de la remise - total_ht float, -- Total HT de la ligne toute quantité et incluant remise ligne et globale - total_tva float, -- Total TVA de la ligne toute quantité et incluant remise ligne et globale - total_ttc float, -- Total TTC de la ligne toute quantité et incluant remise ligne et globale - info_bits integer DEFAULT 0, -- TVA NPR ou non - - fk_user_author integer NOT NULL default 0, - fk_user_ouverture integer, - fk_user_cloture integer, - commentaire text - -); diff --git a/mssql/tables/llx_contratdet_log.key.sql b/mssql/tables/llx_contratdet_log.key.sql deleted file mode 100644 index a20a4c0ce21..00000000000 --- a/mssql/tables/llx_contratdet_log.key.sql +++ /dev/null @@ -1,26 +0,0 @@ --- ============================================================================ --- Copyright (C) 2006 Laurent Destailleur --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General [public] License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General [public] License for more details. --- --- You should have received a copy of the GNU General [public] License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- $Id$ --- $Source$ --- --- ============================================================================ - -CREATE INDEX idx_contratdet_log_fk_contratdet ON llx_contratdet_log(fk_contratdet); -CREATE INDEX idx_contratdet_log_date ON llx_contratdet_log(SMALLDATETIME); - -ALTER TABLE llx_contratdet_log ADD CONSTRAINT fk_contratdet_log_fk_contratdet FOREIGN KEY (fk_contratdet) REFERENCES llx_contratdet (rowid); diff --git a/mssql/tables/llx_contratdet_log.sql b/mssql/tables/llx_contratdet_log.sql deleted file mode 100644 index 8bc9f8bcf17..00000000000 --- a/mssql/tables/llx_contratdet_log.sql +++ /dev/null @@ -1,33 +0,0 @@ --- ============================================================================ --- Copyright (C) 2004 Rodolphe Quiedeville --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General [public] License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General [public] License for more details. --- --- You should have received a copy of the GNU General [public] License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- $Id$ --- $Source$ --- --- ============================================================================ - -create table llx_contratdet_log -( - rowid integer IDENTITY PRIMARY KEY, - tms timestamp, - fk_contratdet integer NOT NULL, - SMALLDATETIME datetime NOT NULL, - statut smallint NOT NULL, - fk_user_author integer NOT NULL, - commentaire text - -); diff --git a/mssql/tables/llx_cotisation.key.sql b/mssql/tables/llx_cotisation.key.sql deleted file mode 100644 index 7a89cab26c5..00000000000 --- a/mssql/tables/llx_cotisation.key.sql +++ /dev/null @@ -1,23 +0,0 @@ --- ============================================================================ --- Copyright (C) 2007 Laurent Destailleur --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- $Id$ --- $Source$ --- --- ============================================================================ - -CREATE UNIQUE INDEX uk_cotisation ON llx_cotisation(fk_adherent,dateadh); diff --git a/mssql/tables/llx_cotisation.sql b/mssql/tables/llx_cotisation.sql deleted file mode 100644 index 93e6e73e98a..00000000000 --- a/mssql/tables/llx_cotisation.sql +++ /dev/null @@ -1,32 +0,0 @@ --- =================================================================== --- Copyright (C) 2003 Rodolphe Quiedeville --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General [public] License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General [public] License for more details. --- --- You should have received a copy of the GNU General [public] License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- $Id$ --- $Source$ --- =================================================================== - -create table llx_cotisation -( - rowid integer IDENTITY PRIMARY KEY, - tms timestamp, - datec datetime, - fk_adherent integer, - dateadh datetime, - cotisation real, - fk_bank integer DEFAULT NULL, - note text -); diff --git a/mssql/tables/llx_deplacement.sql b/mssql/tables/llx_deplacement.sql deleted file mode 100644 index 0ba69e73b90..00000000000 --- a/mssql/tables/llx_deplacement.sql +++ /dev/null @@ -1,35 +0,0 @@ --- ============================================================================ --- Copyright (C) 2003 Rodolphe Quiedeville --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General [public] License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General [public] License for more details. --- --- You should have received a copy of the GNU General [public] License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- $Id$ --- $Source$ --- --- ============================================================================ - -create table llx_deplacement -( - rowid integer IDENTITY PRIMARY KEY, - datec datetime NOT NULL, - tms timestamp, - dated datetime, - fk_user integer NOT NULL, - fk_user_author integer, - type smallint NOT NULL, - km smallint, - fk_soc integer, - note text -); diff --git a/mssql/tables/llx_document.sql b/mssql/tables/llx_document.sql deleted file mode 100644 index f7cad81d43f..00000000000 --- a/mssql/tables/llx_document.sql +++ /dev/null @@ -1,33 +0,0 @@ --- =================================================================== --- Copyright (C) 2007 Rodolphe Quiedeville --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General [public] License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General [public] License for more details. --- --- You should have received a copy of the GNU General [public] License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- $Id$ --- $Source$ --- =================================================================== - -create table llx_document -( - rowid integer IDENTITY PRIMARY KEY, - name varchar(255) NOT NULL, - file_name varchar(255) NOT NULL, - file_extension varchar(5) NOT NULL, - date_generation datetime NULL, - fk_owner integer NULL, - fk_group integer NULL, - permissions char(9) DEFAULT 'rw-rw-rw' - -); diff --git a/mssql/tables/llx_document_generator.sql b/mssql/tables/llx_document_generator.sql deleted file mode 100644 index e8c08eb932a..00000000000 --- a/mssql/tables/llx_document_generator.sql +++ /dev/null @@ -1,29 +0,0 @@ --- =================================================================== --- Copyright (C) 2007 Rodolphe Quiedeville --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General [public] License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General [public] License for more details. --- --- You should have received a copy of the GNU General [public] License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- $Id$ --- $Source$ --- =================================================================== - -create table llx_document_generator -( - rowid integer NOT NULL PRIMARY KEY, - name varchar(255) NOT NULL, - classfile varchar(255) NOT NULL, - class varchar(255) NOT NULL - -); diff --git a/mssql/tables/llx_document_model.key.sql b/mssql/tables/llx_document_model.key.sql deleted file mode 100644 index 9ee1c236c36..00000000000 --- a/mssql/tables/llx_document_model.key.sql +++ /dev/null @@ -1,24 +0,0 @@ --- =================================================================== --- Copyright (C) 2007 Laurent Destailleur --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General [public] License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General [public] License for more details. --- --- You should have received a copy of the GNU General [public] License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- $Id$ --- $Source$ --- --- =================================================================== - - -CREATE UNIQUE INDEX uk_document_model ON llx_document_model(nom,type); diff --git a/mssql/tables/llx_document_model.sql b/mssql/tables/llx_document_model.sql deleted file mode 100644 index 7bd9972695f..00000000000 --- a/mssql/tables/llx_document_model.sql +++ /dev/null @@ -1,33 +0,0 @@ --- =================================================================== --- Copyright (C) 2001-2003 Rodolphe Quiedeville --- Copyright (C) 2006 Laurent Destailleur --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General [public] License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General [public] License for more details. --- --- You should have received a copy of the GNU General [public] License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- $Id$ --- $Source$ --- --- Liste des modeles de document disponibles --- --- =================================================================== - -create table llx_document_model -( - rowid integer IDENTITY PRIMARY KEY, - nom varchar(50), - type varchar(20) NOT NULL, - libelle varchar(255), - description text -); \ No newline at end of file diff --git a/mssql/tables/llx_dolibarr_modules.sql b/mssql/tables/llx_dolibarr_modules.sql deleted file mode 100644 index 2dbc9741011..00000000000 --- a/mssql/tables/llx_dolibarr_modules.sql +++ /dev/null @@ -1,32 +0,0 @@ --- ======================================================================== --- Copyright (C) 2005 Rodolphe Quiedeville --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General [public] License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General [public] License for more details. --- --- You should have received a copy of the GNU General [public] License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- $Id$ --- $Source$ --- --- ======================================================================== - -create table llx_dolibarr_modules -( - numero integer PRIMARY KEY, - active tinyint DEFAULT 0 NOT NULL, - active_date datetime NOT NULL, - active_version varchar(25) NOT NULL - -); - - diff --git a/mssql/tables/llx_domain.sql b/mssql/tables/llx_domain.sql deleted file mode 100644 index 14d4ba433f2..00000000000 --- a/mssql/tables/llx_domain.sql +++ /dev/null @@ -1,30 +0,0 @@ --- =================================================================== --- Copyright (C) 2001-2002 Rodolphe Quiedeville --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General [public] License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General [public] License for more details. --- --- You should have received a copy of the GNU General [public] License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- $Id$ --- $Source$ --- --- =================================================================== - -create table llx_domain -( - rowid integer IDENTITY PRIMARY KEY, - datec datetime, - label varchar(255), - note text -); - diff --git a/mssql/tables/llx_don.sql b/mssql/tables/llx_don.sql deleted file mode 100644 index 77033f5fb1c..00000000000 --- a/mssql/tables/llx_don.sql +++ /dev/null @@ -1,45 +0,0 @@ --- =================================================================== --- Copyright (C) 2001-2002 Rodolphe Quiedeville --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General [public] License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General [public] License for more details. --- --- You should have received a copy of the GNU General [public] License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- $Id$ --- $Source$ --- --- =================================================================== - -create table llx_don -( - rowid integer IDENTITY PRIMARY KEY, - tms timestamp, - fk_statut smallint NOT NULL DEFAULT 0,-- etat du don promesse/valid - datec datetime, -- SMALLDATETIME de création de l'enregistrement - datedon datetime, -- SMALLDATETIME du don/promesse - amount real DEFAULT 0, - fk_paiement integer, - prenom varchar(50), - nom varchar(50), - societe varchar(50), - adresse text, - cp varchar(30), - ville varchar(50), - pays varchar(50), - email varchar(255), - [public] smallint DEFAULT 1 NOT NULL, -- le don est-il [public] (0,1) - fk_don_projet integer NOT NULL, -- projet auquel est fait le don - fk_user_author integer NOT NULL, - fk_user_valid integer NOT NULL, - note text -); diff --git a/mssql/tables/llx_don_projet.sql b/mssql/tables/llx_don_projet.sql deleted file mode 100644 index 7cb61cd2109..00000000000 --- a/mssql/tables/llx_don_projet.sql +++ /dev/null @@ -1,31 +0,0 @@ --- =================================================================== --- Copyright (C) 2001-2002 Rodolphe Quiedeville --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General [public] License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General [public] License for more details. --- --- You should have received a copy of the GNU General [public] License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- $Id$ --- $Source$ --- --- =================================================================== - -create table llx_don_projet -( - rowid integer IDENTITY PRIMARY KEY, - tms timestamp, - datec datetime, - libelle varchar(255), - fk_user_author integer NOT NULL, - note text -); diff --git a/mssql/tables/llx_droitpret_rapport.sql b/mssql/tables/llx_droitpret_rapport.sql deleted file mode 100644 index 81f01022f50..00000000000 --- a/mssql/tables/llx_droitpret_rapport.sql +++ /dev/null @@ -1,32 +0,0 @@ --- ======================================================================== --- Copyright (C) 2007 Patrick Raguin --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- $Id$ --- $Source$ --- --- ======================================================================== - - -create table llx_droitpret_rapport ( - rowid integer NOT NULL identity PRIMARY KEY, - date_envoie datetime NOT NULL, - format varchar(10) NOT NULL, - date_debut datetime NOT NULL, - date_fin datetime NOT NULL, - fichier varchar(255) NOT NULL, - nbfact integer NOT NULL, -); diff --git a/mssql/tables/llx_element_contact.key.sql b/mssql/tables/llx_element_contact.key.sql deleted file mode 100644 index 213bd147b95..00000000000 --- a/mssql/tables/llx_element_contact.key.sql +++ /dev/null @@ -1,27 +0,0 @@ --- ============================================================================ --- Copyright (C) 2005 patrick Rouillon --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General [public] License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General [public] License for more details. --- --- You should have received a copy of the GNU General [public] License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- $Id$ --- $Source$ --- --- ============================================================================ - -CREATE UNIQUE INDEX idx_element_contact_idx1 ON llx_element_contact(element_id, fk_c_type_contact, fk_socpeople); - -ALTER TABLE llx_element_contact - ADD CONSTRAINT fk_element_contact_fk_c_type_contact - FOREIGN KEY (fk_c_type_contact) REFERENCES llx_c_type_contact(rowid); diff --git a/mssql/tables/llx_element_contact.sql b/mssql/tables/llx_element_contact.sql deleted file mode 100644 index 79eaf22190a..00000000000 --- a/mssql/tables/llx_element_contact.sql +++ /dev/null @@ -1,36 +0,0 @@ --- ============================================================================ --- Copyright (C) 2005 patrick Rouillon --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General [public] License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General [public] License for more details. --- --- You should have received a copy of the GNU General [public] License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- $Id$ --- $Source$ --- --- Association de personnes/societes avec un element de la base (contrat, projet, propal). --- Permet de definir plusieur type d'intervenant sur un element. --- i.e. commercial, adresse de facturation, prestataire... --- ============================================================================ - -create table llx_element_contact -( - rowid integer IDENTITY PRIMARY KEY, - datecreate datetime NULL, -- SMALLDATETIME de creation de l'enregistrement - statut smallint DEFAULT 5, -- 5 inactif, 4 actif - - element_id integer NOT NULL, -- la reference de l'element. - fk_c_type_contact integer NOT NULL, -- nature du contact. - fk_socpeople integer NOT NULL -); - diff --git a/mssql/tables/llx_energie_compteur.sql b/mssql/tables/llx_energie_compteur.sql deleted file mode 100644 index c7ee32b5e48..00000000000 --- a/mssql/tables/llx_energie_compteur.sql +++ /dev/null @@ -1,32 +0,0 @@ --- =================================================================== --- Copyright (C) 2005 Rodolphe Quiedeville --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General [public] License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General [public] License for more details. --- --- You should have received a copy of the GNU General [public] License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- $Id$ --- $Source$ --- --- =================================================================== - -create table llx_energie_compteur -( - rowid integer IDENTITY PRIMARY KEY, - libelle varchar(50), - fk_energie integer NOT NULL, - datec datetime, - fk_user_author integer NOT NULL, - - note text -); diff --git a/mssql/tables/llx_energie_compteur_groupe.sql b/mssql/tables/llx_energie_compteur_groupe.sql deleted file mode 100644 index 29865db2b57..00000000000 --- a/mssql/tables/llx_energie_compteur_groupe.sql +++ /dev/null @@ -1,27 +0,0 @@ --- =================================================================== --- Copyright (C) 2005 Rodolphe Quiedeville --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General [public] License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General [public] License for more details. --- --- You should have received a copy of the GNU General [public] License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- $Id$ --- $Source$ --- --- =================================================================== - -create table llx_energie_compteur_groupe -( - fk_energie_compteur integer NOT NULL, - fk_energie_groupe integer NOT NULL -); diff --git a/mssql/tables/llx_energie_compteur_releve.sql b/mssql/tables/llx_energie_compteur_releve.sql deleted file mode 100644 index e82ba02d023..00000000000 --- a/mssql/tables/llx_energie_compteur_releve.sql +++ /dev/null @@ -1,33 +0,0 @@ --- =================================================================== --- Copyright (C) 2005 Rodolphe Quiedeville --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General [public] License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General [public] License for more details. --- --- You should have received a copy of the GNU General [public] License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- $Id$ --- $Source$ --- --- =================================================================== - -create table llx_energie_compteur_releve -( - rowid integer IDENTITY PRIMARY KEY, - fk_compteur integer NOT NULL, - date_releve datetime, - valeur real, - datec datetime, - fk_user_author integer NOT NULL, - - note text -); diff --git a/mssql/tables/llx_energie_groupe.sql b/mssql/tables/llx_energie_groupe.sql deleted file mode 100644 index b8cbfd8bd1e..00000000000 --- a/mssql/tables/llx_energie_groupe.sql +++ /dev/null @@ -1,31 +0,0 @@ --- =================================================================== --- Copyright (C) 2005 Rodolphe Quiedeville --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General [public] License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General [public] License for more details. --- --- You should have received a copy of the GNU General [public] License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- $Id$ --- $Source$ --- --- =================================================================== - -create table llx_energie_groupe -( - rowid integer IDENTITY PRIMARY KEY, - libelle varchar(100), - datec datetime, - fk_user_author integer NOT NULL, - - note text -); diff --git a/mssql/tables/llx_entrepot.sql b/mssql/tables/llx_entrepot.sql deleted file mode 100644 index 58a842af233..00000000000 --- a/mssql/tables/llx_entrepot.sql +++ /dev/null @@ -1,40 +0,0 @@ --- ============================================================================ --- Copyright (C) 2003-2006 Rodolphe Quiedeville --- Copyright (C) 2004 Laurent Destailleur --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General [public] License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General [public] License for more details. --- --- You should have received a copy of the GNU General [public] License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- $Id$ --- $Source$ --- --- ============================================================================ - -create table llx_entrepot -( - rowid integer IDENTITY PRIMARY KEY, - datec datetime, - tms timestamp, - label varchar(255) UNIQUE NOT NULL, - description text, - lieu varchar(64), -- résumé lieu situation - address varchar(255), - cp varchar(10), - ville varchar(50), - fk_pays integer DEFAULT 0, - statut tinyint DEFAULT 1, -- 1 ouvert, 0 fermé - valo_pmp float(12), -- valoristaion du stock en PMP - fk_user_author integer -); - diff --git a/mssql/tables/llx_entrepot_valorisation.sql b/mssql/tables/llx_entrepot_valorisation.sql deleted file mode 100644 index c61ff03a738..00000000000 --- a/mssql/tables/llx_entrepot_valorisation.sql +++ /dev/null @@ -1,32 +0,0 @@ --- ============================================================================ --- Copyright (C) 2006 Rodolphe Quiedeville --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General [public] License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General [public] License for more details. --- --- You should have received a copy of the GNU General [public] License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- $Id$ --- $Source$ --- --- ============================================================================ - -create table llx_entrepot_valorisation -( - rowid integer IDENTITY PRIMARY KEY, - tms timestamp, -- SMALLDATETIME technique mise à jour automatiquement - date_calcul SMALLDATETIME, -- SMALLDATETIME auquel a ete calcule la valeur - fk_entrepot integer NOT NULL , - valo_pmp float(12) -- valoristaion du stock en PMP - --key(fk_entrepot) -); - diff --git a/mssql/tables/llx_expedition.sql b/mssql/tables/llx_expedition.sql deleted file mode 100644 index 51c6dd2f795..00000000000 --- a/mssql/tables/llx_expedition.sql +++ /dev/null @@ -1,44 +0,0 @@ --- =================================================================== --- Copyright (C) 2003 Rodolphe Quiedeville --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General [public] License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General [public] License for more details. --- --- You should have received a copy of the GNU General [public] License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- $Id$ --- $Source$ --- --- =================================================================== - -create table llx_expedition -( - rowid integer IDENTITY PRIMARY KEY, - tms timestamp, - ref varchar(30) NOT NULL, - fk_commande integer, - date_creation datetime, -- SMALLDATETIME de creation - date_valid datetime, -- SMALLDATETIME de validation - date_expedition SMALLDATETIME, -- SMALLDATETIME de l'expedition - fk_user_author integer, -- createur - fk_user_valid integer, -- valideur - fk_entrepot integer, - fk_expedition_methode integer, - fk_statut smallint DEFAULT 0, - note text, - model_pdf varchar(50) - - --key(fk_expedition_methode), - --key(fk_commande) -); - -CREATE UNIQUE INDEX ref ON llx_expedition(ref) diff --git a/mssql/tables/llx_expedition_methode.sql b/mssql/tables/llx_expedition_methode.sql deleted file mode 100644 index a7dbced8838..00000000000 --- a/mssql/tables/llx_expedition_methode.sql +++ /dev/null @@ -1,31 +0,0 @@ --- =================================================================== --- Copyright (C) 2003 Rodolphe Quiedeville --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General [public] License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General [public] License for more details. --- --- You should have received a copy of the GNU General [public] License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- $Id$ --- $Source$ --- --- =================================================================== - -create table llx_expedition_methode -( - rowid integer PRIMARY KEY, - tms timestamp, - code varchar(30) NOT NULL, - libelle varchar(50) NOT NULL, - description text, - statut tinyint DEFAULT 0 -); diff --git a/mssql/tables/llx_expeditiondet.sql b/mssql/tables/llx_expeditiondet.sql deleted file mode 100644 index e4b8432bfd2..00000000000 --- a/mssql/tables/llx_expeditiondet.sql +++ /dev/null @@ -1,31 +0,0 @@ --- =================================================================== --- Copyright (C) 2003 Rodolphe Quiedeville --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General [public] License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General [public] License for more details. --- --- You should have received a copy of the GNU General [public] License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- $Id$ --- $Source$ --- =================================================================== - -create table llx_expeditiondet -( - rowid integer IDENTITY PRIMARY KEY, - fk_expedition integer NOT NULL, - fk_commande_ligne integer NOT NULL, - qty real -- quantité - --- key(fk_expedition), --- key(fk_commande_ligne) -); diff --git a/mssql/tables/llx_export_compta.sql b/mssql/tables/llx_export_compta.sql deleted file mode 100644 index 3adc3479329..00000000000 --- a/mssql/tables/llx_export_compta.sql +++ /dev/null @@ -1,32 +0,0 @@ --- =================================================================== --- Copyright (C) 2004 Rodolphe Quiedeville --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General [public] License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General [public] License for more details. --- --- You should have received a copy of the GNU General [public] License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- $Id$ --- $Source$ --- =================================================================== --- --- $Revision$ - -create table llx_export_compta -( - rowid integer IDENTITY PRIMARY KEY, - ref varchar(12) NOT NULL, - date_export datetime NOT NULL, -- SMALLDATETIME de creation - fk_user integer NOT NULL, - note text - -); diff --git a/mssql/tables/llx_export_model.key.sql b/mssql/tables/llx_export_model.key.sql deleted file mode 100644 index 4bbac85d0c4..00000000000 --- a/mssql/tables/llx_export_model.key.sql +++ /dev/null @@ -1,25 +0,0 @@ --- =================================================================== --- Copyright (C) 2007 Laurent Destailleur --- Copyright (C) 2007 Regis Houssin --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General [public] License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General [public] License for more details. --- --- You should have received a copy of the GNU General [public] License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- $Id$ --- $Source$ --- --- =================================================================== - - -CREATE UNIQUE INDEX uk_export_model ON llx_export_model(label); diff --git a/mssql/tables/llx_export_model.sql b/mssql/tables/llx_export_model.sql deleted file mode 100644 index c169569b784..00000000000 --- a/mssql/tables/llx_export_model.sql +++ /dev/null @@ -1,33 +0,0 @@ --- =================================================================== --- Copyright (C) 2001-2003 Rodolphe Quiedeville --- Copyright (C) 2007 Regis Houssin --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General [public] License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General [public] License for more details. --- --- You should have received a copy of the GNU General [public] License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- $Id$ --- $Source$ --- --- Liste des modeles de document disponibles --- --- =================================================================== - -create table llx_export_model -( - rowid integer IDENTITY PRIMARY KEY, - fk_user integer DEFAULT 0 NOT NULL, - label varchar(50) NOT NULL, - type varchar(20) NOT NULL, - field text NOT NULL -); \ No newline at end of file diff --git a/mssql/tables/llx_fa_pr.sql b/mssql/tables/llx_fa_pr.sql deleted file mode 100644 index 9b74831cd4f..00000000000 --- a/mssql/tables/llx_fa_pr.sql +++ /dev/null @@ -1,27 +0,0 @@ --- =================================================================== --- Copyright (C) 2001-2002 Rodolphe Quiedeville --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General [public] License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General [public] License for more details. --- --- You should have received a copy of the GNU General [public] License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- $Id$ --- $Source$ --- =================================================================== - -create table llx_fa_pr -( - rowid integer IDENTITY PRIMARY KEY, - fk_facture integer, - fk_propal integer -); diff --git a/mssql/tables/llx_facture.key.sql b/mssql/tables/llx_facture.key.sql deleted file mode 100644 index bc69f3e4f53..00000000000 --- a/mssql/tables/llx_facture.key.sql +++ /dev/null @@ -1,37 +0,0 @@ --- ============================================================================ --- Copyright (C) 2002-2004 Rodolphe Quiedeville --- Copyright (C) 2004 Laurent Destailleur --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General [public] License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General [public] License for more details. --- --- You should have received a copy of the GNU General [public] License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- $Id$ --- $Source$ --- --- ============================================================================ - - -CREATE INDEX idx_facture_fk_soc ON llx_facture(fk_soc); -CREATE INDEX idx_facture_fk_user_author ON llx_facture(fk_user_author); -CREATE INDEX idx_facture_fk_user_valid ON llx_facture(fk_user_valid); -CREATE INDEX idx_facture_fk_facture_source ON llx_facture(fk_facture_source); -CREATE INDEX idx_facture_fk_projet ON llx_facture(fk_projet); - -ALTER TABLE llx_facture ADD CONSTRAINT fk_facture_fk_soc FOREIGN KEY (fk_soc) REFERENCES llx_societe (rowid); -ALTER TABLE llx_facture ADD CONSTRAINT fk_facture_fk_user_author FOREIGN KEY (fk_user_author) REFERENCES llx_user (rowid); -ALTER TABLE llx_facture ADD CONSTRAINT fk_facture_fk_user_valid FOREIGN KEY (fk_user_valid) REFERENCES llx_user (rowid); -ALTER TABLE llx_facture ADD CONSTRAINT fk_facture_fk_facture_source FOREIGN KEY (fk_facture_source) REFERENCES llx_facture (rowid); -ALTER TABLE llx_facture ADD CONSTRAINT fk_facture_fk_projet FOREIGN KEY (fk_projet) REFERENCES llx_projet (rowid); - -CREATE UNIQUE INDEX idx_facture_uk_facnumber ON llx_facture(facnumber); diff --git a/mssql/tables/llx_facture.sql b/mssql/tables/llx_facture.sql deleted file mode 100644 index 6178242b5b6..00000000000 --- a/mssql/tables/llx_facture.sql +++ /dev/null @@ -1,62 +0,0 @@ --- =========================================================================== --- Copyright (C) 2001-2005 Rodolphe Quiedeville --- Copyright (C) 2006 Laurent Destailleur --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General [public] License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General [public] License for more details. --- --- You should have received a copy of the GNU General [public] License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- $Id$ --- $Source$ --- =========================================================================== - -create table llx_facture -( - rowid integer IDENTITY PRIMARY KEY, - facnumber varchar(30) NOT NULL, - type smallint DEFAULT 0 NOT NULL, - ref_client varchar(30), - increment varchar(10), - fk_soc integer NOT NULL, - datec datetime, -- SMALLDATETIME de creation de la facture - datef SMALLDATETIME, -- SMALLDATETIME de la facture - date_valid SMALLDATETIME, -- SMALLDATETIME de validation - paye smallint DEFAULT 0 NOT NULL, - amount real DEFAULT 0 NOT NULL, - remise_percent real DEFAULT 0, -- remise relative - remise_absolue real DEFAULT 0, -- remise absolue - remise real DEFAULT 0, -- remise totale calculee - - close_code varchar(16), -- Code motif cloture sans paiement complet - close_note varchar(128), -- Commentaire cloture sans paiement complet - - tva real DEFAULT 0, -- montant tva apres remise totale - total real DEFAULT 0, -- montant total ht apres remise totale - total_ttc real DEFAULT 0, -- montant total ttc apres remise totale - - fk_statut smallint DEFAULT 0 NOT NULL, - - fk_user_author integer, -- createur de la facture - fk_user_valid integer, -- valideur de la facture - - fk_facture_source integer, -- facture origine si facture avoir - fk_projet integer, -- projet auquel est associée la facture - - fk_cond_reglement integer DEFAULT 1 NOT NULL, -- condition de reglement (30 jours, fin de mois ...) - fk_mode_reglement integer, -- mode de reglement (Virement, Prélèvement) - date_lim_reglement SMALLDATETIME, -- SMALLDATETIME limite de reglement - - note text, - note_public text, - model_pdf varchar(50) -); diff --git a/mssql/tables/llx_facture_fourn.key.sql b/mssql/tables/llx_facture_fourn.key.sql deleted file mode 100644 index 0d5e3709483..00000000000 --- a/mssql/tables/llx_facture_fourn.key.sql +++ /dev/null @@ -1,36 +0,0 @@ --- ============================================================================ --- Copyright (C) 2005 Laurent Destailleur --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General [public] License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General [public] License for more details. --- --- You should have received a copy of the GNU General [public] License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- $Id$ --- $Source$ --- --- ============================================================================ - - -CREATE INDEX uk_facture_fourn_ref ON llx_facture_fourn(facnumber, fk_soc); - -CREATE INDEX idx_facture_fourn_date_lim_reglement ON llx_facture_fourn(date_lim_reglement); - -CREATE INDEX idx_facture_fourn_fk_soc ON llx_facture_fourn(fk_soc); -CREATE INDEX idx_facture_fourn_fk_user_author ON llx_facture_fourn(fk_user_author); -CREATE INDEX idx_facture_fourn_fk_user_valid ON llx_facture_fourn(fk_user_valid); -CREATE INDEX idx_facture_fourn_fk_projet ON llx_facture_fourn(fk_projet); - -ALTER TABLE llx_facture_fourn ADD CONSTRAINT fk_facture_fourn_fk_soc FOREIGN KEY (fk_soc) REFERENCES llx_societe (rowid); -ALTER TABLE llx_facture_fourn ADD CONSTRAINT fk_facture_fourn_fk_user_author FOREIGN KEY (fk_user_author) REFERENCES llx_user (rowid); -ALTER TABLE llx_facture_fourn ADD CONSTRAINT fk_facture_fourn_fk_user_valid FOREIGN KEY (fk_user_valid) REFERENCES llx_user (rowid); -ALTER TABLE llx_facture_fourn ADD CONSTRAINT fk_facture_fourn_fk_projet FOREIGN KEY (fk_projet) REFERENCES llx_projet (rowid); diff --git a/mssql/tables/llx_facture_fourn.sql b/mssql/tables/llx_facture_fourn.sql deleted file mode 100644 index adae235f2b2..00000000000 --- a/mssql/tables/llx_facture_fourn.sql +++ /dev/null @@ -1,53 +0,0 @@ --- =========================================================================== --- Copyright (C) 2001-2003 Rodolphe Quiedeville --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General [public] License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General [public] License for more details. --- --- You should have received a copy of the GNU General [public] License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- $Id$ --- $Source$ --- --- =========================================================================== - -create table llx_facture_fourn -( - rowid integer IDENTITY PRIMARY KEY, - facnumber varchar(50) NOT NULL, - type smallint DEFAULT 0 NOT NULL, - fk_soc integer NOT NULL, - datec datetime, -- SMALLDATETIME de creation de la facture - datef SMALLDATETIME, -- SMALLDATETIME de la facture - libelle varchar(255), - paye smallint DEFAULT 0 NOT NULL, - amount float DEFAULT 0 NOT NULL, - remise float DEFAULT 0, - tva float DEFAULT 0, - total float DEFAULT 0, - total_ht float DEFAULT 0, - total_tva float DEFAULT 0, - total_ttc float DEFAULT 0, - - fk_statut smallint DEFAULT 0 NOT NULL, - - fk_user_author integer, -- createur de la facture - fk_user_valid integer, -- valideur de la facture - - fk_projet integer, -- projet auquel est associée la facture - - fk_cond_reglement integer DEFAULT 1 NOT NULL, -- condition de reglement (30 jours, fin de mois ...) - date_lim_reglement SMALLDATETIME, -- SMALLDATETIME limite de reglement - - note text, - note_public text -); diff --git a/mssql/tables/llx_facture_fourn_det.key.sql b/mssql/tables/llx_facture_fourn_det.key.sql deleted file mode 100644 index 1bbcc4210d0..00000000000 --- a/mssql/tables/llx_facture_fourn_det.key.sql +++ /dev/null @@ -1,27 +0,0 @@ --- =================================================================== --- Copyright (C) 2005 Laurent Destailleur --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General [public] License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General [public] License for more details. --- --- You should have received a copy of the GNU General [public] License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- $Id$ --- $Source$ --- =================================================================== - - --- Supprimme orphelins pour permettre montée de la clé --- V4 DELETE llx_facture_fourn_det FROM llx_facture_fourn_det LEFT JOIN llx_facture_fourn ON llx_facture_fourn_det.fk_facture_fourn = llx_facture_fourn.rowid WHERE llx_facture_fourn.rowid IS NULL; - -CREATE INDEX idx_facture_fourn_det_fk_facture ON llx_facture_fourn_det(fk_facture_fourn); -ALTER TABLE llx_facture_fourn_det ADD CONSTRAINT fk_facture_fourn_det_fk_facture FOREIGN KEY (fk_facture_fourn) REFERENCES llx_facture_fourn (rowid); diff --git a/mssql/tables/llx_facture_fourn_det.sql b/mssql/tables/llx_facture_fourn_det.sql deleted file mode 100644 index 0e2f324c464..00000000000 --- a/mssql/tables/llx_facture_fourn_det.sql +++ /dev/null @@ -1,35 +0,0 @@ --- =================================================================== --- Copyright (C) 2003 Rodolphe Quiedeville --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General [public] License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General [public] License for more details. --- --- You should have received a copy of the GNU General [public] License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- $Id$ --- $Source$ --- =================================================================== - -create table llx_facture_fourn_det -( - rowid integer IDENTITY PRIMARY KEY, - fk_facture_fourn integer NOT NULL, - fk_product integer NULL, - description text, - pu_ht real DEFAULT 0, - qty smallint DEFAULT 1, - total_ht real DEFAULT 0, - tva_taux real DEFAULT 0, - tva real DEFAULT 0, - total_ttc real DEFAULT 0 - -); diff --git a/mssql/tables/llx_facture_rec.key.sql b/mssql/tables/llx_facture_rec.key.sql deleted file mode 100644 index b86e95aaaee..00000000000 --- a/mssql/tables/llx_facture_rec.key.sql +++ /dev/null @@ -1,33 +0,0 @@ --- ============================================================================ --- Copyright (C) 2002-2004 Rodolphe Quiedeville --- Copyright (C) 2004-2006 Laurent Destailleur --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General [public] License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General [public] License for more details. --- --- You should have received a copy of the GNU General [public] License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- $Id$ --- $Source$ --- --- ============================================================================ - - -CREATE INDEX idx_facture_rec_fk_soc ON llx_facture_rec(fk_soc); -CREATE INDEX idx_facture_rec_fk_user_author ON llx_facture_rec(fk_user_author); -CREATE INDEX idx_facture_rec_fk_projet ON llx_facture_rec(fk_projet); - -ALTER TABLE llx_facture_rec ADD CONSTRAINT fk_facture_rec_fk_user_author FOREIGN KEY (fk_user_author) REFERENCES llx_user (rowid); -ALTER TABLE llx_facture_rec ADD CONSTRAINT fk_facture_rec_fk_projet FOREIGN KEY (fk_projet) REFERENCES llx_projet (rowid); - -CREATE UNIQUE INDEX idx_facture_rec_uk_titre ON llx_facture_rec(titre); - diff --git a/mssql/tables/llx_facture_rec.sql b/mssql/tables/llx_facture_rec.sql deleted file mode 100644 index 967b5597f49..00000000000 --- a/mssql/tables/llx_facture_rec.sql +++ /dev/null @@ -1,51 +0,0 @@ --- =========================================================================== --- Copyright (C) 2003 Rodolphe Quiedeville --- Copyright (C) 2006 Laurent Destailleur --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General [public] License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General [public] License for more details. --- --- You should have received a copy of the GNU General [public] License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- $Id$ --- $Source$ --- =========================================================================== - -create table llx_facture_rec -( - rowid integer IDENTITY PRIMARY KEY, - titre varchar(50) NOT NULL, - fk_soc integer NOT NULL, - datec datetime, -- SMALLDATETIME de creation - - amount real DEFAULT 0 NOT NULL, - remise real DEFAULT 0, - remise_percent real DEFAULT 0, - remise_absolue real DEFAULT 0, - tva real DEFAULT 0, - total real DEFAULT 0, - total_ttc real DEFAULT 0, - - fk_user_author integer, -- createur - fk_projet integer, -- projet auquel est associé la facture - fk_cond_reglement integer DEFAULT 0, -- condition de reglement - fk_mode_reglement integer DEFAULT 0, -- mode de reglement (Virement, Prélèvement) - date_lim_reglement SMALLDATETIME, -- SMALLDATETIME limite de reglement - - note text, - note_public text, - - frequency char(2) DEFAULT NULL, - last_gen varchar(7) DEFAULT NULL -); - -CREATE INDEX idx_facture_rec_fksoc ON llx_facture_rec(fk_soc) diff --git a/mssql/tables/llx_facture_stats.sql b/mssql/tables/llx_facture_stats.sql deleted file mode 100644 index a83da3a992c..00000000000 --- a/mssql/tables/llx_facture_stats.sql +++ /dev/null @@ -1,29 +0,0 @@ --- =================================================================== --- Copyright (C) 2006 Rodolphe Quiedeville --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General [public] License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General [public] License for more details. --- --- You should have received a copy of the GNU General [public] License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- $Id$ --- $Source$ --- =================================================================== - -create table llx_facture_stats -( - date_full datetime, - date_day SMALLDATETIME, - data varchar(50), - value real - -); diff --git a/mssql/tables/llx_facturedet.key.sql b/mssql/tables/llx_facturedet.key.sql deleted file mode 100644 index 603b1d78f30..00000000000 --- a/mssql/tables/llx_facturedet.key.sql +++ /dev/null @@ -1,27 +0,0 @@ --- =================================================================== --- Copyright (C) 2005 Laurent Destailleur --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General [public] License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General [public] License for more details. --- --- You should have received a copy of the GNU General [public] License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- $Id$ --- $Source$ --- =================================================================== - - --- Supprimme orhpelins pour permettre montée de la clé --- V4 DELETE llx_facturedet FROM llx_facturedet LEFT JOIN llx_facture ON llx_facturedet.fk_facture = llx_facture.rowid WHERE llx_facture.rowid IS NULL; - -CREATE INDEX idx_facturedet_fk_facture ON llx_facturedet(fk_facture); -ALTER TABLE llx_facturedet ADD CONSTRAINT fk_facturedet_fk_facture FOREIGN KEY (fk_facture) REFERENCES llx_facture (rowid); diff --git a/mssql/tables/llx_facturedet.sql b/mssql/tables/llx_facturedet.sql deleted file mode 100644 index e8e0e825e2a..00000000000 --- a/mssql/tables/llx_facturedet.sql +++ /dev/null @@ -1,46 +0,0 @@ --- =================================================================== --- Copyright (C) 2001-2005 Rodolphe Quiedeville --- Copyright (C) 2004-2005 Laurent Destailleur --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- $Id$ --- $Source$ --- =================================================================== - -create table llx_facturedet -( - rowid integer IDENTITY PRIMARY KEY, - fk_facture integer NOT NULL, - fk_product integer NULL, -- Doit pouvoir etre nul pour ligne detail sans produits - description text, - tva_taux real, -- Taux tva produit/service (exemple 19.6) - qty real, -- Quantité (exemple 2) - remise_percent real DEFAULT 0, -- % de la remise ligne (exemple 20%) - remise real DEFAULT 0, -- Montant calculé de la remise % sur PU HT (exemple 20) - fk_remise_except integer NULL, -- Lien vers table des remises fixes - subprice real, -- P.U. HT (exemple 100) - price real, -- P.U. HT apres remise % de ligne - total_ht real, -- Total HT de la ligne toute quantité et incluant remise ligne et globale - total_tva real, -- Total TVA de la ligne toute quantité et incluant remise ligne et globale - total_ttc real, -- Total TTC de la ligne toute quantité et incluant remise ligne et globale - date_start datetime, -- SMALLDATETIME debut si service - date_end datetime, -- SMALLDATETIME fin si service - info_bits integer DEFAULT 0, -- TVA NPR ou non - fk_code_ventilation integer DEFAULT 0 NOT NULL, - fk_export_compta integer DEFAULT 0 NOT NULL, - rang integer DEFAULT 0, -- ordre d'affichage - special_code tinyint DEFAULT 0 -- code pour les lignes speciales (livraison=1, ecotaxe=2) -); diff --git a/mssql/tables/llx_facturedet_rec.sql b/mssql/tables/llx_facturedet_rec.sql deleted file mode 100644 index 92e97de9a42..00000000000 --- a/mssql/tables/llx_facturedet_rec.sql +++ /dev/null @@ -1,37 +0,0 @@ --- =================================================================== --- Copyright (C) 2003 Rodolphe Quiedeville --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General [public] License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General [public] License for more details. --- --- You should have received a copy of the GNU General [public] License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- $Id$ --- $Source$ --- =================================================================== - -create table llx_facturedet_rec -( - rowid integer IDENTITY PRIMARY KEY, - fk_facture integer NOT NULL, - fk_product integer, - description text, - tva_taux real DEFAULT 19.6, -- taux tva - qty real, -- quantité - remise_percent real DEFAULT 0, -- pourcentage de remise - remise real DEFAULT 0, -- montant de la remise - subprice real, -- prix avant remise - price real, -- prix final - total_ht real, -- Total HT de la ligne toute quantité et incluant remise ligne et globale - total_tva real, -- Total TVA de la ligne toute quantité et incluant remise ligne et globale - total_ttc real -- Total TTC de la ligne toute quantité et incluant remise ligne et globale -); diff --git a/mssql/tables/llx_fichinter.key.sql b/mssql/tables/llx_fichinter.key.sql deleted file mode 100644 index e3c509a4d07..00000000000 --- a/mssql/tables/llx_fichinter.key.sql +++ /dev/null @@ -1,25 +0,0 @@ --- =================================================================== --- Copyright (C) 2005 Laurent Destailleur --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General [public] License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General [public] License for more details. --- --- You should have received a copy of the GNU General [public] License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- $Id$ --- $Source$ --- --- =================================================================== - - -CREATE INDEX idx_fichinter_fk_soc ON llx_fichinter(fk_soc); -ALTER TABLE llx_fichinter ADD CONSTRAINT fk_fichinter_fk_soc FOREIGN KEY (fk_soc) REFERENCES llx_societe (rowid); diff --git a/mssql/tables/llx_fichinter.sql b/mssql/tables/llx_fichinter.sql deleted file mode 100644 index 10a56a5d9e0..00000000000 --- a/mssql/tables/llx_fichinter.sql +++ /dev/null @@ -1,44 +0,0 @@ --- =================================================================== --- Copyright (C) 2001-2007 Rodolphe Quiedeville --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- $Id$ --- $Source$ --- --- =================================================================== - -create table llx_fichinter -( - rowid integer IDENTITY PRIMARY KEY, - fk_soc integer NOT NULL, - fk_projet integer DEFAULT 0, -- projet auquel est rattache la fiche - fk_contrat integer DEFAULT 0, -- contrat auquel est rattache la fiche - ref varchar(30) NOT NULL, -- number - tms timestamp, - datec datetime, -- SMALLDATETIME de creation - date_valid datetime, -- SMALLDATETIME de validation - datei SMALLDATETIME, -- SMALLDATETIME de livraison du bon d'intervention - fk_user_author integer, -- createur de la fiche - fk_user_valid integer, -- valideur de la fiche - fk_statut smallint DEFAULT 0, - duree real, -- durée totale de l'intervention - description text, - note_private text, - note_public text, - model_pdf varchar(50), -); - -CREATE UNIQUE INDEX ref ON llx_fichinter(ref) diff --git a/mssql/tables/llx_fichinterdet.sql b/mssql/tables/llx_fichinterdet.sql deleted file mode 100644 index 82b93af6923..00000000000 --- a/mssql/tables/llx_fichinterdet.sql +++ /dev/null @@ -1,31 +0,0 @@ --- =================================================================== --- Copyright (C) 2002-2003 Rodolphe Quiedeville --- Copyright (C) 2005-2007 Regis Houssin --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- $Id$ --- $Source$ --- =================================================================== - -create table llx_fichinterdet -( - rowid integer IDENTITY PRIMARY KEY, - fk_fichinter integer, - date SMALLDATETIME, -- SMALLDATETIME de la ligne d'intervention - description text, -- description de la ligne d'intervention - duree integer, -- duree de la ligne d'intervention - rang integer DEFAULT 0 -- ordre affichage sur la fiche -); diff --git a/mssql/tables/llx_fournisseur_ca.sql b/mssql/tables/llx_fournisseur_ca.sql deleted file mode 100644 index aceb59946ff..00000000000 --- a/mssql/tables/llx_fournisseur_ca.sql +++ /dev/null @@ -1,31 +0,0 @@ --- ============================================================================ --- Copyright (C) 2006 Rodolphe Quiedeville --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General [public] License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General [public] License for more details. --- --- You should have received a copy of the GNU General [public] License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- $Id$ --- $Source$ --- --- ============================================================================ - -create table llx_fournisseur_ca -( - fk_societe integer, - date_calcul datetime, - year smallint, - ca_genere float, -- ca genere par les ventes des produits de ce fournisseur - ca_achat float(11) DEFAULT 0, -- ca effectue aupres de ce fournisseur (somme de ses factures) - UNIQUE (fk_societe, year) -); diff --git a/mssql/tables/llx_groupesociete.sql b/mssql/tables/llx_groupesociete.sql deleted file mode 100644 index d0853724ff5..00000000000 --- a/mssql/tables/llx_groupesociete.sql +++ /dev/null @@ -1,35 +0,0 @@ --- ======================================================================== --- Copyright (C) 2000-2004 Rodolphe Quiedeville --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General [public] License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General [public] License for more details. --- --- You should have received a copy of the GNU General [public] License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- $Id$ --- $Source$ --- --- ======================================================================== - -create table llx_groupesociete -( - rowid integer IDENTITY PRIMARY KEY, - parent integer UNIQUE, - tms timestamp, - datec datetime, -- creation SMALLDATETIME - nom varchar(60), -- company name - note text, -- - remise real DEFAULT 0, -- remise systématique pour le client - fk_user_author integer - -); - diff --git a/mssql/tables/llx_groupesociete_remise.sql b/mssql/tables/llx_groupesociete_remise.sql deleted file mode 100644 index 859256e3848..00000000000 --- a/mssql/tables/llx_groupesociete_remise.sql +++ /dev/null @@ -1,36 +0,0 @@ --- ======================================================================== --- Copyright (C) 2000-2004 Rodolphe Quiedeville --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General [public] License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General [public] License for more details. --- --- You should have received a copy of the GNU General [public] License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- $Id$ --- $Source$ --- --- Historique des remises au groupes de societes --- --- ======================================================================== - -create table llx_groupesociete_remise -( - rowid integer IDENTITY PRIMARY KEY, - fk_groupe integer NOT NULL, - tms timestamp, - datec datetime, -- creation SMALLDATETIME - fk_user_author integer, -- utilisateur qui a créé l'info - remise real DEFAULT 0, -- remise systématique pour le client - note text - -); - diff --git a/mssql/tables/llx_livraison.sql b/mssql/tables/llx_livraison.sql deleted file mode 100644 index b1f3876bbee..00000000000 --- a/mssql/tables/llx_livraison.sql +++ /dev/null @@ -1,46 +0,0 @@ --- =================================================================== --- Copyright (C) 2003 Rodolphe Quiedeville --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General [public] License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General [public] License for more details. --- --- You should have received a copy of the GNU General [public] License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- $Id$ --- $Source$ --- --- =================================================================== - -create table llx_livraison -( - rowid integer IDENTITY PRIMARY KEY, - tms timestamp, - fk_commande integer DEFAULT 0, -- commande auquel est rattache le bon de livraison - fk_expedition integer, -- expedition auquel est rattache le bon de livraison - ref varchar(30) NOT NULL, -- delivery number - date_creation datetime, -- SMALLDATETIME de creation - date_valid datetime, -- SMALLDATETIME de validation - fk_user_author integer, -- createur du bon de livraison - fk_user_valid integer, -- valideur du bon de livraison - fk_statut smallint default 0, - total_ht real default 0, - total_ttc real default 0, - note text, - note_public text, - model_pdf varchar(50), - date_livraison SMALLDATETIME default NULL, - fk_adresse_livraison integer -- adresse de livraison - - --key(fk_commande) -); - -CREATE UNIQUE INDEX ref ON llx_livraison(ref) diff --git a/mssql/tables/llx_livraisondet.sql b/mssql/tables/llx_livraisondet.sql deleted file mode 100644 index 4116068944e..00000000000 --- a/mssql/tables/llx_livraisondet.sql +++ /dev/null @@ -1,30 +0,0 @@ --- =================================================================== --- Copyright (C) 2003 Rodolphe Quiedeville --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General [public] License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General [public] License for more details. --- --- You should have received a copy of the GNU General [public] License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- $Id$ --- $Source$ --- =================================================================== - -create table llx_livraisondet -( - rowid integer IDENTITY PRIMARY KEY, - fk_livraison integer, - fk_commande_ligne integer NOT NULL, - qty real -- quantité - --key(fk_livraison), - --key(fk_commande_ligne) -); diff --git a/mssql/tables/llx_mailing.sql b/mssql/tables/llx_mailing.sql deleted file mode 100644 index db90ec3fcba..00000000000 --- a/mssql/tables/llx_mailing.sql +++ /dev/null @@ -1,55 +0,0 @@ --- ======================================================================== --- Copyright (C) 2005 Rodolphe Quiedeville --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General [public] License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General [public] License for more details. --- --- You should have received a copy of the GNU General [public] License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- $Id$ --- $Source$ --- --- ======================================================================== --- --- redaction : 0 --- valide : 1 --- approuvé : 2 --- envoye : 3 - -create table llx_mailing -( - rowid integer IDENTITY PRIMARY KEY, - - statut smallint DEFAULT 0, -- - - titre varchar(60), -- company name - sujet varchar(60), -- company name - body text, - cible varchar(60), - - nbemail integer, - - email_from varchar(160), -- company name - email_replyto varchar(160), -- company name - email_errorsto varchar(160), -- company name - - date_creat datetime, -- creation SMALLDATETIME - date_valid datetime, -- - date_appro datetime, -- - date_envoi datetime, -- SMALLDATETIME d'envoi - - fk_user_creat integer, -- utilisateur qui a créé l'info - fk_user_valid integer, -- utilisateur qui a créé l'info - fk_user_appro integer -- utilisateur qui a créé l'info - -); - diff --git a/mssql/tables/llx_mailing_cibles.key.sql b/mssql/tables/llx_mailing_cibles.key.sql deleted file mode 100644 index 80c6054f66b..00000000000 --- a/mssql/tables/llx_mailing_cibles.key.sql +++ /dev/null @@ -1,24 +0,0 @@ --- =================================================================== --- Copyright (C) 2005 Laurent Destailleur --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General [public] License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General [public] License for more details. --- --- You should have received a copy of the GNU General [public] License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- $Id$ --- $Source$ --- --- =================================================================== - - -CREATE UNIQUE INDEX uk_mailing_cibles ON llx_mailing_cibles(fk_mailing, email); diff --git a/mssql/tables/llx_mailing_cibles.sql b/mssql/tables/llx_mailing_cibles.sql deleted file mode 100644 index 12b666c9149..00000000000 --- a/mssql/tables/llx_mailing_cibles.sql +++ /dev/null @@ -1,37 +0,0 @@ --- ======================================================================== --- Copyright (C) 2005 Rodolphe Quiedeville --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General [public] License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General [public] License for more details. --- --- You should have received a copy of the GNU General [public] License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- $Id$ --- $Source$ --- --- ======================================================================== --- - - -create table llx_mailing_cibles -( - rowid integer IDENTITY PRIMARY KEY, - fk_mailing integer NOT NULL, - fk_contact integer NOT NULL, - nom varchar(160), - prenom varchar(160), - email varchar(160) NOT NULL, - statut smallint NOT NULL DEFAULT 0, - url varchar(160), - date_envoi datetime -); - diff --git a/mssql/tables/llx_menu.sql b/mssql/tables/llx_menu.sql deleted file mode 100644 index 7b87e988a8e..00000000000 --- a/mssql/tables/llx_menu.sql +++ /dev/null @@ -1,45 +0,0 @@ --- ======================================================================== --- Copyright (C) 2007 Patrick Raguin --- Copyright (C) 2007 Laurent Destailleur --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- $Id$ --- $Source$ --- --- ======================================================================== - -CREATE TABLE llx_menu ( - rowid integer PRIMARY KEY NOT NULL , - - menu_handler varchar(16) NOT NULL default 'auguria', -- Menu handler name - type varchar(4) NOT NULL check (type in ('top','left')) default 'left', -- Menu top or left - - mainmenu varchar(100) NOT NULL, -- Name family/module (home, companies, ...) - fk_menu integer NOT NULL, -- 0 or Id of mother menu line - [order] SMALLINT NOT NULL, -- Order of entry - - url varchar(255) NOT NULL, -- Relative (or absolute) url to go - target varchar(100) NULL, -- Target of Url link - - titre varchar(255) NOT NULL, -- Key for menu translation - langs varchar(100), -- Lang file to load for translation - - level SMALLINT, -- ??? - - leftmenu varchar(100) NULL, -- Condition to show or hide - [right] varchar(255), -- Condition to show enabled or disabled - [user] SMALLINT NOT NULL default '0', -- 0 if menu for all users, 1 for external only, 2 for internal only -); diff --git a/mssql/tables/llx_menu_const.key.sql b/mssql/tables/llx_menu_const.key.sql deleted file mode 100644 index 71fbed841f2..00000000000 --- a/mssql/tables/llx_menu_const.key.sql +++ /dev/null @@ -1,29 +0,0 @@ --- ======================================================================== --- Copyright (C) 2007 Patrick Raguin --- Copyright (C) 2005 Laurent Destailleur --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- $Id$ --- $Source$ --- --- ======================================================================== - - -CREATE INDEX idx_menu_const_fk_menu on llx_menu_const(fk_menu); -CREATE INDEX idx_menu_const_fk_constraint on llx_menu_const(fk_constraint); - -ALTER TABLE llx_menu_const ADD CONSTRAINT fk_menu_const_fk_menu FOREIGN KEY (fk_menu) REFERENCES llx_menu (rowid); -ALTER TABLE llx_menu_const ADD CONSTRAINT fk_menu_const_fk_constraint FOREIGN KEY (fk_constraint) REFERENCES llx_menu_constraint (rowid); diff --git a/mssql/tables/llx_menu_const.sql b/mssql/tables/llx_menu_const.sql deleted file mode 100644 index 7c7014aff0e..00000000000 --- a/mssql/tables/llx_menu_const.sql +++ /dev/null @@ -1,30 +0,0 @@ --- ======================================================================== --- Copyright (C) 2007 Patrick Raguin --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- $Id$ --- $Source$ --- --- ======================================================================== - - -CREATE TABLE llx_menu_const ( - rowid integer NOT NULL IDENTITY PRIMARY KEY, - fk_menu integer NOT NULL, - fk_constraint integer NOT NULL, - [user] tinyint NOT NULL default 2 -); - diff --git a/mssql/tables/llx_menu_constraint.sql b/mssql/tables/llx_menu_constraint.sql deleted file mode 100644 index e92eb60d00f..00000000000 --- a/mssql/tables/llx_menu_constraint.sql +++ /dev/null @@ -1,27 +0,0 @@ --- ======================================================================== --- Copyright (C) 2007 Patrick Raguin --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- $Id$ --- $Source$ --- --- ======================================================================== - - -CREATE TABLE llx_menu_constraint ( - rowid integer PRIMARY KEY NOT NULL, - action varchar(255) NOT NULL -); diff --git a/mssql/tables/llx_notify.sql b/mssql/tables/llx_notify.sql deleted file mode 100644 index b4384f8f1c0..00000000000 --- a/mssql/tables/llx_notify.sql +++ /dev/null @@ -1,32 +0,0 @@ --- =================================================================== --- Copyright (C) 2003 Rodolphe Quiedeville --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General [public] License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General [public] License for more details. --- --- You should have received a copy of the GNU General [public] License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- $Id$ --- $Source$ --- --- =================================================================== - -create table llx_notify -( - rowid integer IDENTITY PRIMARY KEY, - tms timestamp, - daten datetime, -- SMALLDATETIME de la notification - fk_action integer NOT NULL, - fk_contact integer NOT NULL, - objet_type varchar(12) check(objet_type in ('ficheinter','facture','propale')), - objet_id integer NOT NULL -); diff --git a/mssql/tables/llx_notify_def.sql b/mssql/tables/llx_notify_def.sql deleted file mode 100644 index b7cff6b9d3f..00000000000 --- a/mssql/tables/llx_notify_def.sql +++ /dev/null @@ -1,31 +0,0 @@ --- =================================================================== --- Copyright (C) 2003 Rodolphe Quiedeville --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General [public] License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General [public] License for more details. --- --- You should have received a copy of the GNU General [public] License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- $Id$ --- $Source$ --- --- =================================================================== - -create table llx_notify_def -( - rowid integer IDENTITY PRIMARY KEY, - tms timestamp, - datec SMALLDATETIME, -- SMALLDATETIME de creation - fk_action integer NOT NULL, - fk_soc integer NOT NULL, - fk_contact integer NOT NULL -); diff --git a/mssql/tables/llx_osc_categories.sql b/mssql/tables/llx_osc_categories.sql deleted file mode 100644 index 5c2cfc80864..00000000000 --- a/mssql/tables/llx_osc_categories.sql +++ /dev/null @@ -1,30 +0,0 @@ --- =================================================================== --- Copyright (C) 2005 Laurent Destailleur --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- $Id$ --- $Source$ --- --- =================================================================== - -CREATE TABLE llx_osc_categories ( - rowid integer NOT NULL IDENTITY PRIMARY KEY, - dolicatid integer NOT NULL default 0, - osccatid integer NOT NULL default 0 -); - -CREATE UNIQUE INDEX dolicatid ON llx_osc_categories(dolicatid) -CREATE UNIQUE INDEX osccatid ON llx_osc_categories(osccatid) diff --git a/mssql/tables/llx_osc_customer.key.sql b/mssql/tables/llx_osc_customer.key.sql deleted file mode 100644 index 0d8482df139..00000000000 --- a/mssql/tables/llx_osc_customer.key.sql +++ /dev/null @@ -1,12 +0,0 @@ --- phpMyAdmin SQL Dump --- version 2.6.2-Debian-3sarge1 --- http://www.phpmyadmin.net --- --- Serveur: localhost --- Généré le : Samedi 05 Août 2006 à 17:25 --- Version du serveur: 4.0.24 --- Version de PHP: 4.3.10-16 --- - - -ALTER TABLE llx_osc_customer ADD CONSTRAINT fk_osc_customer_fk_soc FOREIGN KEY (fk_soc) REFERENCES llx_societe (rowid); diff --git a/mssql/tables/llx_osc_customer.sql b/mssql/tables/llx_osc_customer.sql deleted file mode 100644 index c2ed0592be3..00000000000 --- a/mssql/tables/llx_osc_customer.sql +++ /dev/null @@ -1,29 +0,0 @@ --- =================================================================== --- Copyright (C) 2005 Laurent Destailleur --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- $Id$ --- $Source$ --- --- =================================================================== - -CREATE TABLE llx_osc_customer ( - rowid integer NOT NULL PRIMARY KEY default '0', - datem datetime default NULL, - fk_soc integer NOT NULL default '0', -); - -CREATE UNIQUE INDEX fk_soc ON llx_osc_customer(fk_soc) diff --git a/mssql/tables/llx_osc_order.sql b/mssql/tables/llx_osc_order.sql deleted file mode 100644 index e029e02cf45..00000000000 --- a/mssql/tables/llx_osc_order.sql +++ /dev/null @@ -1,29 +0,0 @@ --- =================================================================== --- Copyright (C) 2005 Laurent Destailleur --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- $Id$ --- $Source$ --- --- =================================================================== - -CREATE TABLE llx_osc_order ( - rowid integer PRIMARY KEY NOT NULL default '0', - datem datetime default NULL, - fk_commande integer NOT NULL default '0', -); - -CREATE UNIQUE INDEX fk_commande ON llx_osc_order(fk_commande) diff --git a/mssql/tables/llx_osc_product.sql b/mssql/tables/llx_osc_product.sql deleted file mode 100644 index 3749cb97e3c..00000000000 --- a/mssql/tables/llx_osc_product.sql +++ /dev/null @@ -1,29 +0,0 @@ --- =================================================================== --- Copyright (C) 2005 Laurent Destailleur --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- $Id$ --- $Source$ --- --- =================================================================== - -CREATE TABLE llx_osc_product ( - rowid integer IDENTITY(0, 1) PRIMARY KEY, - datem datetime default NULL, - fk_product integer NOT NULL default '0' -); - -CREATE UNIQUE INDEX fk_product ON llx_osc_product(fk_product) diff --git a/mssql/tables/llx_paiement.sql b/mssql/tables/llx_paiement.sql deleted file mode 100644 index 550948f7d38..00000000000 --- a/mssql/tables/llx_paiement.sql +++ /dev/null @@ -1,44 +0,0 @@ --- =================================================================== --- Copyright (C) 2001-2002,2004 Rodolphe Quiedeville --- Copyright (C) 2004 Laurent Destailleur --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General [public] License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General [public] License for more details. --- --- You should have received a copy of the GNU General [public] License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- $Id$ --- $Source$ --- =================================================================== --- --- --- Satut, 0 ou 1, 1 n'est plus supprimable --- fk_export_compta 0 pas exporté - -create table llx_paiement -( - rowid integer IDENTITY PRIMARY KEY, - fk_facture integer, - datec datetime, -- SMALLDATETIME de creation - tms timestamp, - datep datetime, -- payment SMALLDATETIME - amount real DEFAULT 0, - fk_paiement integer NOT NULL, - num_paiement varchar(50), - note text, - fk_bank integer NOT NULL, - fk_user_creat integer, -- utilisateur qui a créé l'info - fk_user_modif integer, -- utilisateur qui a modifié l'info - statut smallint DEFAULT 0 NOT NULL, - fk_export_compta integer DEFAULT 0 NOT NULL - -); diff --git a/mssql/tables/llx_paiement_facture.key.sql b/mssql/tables/llx_paiement_facture.key.sql deleted file mode 100644 index e9d92c07c74..00000000000 --- a/mssql/tables/llx_paiement_facture.key.sql +++ /dev/null @@ -1,31 +0,0 @@ --- ============================================================================ --- Copyright (C) 2005 Laurent Destailleur --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General [public] License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General [public] License for more details. --- --- You should have received a copy of the GNU General [public] License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- $Id$ --- $Source$ --- --- =========================================================================== - --- Supprimme orhpelins pour permettre montée de la clé --- V4 DELETE llx_paiement_facture FROM llx_paiement_facture LEFT JOIN llx_facture ON llx_paiement_facture.fk_facture = llx_facture.rowid WHERE llx_facture.rowid IS NULL; --- V4 DELETE llx_paiement_facture FROM llx_paiement_facture LEFT JOIn llx_paiement ON llx_paiement_facture.fk_facture = llx_paiement.rowid WHERE llx_paiement.rowid IS NULL; - -CREATE INDEX idx_paiement_facture_fk_facture ON llx_paiement_facture(fk_facture); -ALTER TABLE llx_paiement_facture ADD CONSTRAINT fk_paiement_facture_fk_facture FOREIGN KEY (fk_facture) REFERENCES llx_facture (rowid); - -CREATE INDEX idx_paiement_facture_fk_paiement ON llx_paiement_facture(fk_paiement); -ALTER TABLE llx_paiement_facture ADD CONSTRAINT fk_paiement_facture_fk_paiement FOREIGN KEY (fk_paiement) REFERENCES llx_paiement (rowid); diff --git a/mssql/tables/llx_paiement_facture.sql b/mssql/tables/llx_paiement_facture.sql deleted file mode 100644 index 2bfe38858d2..00000000000 --- a/mssql/tables/llx_paiement_facture.sql +++ /dev/null @@ -1,28 +0,0 @@ --- =================================================================== --- Copyright (C) 2004 Rodolphe Quiedeville --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General [public] License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General [public] License for more details. --- --- You should have received a copy of the GNU General [public] License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- $Id$ --- $Source$ --- =================================================================== - -create table llx_paiement_facture -( - rowid integer IDENTITY PRIMARY KEY, - fk_paiement integer, - fk_facture integer, - amount real DEFAULT 0 -); diff --git a/mssql/tables/llx_paiementcharge.sql b/mssql/tables/llx_paiementcharge.sql deleted file mode 100644 index a81cdd0b087..00000000000 --- a/mssql/tables/llx_paiementcharge.sql +++ /dev/null @@ -1,37 +0,0 @@ --- =================================================================== --- Copyright (C) 2004 Laurent Destailleur --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General [public] License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General [public] License for more details. --- --- You should have received a copy of the GNU General [public] License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- $Id$ --- $Source$ --- =================================================================== - -create table llx_paiementcharge -( - rowid integer IDENTITY PRIMARY KEY, - fk_charge integer, - datec datetime, -- SMALLDATETIME de creation - tms timestamp, - datep datetime, -- payment SMALLDATETIME - amount real DEFAULT 0, - fk_typepaiement integer NOT NULL, - num_paiement varchar(50), - note text, - fk_bank integer NOT NULL, - fk_user_creat integer, -- utilisateur qui a créé l'info - fk_user_modif integer -- utilisateur qui a modifié l'info - -); diff --git a/mssql/tables/llx_paiementfourn.sql b/mssql/tables/llx_paiementfourn.sql deleted file mode 100644 index 63b5d0512cb..00000000000 --- a/mssql/tables/llx_paiementfourn.sql +++ /dev/null @@ -1,37 +0,0 @@ --- =================================================================== --- Copyright (C) 2003-2004 Rodolphe Quiedeville --- Copyright (C) 2004 Laurent Destailleur --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General [public] License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General [public] License for more details. --- --- You should have received a copy of the GNU General [public] License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- $Id$ --- $Source$ --- =================================================================== - -create table llx_paiementfourn -( - rowid integer IDENTITY PRIMARY KEY, - tms timestamp, - datec datetime, -- SMALLDATETIME de creation de l'enregistrement - fk_facture_fourn integer, -- facture - datep datetime, -- SMALLDATETIME de paiement - amount real DEFAULT 0, -- montant - fk_user_author integer, -- auteur - fk_paiement integer NOT NULL, -- moyen de paiement - num_paiement varchar(50), -- numéro de paiement (cheque) - note text, - fk_bank integer NOT NULL, - statut smallint NOT NULL DEFAULT 0 -); diff --git a/mssql/tables/llx_paiementfourn_facturefourn.key.sql b/mssql/tables/llx_paiementfourn_facturefourn.key.sql deleted file mode 100644 index 2fd31beb947..00000000000 --- a/mssql/tables/llx_paiementfourn_facturefourn.key.sql +++ /dev/null @@ -1,25 +0,0 @@ --- ============================================================================ --- Copyright (C) 2003 Rodolphe Quiedeville --- Copyright (C) 2005 Marc Barilley / Océbo --- Copyright (C) 2005 Laurent Destailleur --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General [public] License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General [public] License for more details. --- --- You should have received a copy of the GNU General [public] License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- $Id$ --- $Source$ --- =========================================================================== - -CREATE INDEX idx_paiementfourn_facturefourn_fk_facture ON llx_paiementfourn_facturefourn(fk_facturefourn); -CREATE INDEX idx_paiementfourn_facturefourn_fk_paiement ON llx_paiementfourn_facturefourn(fk_paiementfourn); diff --git a/mssql/tables/llx_paiementfourn_facturefourn.sql b/mssql/tables/llx_paiementfourn_facturefourn.sql deleted file mode 100644 index 62d0f1bd135..00000000000 --- a/mssql/tables/llx_paiementfourn_facturefourn.sql +++ /dev/null @@ -1,30 +0,0 @@ --- ============================================================================ --- Copyright (C) 2003 Rodolphe Quiedeville --- Copyright (C) 2005 Marc Barilley / Océbo --- Copyright (C) 2005 Laurent Destailleur --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General [public] License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General [public] License for more details. --- --- You should have received a copy of the GNU General [public] License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- $Id$ --- $Source$ --- =========================================================================== - -create table llx_paiementfourn_facturefourn -( - rowid integer IDENTITY PRIMARY KEY, - fk_paiementfourn integer DEFAULT NULL, - fk_facturefourn integer DEFAULT NULL, - amount FLOAT(25) DEFAULT '0' -); \ No newline at end of file diff --git a/mssql/tables/llx_prelevement_bons.sql b/mssql/tables/llx_prelevement_bons.sql deleted file mode 100644 index 6ee30467848..00000000000 --- a/mssql/tables/llx_prelevement_bons.sql +++ /dev/null @@ -1,43 +0,0 @@ --- =================================================================== --- Copyright (C) 2005 Rodolphe Quiedeville --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General [public] License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General [public] License for more details. --- --- You should have received a copy of the GNU General [public] License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- $Id$ --- $Source$ --- =================================================================== --- --- Bons de prélèvement --- --- statut 1 : transmis à la banque --- statut 2 : credite --- -create table llx_prelevement_bons -( - rowid integer IDENTITY PRIMARY KEY, - ref varchar(12), -- reference - datec datetime, -- SMALLDATETIME de creation - amount real DEFAULT 0, -- montant total du prélèvement - statut smallint DEFAULT 0, -- statut - credite smallint DEFAULT 0, -- indique si le prelevement a été credité - note text, - date_trans datetime, -- SMALLDATETIME de transmission à la banque - method_trans smallint, -- méthode de transmission - fk_user_trans integer, -- user qui a effectué la transmission - date_credit datetime, -- SMALLDATETIME de crédit sur le compte - fk_user_credit integer, -- user qui a remonté l'info de crédit - - UNIQUE(ref) -); diff --git a/mssql/tables/llx_prelevement_facture.key.sql b/mssql/tables/llx_prelevement_facture.key.sql deleted file mode 100644 index f8a24a79ab7..00000000000 --- a/mssql/tables/llx_prelevement_facture.key.sql +++ /dev/null @@ -1,29 +0,0 @@ --- ============================================================================ --- Copyright (C) 2005 Rodolphe Quiedeville --- Copyright (C) 2005 Laurent Destailleur --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General [public] License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General [public] License for more details. --- --- You should have received a copy of the GNU General [public] License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- $Id$ --- $Source$ --- --- ============================================================================ - - -CREATE INDEX idx_prelevement_facture_fk_prelevement_lignes ON llx_prelevement_facture(fk_prelevement_lignes); - - -ALTER TABLE llx_prelevement_facture ADD CONSTRAINT fk_prelevement_facture_fk_prelevement_lignes FOREIGN KEY (fk_prelevement_lignes) REFERENCES llx_prelevement_lignes (rowid); - diff --git a/mssql/tables/llx_prelevement_facture.sql b/mssql/tables/llx_prelevement_facture.sql deleted file mode 100644 index c159c3a00f1..00000000000 --- a/mssql/tables/llx_prelevement_facture.sql +++ /dev/null @@ -1,30 +0,0 @@ --- =================================================================== --- Copyright (C) 2005 Rodolphe Quiedeville --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General [public] License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General [public] License for more details. --- --- You should have received a copy of the GNU General [public] License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- $Id$ --- $Source$ --- =================================================================== --- --- - -create table llx_prelevement_facture -( - rowid integer IDENTITY PRIMARY KEY, - fk_facture integer NOT NULL, - fk_prelevement_lignes integer NOT NULL - -); diff --git a/mssql/tables/llx_prelevement_facture_demande.sql b/mssql/tables/llx_prelevement_facture_demande.sql deleted file mode 100644 index 6284e2c38dc..00000000000 --- a/mssql/tables/llx_prelevement_facture_demande.sql +++ /dev/null @@ -1,40 +0,0 @@ --- =================================================================== --- Copyright (C) 2005 Rodolphe Quiedeville --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General [public] License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General [public] License for more details. --- --- You should have received a copy of the GNU General [public] License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- $Id$ --- $Source$ --- =================================================================== --- --- - -create table llx_prelevement_facture_demande -( - rowid integer IDENTITY PRIMARY KEY, - fk_facture integer NOT NULL, - amount real NOT NULL, - date_demande datetime NOT NULL, - traite smallint DEFAULT 0, - date_traite datetime, - fk_prelevement_bons integer, - fk_user_demande integer NOT NULL, - - code_banque varchar(7), - code_guichet varchar(6), - number varchar(255), - cle_rib varchar(5) - -); diff --git a/mssql/tables/llx_prelevement_lignes.key.sql b/mssql/tables/llx_prelevement_lignes.key.sql deleted file mode 100644 index d9e75629c58..00000000000 --- a/mssql/tables/llx_prelevement_lignes.key.sql +++ /dev/null @@ -1,29 +0,0 @@ --- ============================================================================ --- Copyright (C) 2005 Rodolphe Quiedeville --- Copyright (C) 2005 Laurent Destailleur --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General [public] License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General [public] License for more details. --- --- You should have received a copy of the GNU General [public] License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- $Id$ --- $Source$ --- --- ============================================================================ - - -CREATE INDEX idx_prelevement_lignes_fk_prelevement_bons ON llx_prelevement_lignes(fk_prelevement_bons); - - -ALTER TABLE llx_prelevement_lignes ADD CONSTRAINT fk_prelevement_lignes_fk_prelevement_bons FOREIGN KEY (fk_prelevement_bons) REFERENCES llx_prelevement_bons (rowid); - diff --git a/mssql/tables/llx_prelevement_lignes.sql b/mssql/tables/llx_prelevement_lignes.sql deleted file mode 100644 index 6f8b2b154a1..00000000000 --- a/mssql/tables/llx_prelevement_lignes.sql +++ /dev/null @@ -1,40 +0,0 @@ --- =================================================================== --- Copyright (C) 2005 Rodolphe Quiedeville --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General [public] License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General [public] License for more details. --- --- You should have received a copy of the GNU General [public] License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- $Id$ --- $Source$ --- =================================================================== --- --- - -create table llx_prelevement_lignes -( - rowid integer IDENTITY PRIMARY KEY, - fk_prelevement_bons integer, - fk_soc integer NOT NULL, - statut smallint DEFAULT 0, - - client_nom varchar(255), - amount real DEFAULT 0, - code_banque varchar(7), - code_guichet varchar(6), - number varchar(255), - cle_rib varchar(5), - - note text - -); diff --git a/mssql/tables/llx_prelevement_notifications.sql b/mssql/tables/llx_prelevement_notifications.sql deleted file mode 100644 index a4ffcaed8ca..00000000000 --- a/mssql/tables/llx_prelevement_notifications.sql +++ /dev/null @@ -1,35 +0,0 @@ --- =================================================================== --- Copyright (C) 2005 Rodolphe Quiedeville --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General [public] License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General [public] License for more details. --- --- You should have received a copy of the GNU General [public] License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- $Id$ --- $Source$ --- =================================================================== --- --- Utilisateur a notifier --- --- actions : --- 'em' emission d'un bon --- 'tr' tranmission d'un bon --- 'cr' credit du bon par la banque - -create table llx_prelevement_notifications -( - rowid integer IDENTITY PRIMARY KEY, - fk_user integer NOT NULL, - action varchar(2) - -); diff --git a/mssql/tables/llx_prelevement_rejet.sql b/mssql/tables/llx_prelevement_rejet.sql deleted file mode 100644 index 6c353f302b1..00000000000 --- a/mssql/tables/llx_prelevement_rejet.sql +++ /dev/null @@ -1,35 +0,0 @@ --- =================================================================== --- Copyright (C) 2005 Rodolphe Quiedeville --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General [public] License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General [public] License for more details. --- --- You should have received a copy of the GNU General [public] License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- $Id$ --- $Source$ --- =================================================================== --- --- - -create table llx_prelevement_rejet -( - rowid integer IDENTITY PRIMARY KEY, - fk_prelevement_lignes integer, - date_rejet datetime, - motif integer, - date_creation datetime, - fk_user_creation integer, - note text, - afacturer tinyint default 0, - fk_facture integer -); diff --git a/mssql/tables/llx_product.key.sql b/mssql/tables/llx_product.key.sql deleted file mode 100644 index c8d246acd6a..00000000000 --- a/mssql/tables/llx_product.key.sql +++ /dev/null @@ -1,25 +0,0 @@ --- ============================================================================ --- Copyright (C) 2002-2004 Rodolphe Quiedeville --- Copyright (C) 2004-2005 Laurent Destailleur --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General [public] License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General [public] License for more details. --- --- You should have received a copy of the GNU General [public] License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- $Id$ --- $Source$ --- --- ============================================================================ - - -CREATE UNIQUE INDEX uk_product_ref ON llx_product(ref); diff --git a/mssql/tables/llx_product.sql b/mssql/tables/llx_product.sql deleted file mode 100644 index d7d542794e8..00000000000 --- a/mssql/tables/llx_product.sql +++ /dev/null @@ -1,51 +0,0 @@ --- ============================================================================ --- Copyright (C) 2002-2006 Rodolphe Quiedeville --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General [public] License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General [public] License for more details. --- --- You should have received a copy of the GNU General [public] License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- $Id$ --- $Source$ --- --- ============================================================================ - -create table llx_product -( - rowid integer IDENTITY PRIMARY KEY, - datec datetime, - tms timestamp, - ref varchar(16) NOT NULL, - label varchar(255) NOT NULL, - description text, - note text, - price FLOAT, - price_ttc float DEFAULT 0, - price_base_type varchar(3) DEFAULT 'HT', - tva_tx FLOAT, - fk_user_author integer, - envente tinyint DEFAULT 1, - nbvente integer DEFAULT 0, - fk_product_type integer DEFAULT 0, - duration varchar(6), - stock_propale integer DEFAULT 0, - stock_commande integer DEFAULT 0, - seuil_stock_alerte integer DEFAULT 0, - stock_loc varchar(10), -- emplacement dans le stock - gencode varchar(255) DEFAULT NULL, - weight float DEFAULT NULL, - weight_units tinyint DEFAULT NULL, - volume float DEFAULT NULL, - volume_units tinyint DEFAULT NULL, - canvas varchar(15) DEFAULT '' -); diff --git a/mssql/tables/llx_product_ca.sql b/mssql/tables/llx_product_ca.sql deleted file mode 100644 index d87266b4e71..00000000000 --- a/mssql/tables/llx_product_ca.sql +++ /dev/null @@ -1,30 +0,0 @@ --- ============================================================================ --- Copyright (C) 2006 Rodolphe Quiedeville --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General [public] License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General [public] License for more details. --- --- You should have received a copy of the GNU General [public] License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- $Id$ --- $Source$ --- --- ============================================================================ - -create table llx_product_ca -( - fk_product integer, - date_calcul datetime, - year smallint, - ca_genere float, - UNIQUE (fk_product, year) -); diff --git a/mssql/tables/llx_product_cnv_livre.sql b/mssql/tables/llx_product_cnv_livre.sql deleted file mode 100644 index 2e82508f819..00000000000 --- a/mssql/tables/llx_product_cnv_livre.sql +++ /dev/null @@ -1,46 +0,0 @@ --- ============================================================================ --- Copyright (C) 2006-2007 Rodolphe Quiedeville --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General [public] License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General [public] License for more details. --- --- You should have received a copy of the GNU General [public] License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- $Id$ --- $Source$ --- --- ============================================================================ --- --- Produit specifique livre --- -create table llx_product_cnv_livre -( - rowid integer PRIMARY KEY, - isbn varchar(13), -- code ISBN - ean varchar(13), -- code EAN - format varchar(7), -- format de l'ouvrage - - px_feuillet float(12), -- prix au feuillet - px_reliure float(12), -- prix de la reliure - px_couverture float(12), -- prix de la couverture - px_revient float(12), -- prix de revient - stock_loc varchar(5), -- emplacement dans le stock - - pages smallint, -- nombre de page - - fk_couverture integer, - fk_contrat integer, - fk_auteur integer DEFAULT 0 -- auteur lien vers llx_societe -); - - - diff --git a/mssql/tables/llx_product_cnv_livre_contrat.sql b/mssql/tables/llx_product_cnv_livre_contrat.sql deleted file mode 100644 index f4f23b6c4c8..00000000000 --- a/mssql/tables/llx_product_cnv_livre_contrat.sql +++ /dev/null @@ -1,37 +0,0 @@ --- ============================================================================ --- Copyright (C) 2006 Rodolphe Quiedeville --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General [public] License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General [public] License for more details. --- --- You should have received a copy of the GNU General [public] License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- $Id$ --- $Source$ --- --- ============================================================================ - -create table llx_product_cnv_livre_contrat -( - rowid integer IDENTITY PRIMARY KEY, - fk_cnv_livre integer, - - quantite integer, -- quantite achete - taux float(3), -- taux contractuel - - date_app datetime, -- SMALLDATETIME d'application - duree varchar(50) -- duree du contrat - -); - - - diff --git a/mssql/tables/llx_product_det.sql b/mssql/tables/llx_product_det.sql deleted file mode 100644 index d78dabe570b..00000000000 --- a/mssql/tables/llx_product_det.sql +++ /dev/null @@ -1,31 +0,0 @@ --- ============================================================================ --- Copyright (C) 2002-2003 Rodolphe Quiedeville --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General [public] License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General [public] License for more details. --- --- You should have received a copy of the GNU General [public] License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- $Id$ --- $Source$ --- --- ============================================================================ - -create table llx_product_det -( - rowid integer IDENTITY PRIMARY KEY, - fk_product integer DEFAULT 0 NOT NULL, - lang varchar(5) DEFAULT 0 NOT NULL, - label varchar(255) NOT NULL, - description text, - note text -); diff --git a/mssql/tables/llx_product_fournisseur.sql b/mssql/tables/llx_product_fournisseur.sql deleted file mode 100644 index a98be758d62..00000000000 --- a/mssql/tables/llx_product_fournisseur.sql +++ /dev/null @@ -1,36 +0,0 @@ --- ============================================================================ --- Copyright (C) 2003 Rodolphe Quiedeville --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General [public] License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General [public] License for more details. --- --- You should have received a copy of the GNU General [public] License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- $Id$ --- $Source$ --- --- ============================================================================ - -create table llx_product_fournisseur -( - rowid integer IDENTITY PRIMARY KEY, - datec datetime, - tms timestamp, - fk_product integer, - fk_soc integer, - ref_fourn varchar(30), - fk_user_author integer - - --key(fk_product), - --key(fk_soc) -); - diff --git a/mssql/tables/llx_product_fournisseur_price.key.sql b/mssql/tables/llx_product_fournisseur_price.key.sql deleted file mode 100644 index a583abf57d1..00000000000 --- a/mssql/tables/llx_product_fournisseur_price.key.sql +++ /dev/null @@ -1,33 +0,0 @@ --- ============================================================================ --- Copyright (C) 2003 Rodolphe Quiedeville --- Copyright (C) 2005 Laurent Destailleur --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General [public] License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General [public] License for more details. --- --- You should have received a copy of the GNU General [public] License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- $Id$ --- $Source$ --- --- ============================================================================ - - -CREATE INDEX idx_product_fournisseur_price_fk_user ON llx_product_fournisseur_price(fk_user); -CREATE INDEX idx_product_fournisseur_price_fk_soc ON llx_product_fournisseur_price(fk_soc); -CREATE INDEX idx_product_fournisseur_price_fk_product ON llx_product_fournisseur_price(fk_product); - -ALTER TABLE llx_product_fournisseur_price ADD CONSTRAINT fk_product_fournisseur_price_fk_user FOREIGN KEY (fk_user) REFERENCES llx_user (rowid); -ALTER TABLE llx_product_fournisseur_price ADD CONSTRAINT fk_product_fournisseur_price_fk_soc FOREIGN KEY (fk_soc) REFERENCES llx_societe (rowid); -ALTER TABLE llx_product_fournisseur_price ADD CONSTRAINT fk_product_fournisseur_price_fk_product FOREIGN KEY (fk_product) REFERENCES llx_product (rowid); - - diff --git a/mssql/tables/llx_product_fournisseur_price.sql b/mssql/tables/llx_product_fournisseur_price.sql deleted file mode 100644 index 545ba4fb295..00000000000 --- a/mssql/tables/llx_product_fournisseur_price.sql +++ /dev/null @@ -1,36 +0,0 @@ --- ============================================================================ --- Copyright (C) 2003 Rodolphe Quiedeville --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General [public] License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General [public] License for more details. --- --- You should have received a copy of the GNU General [public] License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- $Id$ --- $Source$ --- --- ============================================================================ - -create table llx_product_fournisseur_price -( - rowid integer IDENTITY PRIMARY KEY, - datec datetime, - tms timestamp, - fk_product integer, - fk_soc integer, -- lien sur llx_societe - ref_fourn varchar(30), - price float, - quantity float, - unitprice float, - fk_user integer - -); diff --git a/mssql/tables/llx_product_fournisseur_price_log.sql b/mssql/tables/llx_product_fournisseur_price_log.sql deleted file mode 100644 index 07f5af61dd6..00000000000 --- a/mssql/tables/llx_product_fournisseur_price_log.sql +++ /dev/null @@ -1,33 +0,0 @@ --- ============================================================================ --- Copyright (C) 2005 Rodolphe Quiedeville --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General [public] License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General [public] License for more details. --- --- You should have received a copy of the GNU General [public] License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- $Id$ --- $Source$ --- --- ============================================================================ - -create table llx_product_fournisseur_price_log -( - rowid integer IDENTITY PRIMARY KEY, - datec datetime, - fk_product integer, - fk_soc integer, -- lien sur llx_societe - price real, - quantity real, - fk_user integer - -); diff --git a/mssql/tables/llx_product_price.sql b/mssql/tables/llx_product_price.sql deleted file mode 100644 index 3aa012b4489..00000000000 --- a/mssql/tables/llx_product_price.sql +++ /dev/null @@ -1,37 +0,0 @@ --- ============================================================================ --- Copyright (C) 2002-2003 Rodolphe Quiedeville --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General [public] License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General [public] License for more details. --- --- You should have received a copy of the GNU General [public] License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- $Id$ --- $Source$ --- --- ============================================================================ - -create table llx_product_price -( - rowid integer IDENTITY PRIMARY KEY, - tms timestamp, - fk_product integer NOT NULL, - date_price datetime NOT NULL, - price_level tinyint NULL DEFAULT 1, - price FLOAT, - price_ttc float DEFAULT 0, - price_base_type varchar(3) DEFAULT 'HT', - tva_tx FLOAT NOT NULL, - fk_user_author integer, - envente tinyint DEFAULT 1 -); - diff --git a/mssql/tables/llx_product_stock.sql b/mssql/tables/llx_product_stock.sql deleted file mode 100644 index 09a0f29523f..00000000000 --- a/mssql/tables/llx_product_stock.sql +++ /dev/null @@ -1,34 +0,0 @@ --- ============================================================================ --- Copyright (C) 2003 Rodolphe Quiedeville --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General [public] License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General [public] License for more details. --- --- You should have received a copy of the GNU General [public] License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- $Id$ --- $Source$ --- --- ============================================================================ - -create table llx_product_stock -( - rowid integer IDENTITY PRIMARY KEY, - tms timestamp, - fk_product integer NOT NULL, - fk_entrepot integer NOT NULL, - reel integer -- stock réel - - --key(fk_product), - --key(fk_entrepot) -); - diff --git a/mssql/tables/llx_product_subproduct.sql b/mssql/tables/llx_product_subproduct.sql deleted file mode 100644 index 47b3f990c27..00000000000 --- a/mssql/tables/llx_product_subproduct.sql +++ /dev/null @@ -1,30 +0,0 @@ --- ============================================================================ --- Copyright (C) 2006 Rodolphe Quiedeville --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General [public] License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General [public] License for more details. --- --- You should have received a copy of the GNU General [public] License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- $Id$ --- $Source$ --- --- ============================================================================ - -create table llx_product_subproduct -( - rowid integer IDENTITY PRIMARY KEY, - fk_product integer NOT NULL, -- id du produit maitre - fk_product_subproduct integer NOT NULL, -- id du sous-produit - UNIQUE(fk_product, fk_product_subproduct) -); - diff --git a/mssql/tables/llx_projet.sql b/mssql/tables/llx_projet.sql deleted file mode 100644 index 18babf6071d..00000000000 --- a/mssql/tables/llx_projet.sql +++ /dev/null @@ -1,37 +0,0 @@ --- =========================================================================== --- Copyright (C) 2002 Rodolphe Quiedeville --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General [public] License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General [public] License for more details. --- --- You should have received a copy of the GNU General [public] License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- $Id$ --- $Source$ --- --- =========================================================================== - -create table llx_projet -( - rowid integer IDENTITY PRIMARY KEY, - fk_soc integer NOT NULL, - fk_statut smallint NOT NULL, - tms timestamp, - dateo SMALLDATETIME, -- SMALLDATETIME d'ouverture du projet - ref varchar(50), - title varchar(255), - fk_user_resp integer, -- responsable du projet - fk_user_creat integer, -- createur du projet - note text, -); - -CREATE UNIQUE INDEX ref ON llx_projet(ref) diff --git a/mssql/tables/llx_projet_task.sql b/mssql/tables/llx_projet_task.sql deleted file mode 100644 index 93a2f24f85d..00000000000 --- a/mssql/tables/llx_projet_task.sql +++ /dev/null @@ -1,38 +0,0 @@ --- =========================================================================== --- Copyright (C) 2005 Rodolphe Quiedeville --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General [public] License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General [public] License for more details. --- --- You should have received a copy of the GNU General [public] License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- $Id$ --- $Source$ --- --- =========================================================================== - -create table llx_projet_task -( - rowid integer IDENTITY PRIMARY KEY, - fk_projet integer NOT NULL, - fk_task_parent integer NOT NULL, - title varchar(255), - duration_effective real NOT NULL, - fk_user_creat integer, -- createur - statut varchar(6) check (statut in ('open','closed')) DEFAULT 'open', - note text - - --key(fk_projet), - --key(statut), - --key(fk_user_creat) - -); diff --git a/mssql/tables/llx_projet_task_actors.sql b/mssql/tables/llx_projet_task_actors.sql deleted file mode 100644 index 7ca93d90323..00000000000 --- a/mssql/tables/llx_projet_task_actors.sql +++ /dev/null @@ -1,32 +0,0 @@ --- =========================================================================== --- Copyright (C) 2005 Rodolphe Quiedeville --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General [public] License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General [public] License for more details. --- --- You should have received a copy of the GNU General [public] License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- $Id$ --- $Source$ --- --- =========================================================================== - -create table llx_projet_task_actors -( - fk_projet_task integer NOT NULL, - fk_user integer NOT NULL, - role varchar(5) check (role in ('admin','read','acto','info')) DEFAULT 'admin', - - --key (role) -); - -CREATE UNIQUE INDEX fk_projet_task_fk_user ON llx_projet_task_actors(fk_projet_task, fk_user) \ No newline at end of file diff --git a/mssql/tables/llx_projet_task_time.sql b/mssql/tables/llx_projet_task_time.sql deleted file mode 100644 index d55b3157f8a..00000000000 --- a/mssql/tables/llx_projet_task_time.sql +++ /dev/null @@ -1,34 +0,0 @@ --- =========================================================================== --- Copyright (C) 2005 Rodolphe Quiedeville --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General [public] License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General [public] License for more details. --- --- You should have received a copy of the GNU General [public] License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- $Id$ --- $Source$ --- --- =========================================================================== - -create table llx_projet_task_time -( - rowid integer IDENTITY PRIMARY KEY, - fk_task integer NOT NULL, - task_date SMALLDATETIME, - task_duration FLOAT(25), - fk_user integer, - note text - - --key(fk_task), - --key(fk_user) -); diff --git a/mssql/tables/llx_propal.key.sql b/mssql/tables/llx_propal.key.sql deleted file mode 100644 index 7af13e50794..00000000000 --- a/mssql/tables/llx_propal.key.sql +++ /dev/null @@ -1,29 +0,0 @@ --- ============================================================================ --- Copyright (C) 2002-2004 Rodolphe Quiedeville --- Copyright (C) 2004-2005 Laurent Destailleur --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General [public] License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General [public] License for more details. --- --- You should have received a copy of the GNU General [public] License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- $Id$ --- $Source$ --- --- ============================================================================ - - -CREATE INDEX idx_propal_fk_soc ON llx_propal(fk_soc); - - -ALTER TABLE llx_propal ADD CONSTRAINT fk_propal_fk_soc FOREIGN KEY (fk_soc) REFERENCES llx_societe (rowid); - diff --git a/mssql/tables/llx_propal.sql b/mssql/tables/llx_propal.sql deleted file mode 100644 index 2b45ed87049..00000000000 --- a/mssql/tables/llx_propal.sql +++ /dev/null @@ -1,58 +0,0 @@ --- =================================================================== --- Copyright (C) 2001-2003 Rodolphe Quiedeville --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General [public] License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General [public] License for more details. --- --- You should have received a copy of the GNU General [public] License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- $Id$ --- $Source$ --- --- =================================================================== - -create table llx_propal -( - rowid integer IDENTITY PRIMARY KEY, - fk_soc integer, - fk_projet integer DEFAULT 0, -- projet auquel est rattache la propale - ref varchar(30) NOT NULL, -- propal number - ref_client varchar(30), -- customer order number - - datec datetime, -- SMALLDATETIME de creation - datep SMALLDATETIME, -- SMALLDATETIME de la propal - fin_validite datetime, -- SMALLDATETIME de fin de validite - date_valid datetime, -- SMALLDATETIME de validation - date_cloture datetime, -- SMALLDATETIME de cloture - fk_user_author integer, -- createur de la propale - fk_user_valid integer, -- valideur de la propale - fk_user_cloture integer, -- cloture de la propale signee ou non signee - fk_statut smallint DEFAULT 0 NOT NULL, - price real DEFAULT 0, - remise_percent real DEFAULT 0, -- remise globale relative en pourcent - remise_absolue real DEFAULT 0, -- remise globale absolue - remise real DEFAULT 0, -- remise calculee - tva float DEFAULT 0, -- montant tva apres remise globale - total_ht float DEFAULT 0, -- montant total ht apres remise globale - total float DEFAULT 0, -- montant total ttc apres remise globale - - fk_cond_reglement integer, -- condition de reglement (30 jours, fin de mois ...) - fk_mode_reglement integer, -- mode de reglement (Virement, Prélèvement) - - note text, - note_public text, - model_pdf varchar(50), - date_livraison datetime default NULL, - fk_adresse_livraison integer, -- adresse de livraison -); - -CREATE UNIQUE INDEX ref ON llx_propal(ref) diff --git a/mssql/tables/llx_propaldet.sql b/mssql/tables/llx_propaldet.sql deleted file mode 100644 index 1424997f19e..00000000000 --- a/mssql/tables/llx_propaldet.sql +++ /dev/null @@ -1,42 +0,0 @@ --- =================================================================== --- Copyright (C) 2002-2003 Rodolphe Quiedeville --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General [public] License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General [public] License for more details. --- --- You should have received a copy of the GNU General [public] License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- $Id$ --- $Source$ --- =================================================================== - -create table llx_propaldet -( - rowid integer IDENTITY PRIMARY KEY, - fk_propal integer, - fk_product integer, - description text, - fk_remise_except integer NULL, -- Lien vers table des remises fixes - tva_tx real, -- taux tva - qty real, -- quantité - remise_percent real DEFAULT 0, -- pourcentage de remise - remise real DEFAULT 0, -- montant de la remise - price real, -- prix final - subprice float, -- prix avant remise - total_ht float, -- Total HT de la ligne toute quantité et incluant remise ligne et globale - total_tva float, -- Total TVA de la ligne toute quantité et incluant remise ligne et globale - total_ttc float, -- Total TTC de la ligne toute quantité et incluant remise ligne et globale - info_bits integer DEFAULT 0, -- TVA NPR ou non - marge_tx real, -- taux de marge (marge sur prix d'achat) - marque_tx real, -- taux de marque (marge sur prix de vente) - rang integer DEFAULT 0 -); diff --git a/mssql/tables/llx_rights_def.sql b/mssql/tables/llx_rights_def.sql deleted file mode 100644 index c662c515ed7..00000000000 --- a/mssql/tables/llx_rights_def.sql +++ /dev/null @@ -1,33 +0,0 @@ --- ============================================================================ --- Copyright (C) 2003 Rodolphe Quiedeville --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General [public] License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General [public] License for more details. --- --- You should have received a copy of the GNU General [public] License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- $Id$ --- $Source$ --- --- =========================================================================== - -create table llx_rights_def -( - id integer PRIMARY KEY, - libelle varchar(255), - module varchar(12), - perms varchar(50), - subperms varchar(50), - type char check (type in ('r','w','m','d','a')), - bydefault tinyint DEFAULT 0 -); - diff --git a/mssql/tables/llx_societe.key.sql b/mssql/tables/llx_societe.key.sql deleted file mode 100644 index 7738e962f2e..00000000000 --- a/mssql/tables/llx_societe.key.sql +++ /dev/null @@ -1,28 +0,0 @@ --- =================================================================== --- Copyright (C) 2005 Laurent Destailleur --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General [public] License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General [public] License for more details. --- --- You should have received a copy of the GNU General [public] License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- $Id$ --- $Source$ --- --- =================================================================== - - -CREATE UNIQUE INDEX uk_societe_prefix_comm ON llx_societe(prefix_comm); -CREATE UNIQUE INDEX uk_societe_code_client ON llx_societe(code_client); - -CREATE INDEX idx_societe_user_creat ON llx_societe(fk_user_creat); -CREATE INDEX idx_societe_user_modif ON llx_societe(fk_user_modif); diff --git a/mssql/tables/llx_societe.sql b/mssql/tables/llx_societe.sql deleted file mode 100644 index 98b83f2ba38..00000000000 --- a/mssql/tables/llx_societe.sql +++ /dev/null @@ -1,72 +0,0 @@ --- ======================================================================== --- Copyright (C) 2000-2004 Rodolphe Quiedeville --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General [public] License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General [public] License for more details. --- --- You should have received a copy of the GNU General [public] License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- $Id$ --- $Source$ --- --- ======================================================================== - -create table llx_societe -( - rowid integer IDENTITY PRIMARY KEY, - statut tinyint DEFAULT 0, -- statut - parent integer, - tms timestamp, - datec datetime, -- creation SMALLDATETIME - datea datetime, -- activation SMALLDATETIME - nom varchar(60), -- company name - code_client varchar(15), -- code client - code_fournisseur varchar(15), -- code founisseur - code_compta varchar(15), -- code compta client - code_compta_fournisseur varchar(15), -- code compta founisseur - address varchar(255), -- company adresse - cp varchar(10), -- zipcode - ville varchar(50), -- town - fk_departement integer DEFAULT 0, -- - fk_pays integer DEFAULT 0, -- - tel varchar(20), -- phone number - fax varchar(20), -- fax number - url varchar(255), -- - email varchar(128), -- - fk_secteur integer DEFAULT 0, -- - fk_effectif integer DEFAULT 0, -- - fk_typent integer DEFAULT 0, -- - fk_forme_juridique integer DEFAULT 0, -- forme juridique INSEE - siren varchar(16), -- IDProf1: siren ou RCS pour france - siret varchar(16), -- IDProf2: siret pour france - ape varchar(16), -- IDProf3: code ape pour france - idprof4 varchar(16), -- IDProf4: nu pour france - tva_intra varchar(20), -- tva intracommunautaire - capital real, -- capital de la société - description text, -- - fk_stcomm tinyint DEFAULT 0, -- commercial statut - note text, -- - services tinyint DEFAULT 0, -- - prefix_comm varchar(5), -- prefix commercial - client tinyint DEFAULT 0, -- client 0/1/2 - fournisseur tinyint DEFAULT 0, -- fournisseur 0/1 - customer_bad tinyint DEFAULT 0, -- mauvais payeur 0/1 - customer_rate real DEFAULT 0, -- taux fiabilié client (0 à 1) - supplier_rate real DEFAULT 0, -- taux fiabilié fournisseur (0 à 1) - rubrique varchar(255), -- champ rubrique libre - fk_user_creat integer, -- utilisateur qui a créé l'info - fk_user_modif integer, -- utilisateur qui a modifié l'info - remise_client real DEFAULT 0, -- remise systématique pour le client - mode_reglement tinyint, -- mode de réglement - cond_reglement tinyint, -- condition de réglement - tva_assuj tinyint DEFAULT 1 -- assujéti ou non à la TVA -); diff --git a/mssql/tables/llx_societe_adresse_livraison.sql b/mssql/tables/llx_societe_adresse_livraison.sql deleted file mode 100644 index 1b081e1f8bd..00000000000 --- a/mssql/tables/llx_societe_adresse_livraison.sql +++ /dev/null @@ -1,39 +0,0 @@ --- ======================================================================== --- Copyright (C) 2000-2004 Rodolphe Quiedeville --- Copyright (C) 2005-2006 Houssin Régis --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General [public] License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General [public] License for more details. --- --- You should have received a copy of the GNU General [public] License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- $Id$ --- $Source$ --- --- ======================================================================== - -create table llx_societe_adresse_livraison -( - rowid integer IDENTITY PRIMARY KEY, - datec datetime, -- creation SMALLDATETIME - tms timestamp, -- modification SMALLDATETIME - label varchar(30), -- - fk_societe integer DEFAULT 0, -- - nom varchar(60), -- company name - address varchar(255), -- company adresse - cp varchar(10), -- zipcode - ville varchar(50), -- town - fk_pays integer DEFAULT 0, -- - note text, -- - fk_user_creat integer, -- utilisateur qui a créé l'info - fk_user_modif integer -- utilisateur qui a modifié l'info -); \ No newline at end of file diff --git a/mssql/tables/llx_societe_commerciaux.sql b/mssql/tables/llx_societe_commerciaux.sql deleted file mode 100644 index dbad3ecb0f9..00000000000 --- a/mssql/tables/llx_societe_commerciaux.sql +++ /dev/null @@ -1,30 +0,0 @@ --- ======================================================================== --- Copyright (C) 2005 Rodolphe Quiedeville --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General [public] License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General [public] License for more details. --- --- You should have received a copy of the GNU General [public] License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- $Id$ --- $Source$ --- --- ======================================================================== - -create table llx_societe_commerciaux -( - rowid integer IDENTITY PRIMARY KEY, - fk_soc integer, - fk_user integer, -); - -CREATE UNIQUE INDEX fk_soc_fk_user ON llx_societe_commerciaux(fk_soc, fk_user) diff --git a/mssql/tables/llx_societe_consult.sql b/mssql/tables/llx_societe_consult.sql deleted file mode 100644 index 7d1311c131c..00000000000 --- a/mssql/tables/llx_societe_consult.sql +++ /dev/null @@ -1,32 +0,0 @@ --- ======================================================================== --- Copyright (C) 2005 Rodolphe Quiedeville --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General [public] License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General [public] License for more details. --- --- You should have received a copy of the GNU General [public] License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- $Id$ --- $Source$ --- --- ======================================================================== --- --- Le type InnoDB n'est pas nécessaire pour cette table --- -create table llx_societe_consult -( - fk_soc integer, - fk_user integer, - datec timestamp, - action char check (action in ('w','r')) -); - diff --git a/mssql/tables/llx_societe_prices.sql b/mssql/tables/llx_societe_prices.sql deleted file mode 100644 index 193110417e8..00000000000 --- a/mssql/tables/llx_societe_prices.sql +++ /dev/null @@ -1,31 +0,0 @@ --- ======================================================================== --- Copyright (C) 2007 Rodolphe Quiedeville --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General [public] License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General [public] License for more details. --- --- You should have received a copy of the GNU General [public] License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- $Id$ --- $Source$ --- --- ======================================================================== - -create table llx_societe_prices -( - rowid integer IDENTITY PRIMARY KEY, - fk_soc integer DEFAULT 0, - tms timestamp NOT NULL, - datec datetime, - fk_user_author integer, - price_level tinyint DEFAULT 1 -); diff --git a/mssql/tables/llx_societe_remise.sql b/mssql/tables/llx_societe_remise.sql deleted file mode 100644 index 4e0d51c4e67..00000000000 --- a/mssql/tables/llx_societe_remise.sql +++ /dev/null @@ -1,35 +0,0 @@ --- ======================================================================== --- Copyright (C) 2000-2004 Rodolphe Quiedeville --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- $Id$ --- $Source$ --- --- Historique evolution de la remise relative des tiers --- ======================================================================== - -create table llx_societe_remise -( - rowid integer IDENTITY PRIMARY KEY, - fk_soc integer NOT NULL, - tms timestamp, - datec datetime, -- creation SMALLDATETIME - fk_user_author integer, -- utilisateur qui a créé l'info - remise_client real DEFAULT 0, -- remise systématique pour le client - note text - -); - diff --git a/mssql/tables/llx_societe_remise_except.key.sql b/mssql/tables/llx_societe_remise_except.key.sql deleted file mode 100644 index 8368ee89e52..00000000000 --- a/mssql/tables/llx_societe_remise_except.key.sql +++ /dev/null @@ -1,39 +0,0 @@ --- ============================================================================ --- Copyright (C) 2004 Rodolphe Quiedeville --- Copyright (C) 2005-2007 Laurent Destailleur --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General [public] License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General [public] License for more details. --- --- You should have received a copy of the GNU General [public] License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- $Id$ --- $Source$ --- --- Remises exceptionnelles --- --- ============================================================================ - - -CREATE INDEX idx_societe_remise_except_fk_user ON llx_societe_remise_except(fk_user); -CREATE INDEX idx_societe_remise_except_fk_soc ON llx_societe_remise_except(fk_soc); -CREATE INDEX idx_societe_remise_except_fk_facture ON llx_societe_remise_except(fk_facture); -CREATE INDEX idx_societe_remise_except_fk_facture_source ON llx_societe_remise_except(fk_facture_source); - - -ALTER TABLE llx_societe_remise_except ADD CONSTRAINT fk_societe_remise_fk_user FOREIGN KEY (fk_user) REFERENCES llx_user (rowid); -ALTER TABLE llx_societe_remise_except ADD CONSTRAINT fk_societe_remise_fk_soc FOREIGN KEY (fk_soc) REFERENCES llx_societe (rowid); -ALTER TABLE llx_societe_remise_except ADD CONSTRAINT fk_societe_remise_fk_facture FOREIGN KEY (fk_facture) REFERENCES llx_facturedet (rowid); -ALTER TABLE llx_societe_remise_except ADD CONSTRAINT fk_societe_remise_fk_facture_source FOREIGN KEY (fk_facture_source) REFERENCES llx_facture (rowid); - - - diff --git a/mssql/tables/llx_societe_remise_except.sql b/mssql/tables/llx_societe_remise_except.sql deleted file mode 100644 index 645356e6e36..00000000000 --- a/mssql/tables/llx_societe_remise_except.sql +++ /dev/null @@ -1,38 +0,0 @@ --- ============================================================================ --- Copyright (C) 2004 Rodolphe Quiedeville --- Copyright (C) 2006-2007 Laurent Destailleur --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General [public] License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General [public] License for more details. --- --- You should have received a copy of the GNU General [public] License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- $Id$ --- $Source$ --- --- Remises exceptionnelles --- ============================================================================ - -create table llx_societe_remise_except -( - rowid integer IDENTITY PRIMARY KEY, - fk_soc integer NOT NULL, -- client - datec datetime, - amount_ht float NOT NULL, - amount_tva float DEFAULT 0 NOT NULL, - amount_ttc float DEFAULT 0 NOT NULL, - tva_tx float DEFAULT 0 NOT NULL, - fk_user integer NOT NULL, - fk_facture integer, - fk_facture_source integer, - description varchar(255) NOT NULL -); diff --git a/mssql/tables/llx_societe_rib.sql b/mssql/tables/llx_societe_rib.sql deleted file mode 100644 index 7d160bca707..00000000000 --- a/mssql/tables/llx_societe_rib.sql +++ /dev/null @@ -1,44 +0,0 @@ --- ============================================================================= --- Copyright (C) 2000-2004 Rodolphe Quiedeville --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General [public] License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General [public] License for more details. --- --- You should have received a copy of the GNU General [public] License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- $Id$ --- $Source$ --- --- --- --- ============================================================================= - -create table llx_societe_rib -( - rowid integer IDENTITY PRIMARY KEY, - fk_soc integer NOT NULL, - datec datetime, - tms timestamp, - label varchar(30), - bank varchar(255), - code_banque varchar(7), - code_guichet varchar(6), - number varchar(255), - cle_rib varchar(5), - bic varchar(10), - iban_prefix varchar(5), - domiciliation varchar(255), - proprio varchar(60), - adresse_proprio varchar(255) - - -); diff --git a/mssql/tables/llx_socpeople.key.sql b/mssql/tables/llx_socpeople.key.sql deleted file mode 100644 index dd475aa6b44..00000000000 --- a/mssql/tables/llx_socpeople.key.sql +++ /dev/null @@ -1,25 +0,0 @@ --- ============================================================================ --- Copyright (C) 2005 Laurent Destailleur --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General [public] License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General [public] License for more details. --- --- You should have received a copy of the GNU General [public] License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- $Id$ --- $Source$ --- --- ============================================================================ - - -CREATE INDEX idx_socpeople_fk_soc ON llx_socpeople(fk_soc); -ALTER TABLE llx_socpeople ADD CONSTRAINT fk_socpeople_fk_soc FOREIGN KEY (fk_soc) REFERENCES llx_societe (rowid); diff --git a/mssql/tables/llx_socpeople.sql b/mssql/tables/llx_socpeople.sql deleted file mode 100644 index 9d7fc4c583f..00000000000 --- a/mssql/tables/llx_socpeople.sql +++ /dev/null @@ -1,47 +0,0 @@ --- ============================================================================ --- Copyright (C) 2001-2004 Rodolphe Quiedeville --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General [public] License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General [public] License for more details. --- --- You should have received a copy of the GNU General [public] License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- $Id$ --- $Source$ --- --- ============================================================================ - -create table llx_socpeople -( - rowid integer IDENTITY PRIMARY KEY, - datec datetime, - tms timestamp, - fk_soc integer, -- lien vers la societe - civilite varchar(6), - name varchar(50), - firstname varchar(50), - address varchar(255), - cp varchar(25), - ville varchar(255), - fk_pays integer DEFAULT 0, - birthday SMALLDATETIME, - poste varchar(80), - phone varchar(30), - phone_perso varchar(30), - phone_mobile varchar(30), - fax varchar(30), - email varchar(255), - jabberid varchar(255), - fk_user_creat integer DEFAULT 0, -- user qui a créé l'enregistrement - fk_user_modif integer, - note text -); diff --git a/mssql/tables/llx_socstatutlog.sql b/mssql/tables/llx_socstatutlog.sql deleted file mode 100644 index 944e0a80494..00000000000 --- a/mssql/tables/llx_socstatutlog.sql +++ /dev/null @@ -1,30 +0,0 @@ --- ======================================================================== --- Copyright (C) 2002-2003 Rodolphe Quiedeville --- --- $Id$ --- $Source$ --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General [public] License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General [public] License for more details. --- --- You should have received a copy of the GNU General [public] License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- ======================================================================== - -create table llx_socstatutlog -( - id integer IDENTITY PRIMARY KEY, - datel datetime, - fk_soc integer, - fk_statut integer, - author varchar(30) -); diff --git a/mssql/tables/llx_stock_mouvement.sql b/mssql/tables/llx_stock_mouvement.sql deleted file mode 100644 index 82e6c3cad5e..00000000000 --- a/mssql/tables/llx_stock_mouvement.sql +++ /dev/null @@ -1,38 +0,0 @@ --- ============================================================================ --- Copyright (C) 2003 Rodolphe Quiedeville --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General [public] License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General [public] License for more details. --- --- You should have received a copy of the GNU General [public] License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- $Id$ --- $Source$ --- --- ============================================================================ - -create table llx_stock_mouvement -( - rowid integer IDENTITY PRIMARY KEY, - tms timestamp, - datem datetime, - fk_product integer NOT NULL, - fk_entrepot integer NOT NULL, - value integer, - price float(13) DEFAULT 0, - type_mouvement smallint, - fk_user_author integer - - --key(fk_product), - --key(fk_entrepot) -); - diff --git a/mssql/tables/llx_stock_valorisation.sql b/mssql/tables/llx_stock_valorisation.sql deleted file mode 100644 index 5e944b0fe05..00000000000 --- a/mssql/tables/llx_stock_valorisation.sql +++ /dev/null @@ -1,39 +0,0 @@ --- ============================================================================ --- Copyright (C) 2006 Rodolphe Quiedeville --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General [public] License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General [public] License for more details. --- --- You should have received a copy of the GNU General [public] License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- $Id$ --- $Source$ --- --- ============================================================================ - -create table llx_stock_valorisation -( - rowid integer IDENTITY PRIMARY KEY, - tms timestamp, -- SMALLDATETIME technique mise à jour automatiquement - date_valo datetime, -- SMALLDATETIME de valorisation - fk_product integer NOT NULL, -- id du produit concerne par l'operation - qty_ope float(9), -- quantité de l'operation - price_ope float(12), -- prix unitaire du produit concerne par l'operation - valo_ope float(12), -- valorisation de l'operation - price_pmp float(12), -- valeur PMP de l'operation - qty_stock float(9) DEFAULT 0, -- qunatite en stock - valo_pmp float(12), -- valorisation du stock en PMP - fk_stock_mouvement integer -- id du mouvement de stock - - --key(fk_product) -); - diff --git a/mssql/tables/llx_transaction_bplc.sql b/mssql/tables/llx_transaction_bplc.sql deleted file mode 100644 index 441a430abfd..00000000000 --- a/mssql/tables/llx_transaction_bplc.sql +++ /dev/null @@ -1,36 +0,0 @@ --- =================================================================== --- Copyright (C) 2001-2002 Rodolphe Quiedeville --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General [public] License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General [public] License for more details. --- --- You should have received a copy of the GNU General [public] License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- $Id$ --- $Source$ --- --- =================================================================== - -create table llx_transaction_bplc -( - rowid integer IDENTITY PRIMARY KEY, - tms timestamp, - ipclient varchar(20), - num_transaction varchar(10), - date_transaction varchar(10), - heure_transaction varchar(10), - num_autorisation varchar(10), - cle_acceptation varchar(5), - code_retour integer, - ref_commande integer - -); diff --git a/mssql/tables/llx_tva.sql b/mssql/tables/llx_tva.sql deleted file mode 100644 index b02a72754fc..00000000000 --- a/mssql/tables/llx_tva.sql +++ /dev/null @@ -1,32 +0,0 @@ --- =================================================================== --- Copyright (C) 2002-2003 Rodolphe Quiedeville --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General [public] License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General [public] License for more details. --- --- You should have received a copy of the GNU General [public] License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- $Id$ --- $Source$ --- --- =================================================================== - -create table llx_tva -( - rowid integer IDENTITY PRIMARY KEY, - tms timestamp, - datep SMALLDATETIME, -- SMALLDATETIME de paiement - datev SMALLDATETIME, -- SMALLDATETIME de valeur - amount real NOT NULL DEFAULT 0, - label varchar(255), - note text -); diff --git a/mssql/tables/llx_user.key.sql b/mssql/tables/llx_user.key.sql deleted file mode 100644 index d8e62e06612..00000000000 --- a/mssql/tables/llx_user.key.sql +++ /dev/null @@ -1,31 +0,0 @@ --- ============================================================================ --- Copyright (C) 2003 Rodolphe Quiedeville --- Copyright (C) 2006-2007 Laurent Destailleur --- Copyright (C) 2007 Regis Houssin --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General [public] License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General [public] License for more details. --- --- You should have received a copy of the GNU General [public] License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- $Id$ --- $Source$ --- --- =========================================================================== - - -CREATE UNIQUE INDEX uk_user_login ON llx_user(login); - -CREATE INDEX uk_user_fk_societe ON llx_user(fk_societe); - -CREATE UNIQUE INDEX uk_user_fk_socpeople ON llx_user(fk_socpeople); -CREATE UNIQUE INDEX uk_user_fk_member ON llx_user(fk_member); diff --git a/mssql/tables/llx_user.sql b/mssql/tables/llx_user.sql deleted file mode 100644 index 706d043cacc..00000000000 --- a/mssql/tables/llx_user.sql +++ /dev/null @@ -1,96 +0,0 @@ --- ============================================================================ --- Copyright (C) 2001-2003 Rodolphe Quiedeville --- Copyright (C) 2006-2007 Laurent Destailleur --- Copyright (C) 2007 Regis Houssin --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General [public] License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General [public] License for more details. --- --- You should have received a copy of the GNU General [public] License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- $Id$ --- $Source$ --- --- =========================================================================== - -create table llx_user -( - rowid integer IDENTITY PRIMARY KEY, - datec datetime, - tms timestamp, - login varchar(24) NOT NULL, - pass varchar(32), - pass_crypted varchar(128), - pass_temp varchar(32), -- temporary password when asked for forget password - name varchar(50), - firstname varchar(50), - office_phone varchar(20), - office_fax varchar(20), - user_mobile varchar(20), - email varchar(255), - admin smallint DEFAULT 0, - webcal_login varchar(25), - module_comm smallint DEFAULT 1, - module_compta smallint DEFAULT 1, - fk_societe integer, - fk_socpeople integer, - fk_member integer, - note text DEFAULT NULL, - datelastlogin datetime, - datepreviouslogin datetime, - egroupware_id integer, - ldap_sid varchar(255) DEFAULT NULL, - statut tinyint DEFAULT 1, - lang varchar(6) -); - -set ANSI_NULLS ON -set QUOTED_IDENTIFIER ON -GO - -CREATE FUNCTION [dbo].[unix_timestamp] -( - @SMALLDATETIME datetime -) -RETURNS datetime -AS -BEGIN - DECLARE @Result integer - - --SET @Result = NULL - --IF @SMALLDATETIME IS NOT NULL SET @Result = DATEDIFF(s, '19700101', @SMALLDATETIME) - - RETURN @SMALLDATETIME -END - -GO - -set ANSI_NULLS ON -set QUOTED_IDENTIFIER ON -GO - -CREATE FUNCTION [dbo].[from_unixtime] -( - @Epoch integer -) -RETURNS datetime -AS -BEGIN - RETURN DATEADD(s, @Epoch, '19700101') - -END - -GO - -set ANSI_NULLS ON -set QUOTED_IDENTIFIER ON -GO diff --git a/mssql/tables/llx_user_alert.sql b/mssql/tables/llx_user_alert.sql deleted file mode 100644 index 3798dd708d0..00000000000 --- a/mssql/tables/llx_user_alert.sql +++ /dev/null @@ -1,30 +0,0 @@ --- ============================================================================ --- Copyright (C) 2004 Rodolphe Quiedeville --- Copyright (C) 2004 Laurent Destailleur --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General [public] License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General [public] License for more details. --- --- You should have received a copy of the GNU General [public] License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- $Id$ --- $Source$ --- --- ============================================================================ - -create table llx_user_alert -( - rowid integer IDENTITY PRIMARY KEY, - type integer, - fk_contact integer, -- pointe sur llx_socpeople - fk_user integer -); diff --git a/mssql/tables/llx_user_clicktodial.sql b/mssql/tables/llx_user_clicktodial.sql deleted file mode 100644 index c2ce1953579..00000000000 --- a/mssql/tables/llx_user_clicktodial.sql +++ /dev/null @@ -1,32 +0,0 @@ --- ============================================================================ --- Copyright (C) 2005 Rodolphe Quiedeville --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General [public] License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General [public] License for more details. --- --- You should have received a copy of the GNU General [public] License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- $Id$ --- $Source$ --- --- =========================================================================== --- --- Stockage des informations relatives au click to dial --- -create table llx_user_clicktodial -( - fk_user integer PRIMARY KEY, - login varchar(32), - pass varchar(64), - poste varchar(20) - -); diff --git a/mssql/tables/llx_user_entrepot.sql b/mssql/tables/llx_user_entrepot.sql deleted file mode 100644 index 04ffe01488d..00000000000 --- a/mssql/tables/llx_user_entrepot.sql +++ /dev/null @@ -1,30 +0,0 @@ --- ============================================================================ --- Copyright (C) 2006 Rodolphe Quiedeville --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General [public] License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General [public] License for more details. --- --- You should have received a copy of the GNU General [public] License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- $Id$ --- $Source$ --- --- ============================================================================ - -create table llx_user_entrepot -( - rowid integer IDENTITY PRIMARY KEY, - fk_entrepot integer, -- pointe sur llx_entrepot - fk_user integer, -- pointe sur llx_user - consult tinyint, - send tinyint -); diff --git a/mssql/tables/llx_user_param.sql b/mssql/tables/llx_user_param.sql deleted file mode 100644 index 32c7cfd6a27..00000000000 --- a/mssql/tables/llx_user_param.sql +++ /dev/null @@ -1,32 +0,0 @@ --- ============================================================================ --- Copyright (C) 2004 Rodolphe Quiedeville --- Copyright (C) 2004 Laurent Destailleur --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General [public] License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General [public] License for more details. --- --- You should have received a copy of the GNU General [public] License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- $Id$ --- $Source$ --- --- =========================================================================== - -create table llx_user_param -( - fk_user integer NOT NULL, - page varchar(255) NOT NULL, - param varchar(64) NOT NULL, - value varchar(255) NOT NULL, - - UNIQUE (fk_user,page,param) -); diff --git a/mssql/tables/llx_user_rights.key.sql b/mssql/tables/llx_user_rights.key.sql deleted file mode 100644 index 18556417a98..00000000000 --- a/mssql/tables/llx_user_rights.key.sql +++ /dev/null @@ -1,29 +0,0 @@ --- ============================================================================ --- Copyright (C) 2003 Rodolphe Quiedeville --- Copyright (C) 2005 Laurent Destailleur --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General [public] License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General [public] License for more details. --- --- You should have received a copy of the GNU General [public] License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- $Id$ --- $Source$ --- --- =========================================================================== - - --- Supprimme orhpelins pour permettre montée de la clé --- V4 DELETE llx_user_rights FROM llx_user_rights LEFT JOIN llx_user ON llx_user_rights.fk_user = llx_user.rowid WHERE llx_user.rowid IS NULL; - - -ALTER TABLE llx_user_rights ADD CONSTRAINT fk_user_rights_fk_user_user FOREIGN KEY (fk_user) REFERENCES llx_user (rowid); diff --git a/mssql/tables/llx_user_rights.sql b/mssql/tables/llx_user_rights.sql deleted file mode 100644 index dd3c21b3f02..00000000000 --- a/mssql/tables/llx_user_rights.sql +++ /dev/null @@ -1,30 +0,0 @@ --- ============================================================================ --- Copyright (C) 2003 Rodolphe Quiedeville --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General [public] License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General [public] License for more details. --- --- You should have received a copy of the GNU General [public] License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- $Id$ --- $Source$ --- --- =========================================================================== - -create table llx_user_rights -( - rowid integer IDENTITY PRIMARY KEY, - fk_user integer NOT NULL, - fk_id integer NOT NULL, -); - -CREATE UNIQUE INDEX fk_user_fk_id ON llx_user_rights(fk_user, fk_id) diff --git a/mssql/tables/llx_usergroup.sql b/mssql/tables/llx_usergroup.sql deleted file mode 100644 index 763af5cb1cc..00000000000 --- a/mssql/tables/llx_usergroup.sql +++ /dev/null @@ -1,32 +0,0 @@ --- ============================================================================ --- Copyright (C) 2005 Rodolphe Quiedeville --- Copyright (C) 2005 Laurent Destailleur --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General [public] License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General [public] License for more details. --- --- You should have received a copy of the GNU General [public] License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- $Id$ --- $Source$ --- --- =========================================================================== - -create table llx_usergroup -( - rowid integer IDENTITY PRIMARY KEY, - datec datetime, - tms timestamp, - nom varchar(255) NOT NULL UNIQUE, - note text - -); diff --git a/mssql/tables/llx_usergroup_rights.key.sql b/mssql/tables/llx_usergroup_rights.key.sql deleted file mode 100644 index e10b0b5ed46..00000000000 --- a/mssql/tables/llx_usergroup_rights.key.sql +++ /dev/null @@ -1,28 +0,0 @@ --- ============================================================================ --- Copyright (C) 2005 Laurent Destailleur --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General [public] License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General [public] License for more details. --- --- You should have received a copy of the GNU General [public] License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- $Id$ --- $Source$ --- --- =========================================================================== - - --- Supprime orhpelins pour permettre montée de la clé --- V4 DELETE llx_usergroup_rights FROM llx_usergroup_rights LEFT JOIN llx_usergroup ON llx_usergroup_rights.fk_usergroup = llx_usergroup.rowid WHERE llx_usergroup.rowid IS NULL; - - -ALTER TABLE llx_usergroup_rights ADD CONSTRAINT fk_usergroup_rights_fk_usergroup FOREIGN KEY (fk_usergroup) REFERENCES llx_usergroup (rowid); diff --git a/mssql/tables/llx_usergroup_rights.sql b/mssql/tables/llx_usergroup_rights.sql deleted file mode 100644 index c925270ab15..00000000000 --- a/mssql/tables/llx_usergroup_rights.sql +++ /dev/null @@ -1,31 +0,0 @@ --- ============================================================================ --- Copyright (C) 2005 Laurent Destailleur --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General [public] License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General [public] License for more details. --- --- You should have received a copy of the GNU General [public] License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- $Id$ --- $Source$ --- --- =========================================================================== - -create table llx_usergroup_rights -( - rowid integer IDENTITY PRIMARY KEY, - fk_usergroup integer NOT NULL, - fk_id integer NOT NULL, - - UNIQUE(fk_usergroup,fk_id) -); - diff --git a/mssql/tables/llx_usergroup_user.sql b/mssql/tables/llx_usergroup_user.sql deleted file mode 100644 index 14bbdf183cc..00000000000 --- a/mssql/tables/llx_usergroup_user.sql +++ /dev/null @@ -1,30 +0,0 @@ --- ============================================================================ --- Copyright (C) 2005 Rodolphe Quiedeville --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General [public] License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General [public] License for more details. --- --- You should have received a copy of the GNU General [public] License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- $Id$ --- $Source$ --- --- =========================================================================== - -create table llx_usergroup_user -( - rowid integer IDENTITY PRIMARY KEY, - fk_user integer NOT NULL, - fk_usergroup integer NOT NULL, - - UNIQUE(fk_user,fk_usergroup) -); diff --git a/mssql/tables/llx_voyage.sql b/mssql/tables/llx_voyage.sql deleted file mode 100644 index a1bed07dff5..00000000000 --- a/mssql/tables/llx_voyage.sql +++ /dev/null @@ -1,45 +0,0 @@ --- =================================================================== --- Copyright (C) 2001-2002 Rodolphe Quiedeville --- --- $Id$ --- $Source$ --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General [public] License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General [public] License for more details. --- --- You should have received a copy of the GNU General [public] License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- insert into llx_voyage (date_depart, date_arrivee, amount, depart, arrivee, fk_reduc) --- values ('2002-04-21 12:05','2002-04-21 15:25',26.8,'Paris','Auray',1) - --- insert into llx_voyage (date_depart, date_arrivee, amount, depart, arrivee, fk_reduc) --- values ('2002-04-23 15:42','2002-04-23 19:10',26.8,'Auray','Paris',1) --- =================================================================== - -create table llx_voyage -( - rowid integer IDENTITY PRIMARY KEY, - datec datetime, - - dateo SMALLDATETIME, -- SMALLDATETIME operation - date_depart datetime, -- SMALLDATETIME du voyage - date_arrivee datetime, -- SMALLDATETIME du voyage - amount real NOT NULL DEFAULT 0, -- prix du billet - reduction real NOT NULL DEFAULT 0, -- montant de la reduction obtenue - depart varchar(255), - arrivee varchar(255), - fk_type smallint, -- Train, Avion, Bateaux - fk_reduc integer, - distance integer, -- distance en kilometre - dossier varchar(50), -- numero de dossier - note text -); diff --git a/mssql/tables/llx_voyage_reduc.sql b/mssql/tables/llx_voyage_reduc.sql deleted file mode 100644 index 8556853bdd8..00000000000 --- a/mssql/tables/llx_voyage_reduc.sql +++ /dev/null @@ -1,35 +0,0 @@ --- =================================================================== --- Copyright (C) 2001-2002 Rodolphe Quiedeville --- --- $Id$ --- $Source$ --- --- This program is free software; you can redistribute it and/or modify --- it under the terms of the GNU General [public] License as published by --- the Free Software Foundation; either version 2 of the License, or --- (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General [public] License for more details. --- --- You should have received a copy of the GNU General [public] License --- along with this program; if not, write to the Free Software --- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --- --- =================================================================== - -create table llx_voyage_reduc -( - rowid integer IDENTITY PRIMARY KEY, - datec datetime, - datev SMALLDATETIME, -- SMALLDATETIME de valeur - date_debut SMALLDATETIME, -- SMALLDATETIME operation - date_fin SMALLDATETIME, - amount real NOT NULL DEFAULT 0, - label varchar(255), - numero varchar(255), - fk_type smallint, -- Train, Avion, Bateaux - note text -); diff --git a/mysql/README b/mysql/README index 303b5cd0cb1..39ebb8a53f2 100644 --- a/mysql/README +++ b/mysql/README @@ -1,8 +1,9 @@ -# Makefile Options -##################### +# README +######## -- mysql.sql Génère un fichier sql unique pour l'installation (Contient les - ordres de création des tables + clés et index + données) - -- load Charge les données minimales définies dans data/data.sql +This directory contains: +data: A directory with SQL script to add Dolibarr initial data. +migration: A directory with SQL script to migrate Dolibarr database from + one version to another version. +tables: A directory with all files with create tables and index orders. diff --git a/pgsql/Makefile b/pgsql/Makefile deleted file mode 100644 index 18f507145fe..00000000000 --- a/pgsql/Makefile +++ /dev/null @@ -1,92 +0,0 @@ -# Copyright (C) 2001-2002 Rodolphe Quiedeville -# Copyright (C) 2002-2003 Éric Seigne -# Copyright (C) 2004 Benoit Mortier -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. -# -# $Id$ -# $Source$ -# -# ********************************************************************** -# Ce makefile permet d'initialiser la base de donnée de dolibarr en manuel. -# Il n'est utile que si vous n'utilisez pas l'installateur automatique -# accessible à http://localhost/dolibarr/install/ -# -# Pour une installation manuelle, créer la base dolibarr puis faire: -# make pgsql.sql -# mysql dolibarr < pgsql.sql -# -# Le script pgsql.sql cotient tous le ordres sql pour créer la base -# Tables + Index et Clés + Données -# -# ********************************************************************** - -SQL=psql -BASE=dolibarr -OPTIONS=-U postgres -OWNER=dolibarradm -OWNERPASS=azaz -FIND=find -#FIND="c:/Program files/cygwin/bin/find" - - -TABLES=$(shell $(FIND) tables/ -name "*sql") - - -all: - cat README - -load: - $(SQL) $(OPTIONS) $(BASE) < data/data.sql - -dev: - cd data \ - && make dev - - - -drop: droppriv dropdb dropuser - -droppriv: - $(SQL) $(OPTIONS) template1 -c "revoke all privileges on database $(BASE) from $(OWNER) ; " - -dropuser: - $(SQL) $(OPTIONS) template1 -c "drop user $(OWNER) ; " - -dropdb: - $(SQL) $(OPTIONS) template1 -c "drop database $(BASE) ; " - - - -create: createuser createdb createpriv - -createuser: - $(SQL) $(OPTIONS) template1 -c "create user $(OWNER) with UNENCRYPTED PASSWORD '$(OWNERPASS)' ; " - -createdb: - $(SQL) $(OPTIONS) template1 -c "create database $(BASE) with owner = $(OWNER) ; " - -createpriv: - $(SQL) $(OPTIONS) template1 -c "grant all privileges on database $(BASE) to $(OWNER) ; " - - -pgsql.sql: $(TABLES) data/data.sql Makefile - echo "-- Fichier généré par make pgsql.sql" > pgsql.sql - echo "-- Contient les ordres de creation des tables + les clés + les données" >> pgsql.sql - echo "-- ;" >> pgsql.sql - $(FIND) tables/ -name "*sql" | grep -v "key.sql" | xargs cat | grep -v "^--" | cut -d "-" -f 1 >> pgsql.sql - $(FIND) tables/ -name "*sql" | grep "key.sql" | xargs cat | grep -v "^--" | cut -d "-" -f 1 >> pgsql.sql - $(FIND) functions/ -name "*sql" | xargs cat | grep -v "^--" | cut -d "-" -f 1 >> pgsql.sql - cat data/data.sql | grep -v ^-- >> pgsql.sql diff --git a/pgsql/README b/pgsql/README index f4140bd210a..c65696b98bf 100644 --- a/pgsql/README +++ b/pgsql/README @@ -1,7 +1,9 @@ -# Makefile Options -##################### +# README +######## -- pgsql.sql Génère un fichier sql unique pour l'installation (Contient les - ordres de création des tables + clés et index + données) +This directory contains files to create functions required +to have PgSql database being compatible with Dolibarr. -- load Charge les données minimales définies dans data/data.sql +Note that all scripts to create database and to load initial data +are the mysql scripts that are converted on the fly by the driver +to be compatible with PgSql.