/[dolibarr]/dolibarr/htdocs/master.inc.php
ViewVC logotype

Diff of /dolibarr/htdocs/master.inc.php

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.71 by simontosser, Tue Sep 6 07:11:19 2005 UTC revision 1.72 by eldy, Sat Sep 10 14:28:07 2005 UTC
# Line 295  $conf->actionscomm->dir_output=DOL_DATA_ Line 295  $conf->actionscomm->dir_output=DOL_DATA_
295  /*  /*
296   * Modification de quelques variable de conf en fonction des Constantes   * Modification de quelques variable de conf en fonction des Constantes
297   */   */
298    
299    // conf->use_preview_tabs
300    $conf->use_preview_tabs=1;
301    if (isset($conf->global->USE_PREVIEW_TABS)) $conf->use_preview_tabs=$conf->global->USE_PREVIEW_TABS;
302    
303    // conf->monnaie
304  if (! $conf->global->MAIN_MONNAIE) $conf->global->MAIN_MONNAIE='EUR';    if (! $conf->global->MAIN_MONNAIE) $conf->global->MAIN_MONNAIE='EUR';  
305  $conf->monnaie=$conf->global->MAIN_MONNAIE;  $conf->monnaie=$conf->global->MAIN_MONNAIE;
306    
307  /*  // $conf->compta->mode = Option du module Compta: Defini le mode de calcul des etats comptables (CA,...)
  * Option du module Compta: Defini le mode de calcul des etats comptables (CA,...)  
  */  
308  $conf->compta->mode = 'RECETTES-DEPENSES';  // Par défaut  $conf->compta->mode = 'RECETTES-DEPENSES';  // Par défaut
309  if (defined('COMPTA_MODE') && COMPTA_MODE) {  if (defined('COMPTA_MODE') && COMPTA_MODE) {
310          // Peut etre 'RECETTES-DEPENSES' ou 'CREANCES-DETTES'          // Peut etre 'RECETTES-DEPENSES' ou 'CREANCES-DETTES'
311      $conf->compta->mode = COMPTA_MODE;      $conf->compta->mode = COMPTA_MODE;
312  }  }
313    
314  /* \todo Ajouter une option Gestion de la TVA dans le module compta qui permet de désactiver la fonction TVA  // $conf->defaulttx
  * (pour particuliers ou libéraux en franchise)  
  * En attendant, valeur forcée à 1  
  */  
 $conf->compta->tva=1;  
   
 /*  
  * Option du module Facture  
  */  
315  if (defined('FACTURE_TVAOPTION') && FACTURE_TVAOPTION == 'franchise') {  if (defined('FACTURE_TVAOPTION') && FACTURE_TVAOPTION == 'franchise') {
316          $conf->defaulttx='0';           // Taux par défaut des factures clients          $conf->defaulttx='0';           // Taux par défaut des factures clients
317  }  }
# Line 323  else { Line 319  else {
319          $conf->defaulttx='';            // Pas de taux par défaut des factures clients, le premier sera pris          $conf->defaulttx='';            // Pas de taux par défaut des factures clients, le premier sera pris
320  }  }
321    
322  /*  // $conf->liste_limit = constante de taille maximale des listes
  * SIZE_LISTE_LIMIT : constante de taille maximale des listes  
  */  
323  if (! $conf->global->SIZE_LISTE_LIMIT) $conf->global->SIZE_LISTE_LIMIT=20;  if (! $conf->global->SIZE_LISTE_LIMIT) $conf->global->SIZE_LISTE_LIMIT=20;
324  $conf->liste_limit=$conf->global->SIZE_LISTE_LIMIT;  $conf->liste_limit=$conf->global->SIZE_LISTE_LIMIT;
325    
326  /*  // $conf->theme et $conf->css
  * MAIN_THEME : theme  
  */  
327  if (! $conf->global->MAIN_THEME) $conf->global->MAIN_THEME="eldy";  if (! $conf->global->MAIN_THEME) $conf->global->MAIN_THEME="eldy";
328  $conf->theme=$conf->global->MAIN_THEME;  $conf->theme=$conf->global->MAIN_THEME;
329  $conf->css  = "theme/".$conf->theme."/".$conf->theme.".css";  $conf->css  = "theme/".$conf->theme."/".$conf->theme.".css";
# Line 349  if (defined('MAILING_EMAIL_FROM')) Line 341  if (defined('MAILING_EMAIL_FROM'))
341  }  }
342  else $conf->mailing->email_from=$conf->email_from;  else $conf->mailing->email_from=$conf->email_from;
343    
344    // $conf->adherent->email_resil, ...
345  if (defined("MAIN_MAIL_RESIL"))  if (defined("MAIN_MAIL_RESIL"))
346  {  {
347    $conf->adherent->email_resil=MAIN_MAIL_RESIL;    $conf->adherent->email_resil=MAIN_MAIL_RESIL;
# Line 382  if (defined("MAIN_MAIL_NEW_SUBJECT")) Line 375  if (defined("MAIN_MAIL_NEW_SUBJECT"))
375    $conf->adherent->email_new_subject=MAIN_MAIL_NEW_SUBJECT;    $conf->adherent->email_new_subject=MAIN_MAIL_NEW_SUBJECT;
376  }  }
377    
378    /* \todo Ajouter une option Gestion de la TVA dans le module compta qui permet de désactiver la fonction TVA
379     * (pour particuliers ou libéraux en franchise)
380     * En attendant, valeur forcée à 1
381     */
382    $conf->compta->tva=1;
383    
384  // Delai de tolerance des alertes  // Delai de tolerance des alertes
385  $conf->actions->warning_delay=7*24*60*60;   // 1 semaine  $conf->actions->warning_delay=7*24*60*60;   // 1 semaine
386  $conf->commande->traitement->warning_delay=2*24*60*60;  $conf->commande->traitement->warning_delay=2*24*60*60;

Legend:
Removed from v.1.71  
changed lines
  Added in v.1.72

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26