[ Index ]
 

Code source de Dolibarr 2.0.1

Accédez au Source d'autres logiciels libres

Classes | Fonctions | Variables | Constantes | Tables

title

Body

[fermer]

/htdocs/lib/ -> invoice.lib.php (source)

   1  <?php
   2  /* Copyright (C) 2005 Laurent Destailleur  <eldy@users.sourceforge.net>
   3   *
   4   * This program is free software; you can redistribute it and/or modify
   5   * it under the terms of the GNU General Public License as published by
   6   * the Free Software Foundation; either version 2 of the License, or
   7   * (at your option) any later version.
   8   *
   9   * This program is distributed in the hope that it will be useful,
  10   * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  12   * GNU General Public License for more details.
  13   *
  14   * You should have received a copy of the GNU General Public License
  15   * along with this program; if not, write to the Free Software
  16   * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  17   * or see http://www.gnu.org/
  18   *
  19   * $Id: invoice.lib.php,v 1.1 2005/12/03 17:19:28 eldy Exp $
  20   * $Source: /cvsroot/dolibarr/dolibarr/htdocs/lib/invoice.lib.php,v $
  21   */
  22  
  23  /**
  24          \file       htdocs/lib/invoice.lib.php
  25          \brief      Ensemble de fonctions de base pour le module factures
  26          \version    $Revision: 1.1 $
  27  
  28          Ensemble de fonctions de base de dolibarr sous forme d'include
  29  */
  30  
  31  function facture_prepare_head($fac)
  32  {
  33      global $langs, $conf;
  34      $h = 0;
  35      $head = array();
  36      
  37      $head[$h][0] = DOL_URL_ROOT.'/compta/facture.php?facid='.$fac->id;
  38      $head[$h][1] = $langs->trans('CardBill');
  39      $hselected = $h;
  40      $h++;
  41  
  42      $head[$h][0] = DOL_URL_ROOT.'/compta/facture/contact.php?facid='.$fac->id;
  43      $head[$h][1] = $langs->trans('BillContacts');
  44      $h++;
  45  
  46      if ($conf->use_preview_tabs)
  47      {
  48          $head[$h][0] = DOL_URL_ROOT.'/compta/facture/apercu.php?facid='.$fac->id;
  49          $head[$h][1] = $langs->trans('Preview');
  50          $h++;
  51      }
  52  
  53      if ($fac->mode_reglement_code == 'PRE')
  54      {
  55          $head[$h][0] = DOL_URL_ROOT.'/compta/facture/prelevement.php?facid='.$fac->id;
  56          $head[$h][1] = $langs->trans('StandingOrders');
  57          $h++;
  58      }
  59  
  60      $head[$h][0] = DOL_URL_ROOT.'/compta/facture/note.php?facid='.$fac->id;
  61      $head[$h][1] = $langs->trans('Note');
  62      $h++;
  63      $head[$h][0] = DOL_URL_ROOT.'/compta/facture/info.php?facid='.$fac->id;
  64      $head[$h][1] = $langs->trans('Info');
  65      $h++;
  66  
  67      return $head;
  68  }
  69  
  70  ?>


Généré le : Mon Nov 26 12:29:37 2007 par Balluche grâce à PHPXref 0.7
  Clicky Web Analytics