2
0
forked from Wavyzz/dolibarr

Ajout d'une notion de version sur les modules de numrotation.

This commit is contained in:
Laurent Destailleur
2007-09-11 22:01:18 +00:00
parent 5ec0be5375
commit 0826937520
6 changed files with 79 additions and 7 deletions

View File

@@ -35,17 +35,17 @@ require_once(DOL_DOCUMENT_ROOT.'/includes/fpdf/fpdfi/fpdi_protection.php');
\class methode_expedition
\brief Classe m<>re des methodes expeditions
*/
Class methode_expedition
class methode_expedition
{
Function methode_expedition($db=0)
function methode_expedition($db=0)
{
$this->db = $db;
$this->name = "NON DEFINIT";
$this->description = "ERREUR DANS LA DEFINITION DU MODULE.";
}
Function Active($statut)
function Active($statut)
{
// Mise a jour du statut
$sql = "UPDATE ".MAIN_DB_PREFIX."expedition_methode set statut = $statut ";
@@ -79,7 +79,7 @@ Class methode_expedition
}
}
Function write_pdf_file($id)
function write_pdf_file($id)
{
global $user;
$propale = new Propal($this->db,"",$id);
@@ -217,7 +217,7 @@ Class methode_expedition
}
}
Function _tableau(&$pdf, $tab_top, $tab_height, $nexY)
function _tableau(&$pdf, $tab_top, $tab_height, $nexY)
{
$pdf->SetFont('Arial','',11);
@@ -247,7 +247,7 @@ Class methode_expedition
}
Function _pagehead(&$pdf, $propale)
function _pagehead(&$pdf, $propale)
{
$pdf->SetXY(10,5);
if (defined("FAC_PDF_INTITULE"))

View File

@@ -135,6 +135,19 @@ class ModeleNumRefCommandes
return $langs->trans("NotAvailable");
}
/** \brief Renvoi version du module numerotation
* \return string Valeur
*/
function getVersion()
{
global $langs;
$langs->load("admin");
if ($this->version == 'development') return $langs->trans("VersionDevelopment");
if ($this->version == 'experimental') return $langs->trans("VersionExperimental");
if ($this->version == 'dolibarr') return DOL_VERSION;
return $langs->trans("NotAvailable");
}
}

View File

@@ -132,6 +132,20 @@ class ModeleNumRefDons
global $langs;
return $langs->trans("NotAvailable");
}
/** \brief Renvoi version du module numerotation
* \return string Valeur
*/
function getVersion()
{
global $langs;
$langs->load("admin");
if ($this->version == 'development') return $langs->trans("VersionDevelopment");
if ($this->version == 'experimental') return $langs->trans("VersionExperimental");
if ($this->version == 'dolibarr') return DOL_VERSION;
return $langs->trans("NotAvailable");
}
}

View File

@@ -1,6 +1,6 @@
<?php
/* Copyright (C) 2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
* Copyright (C) 2004-2005 Laurent Destailleur <eldy@users.sourceforge.net>
* Copyright (C) 2004-2007 Laurent Destailleur <eldy@users.sourceforge.net>
*
* 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
@@ -137,6 +137,19 @@ class ModeleNumRefFicheinter
return $langs->trans("NotAvailable");
}
/** \brief Renvoi version du module numerotation
* \return string Valeur
*/
function getVersion()
{
global $langs;
$langs->load("admin");
if ($this->version == 'development') return $langs->trans("VersionDevelopment");
if ($this->version == 'experimental') return $langs->trans("VersionExperimental");
if ($this->version == 'dolibarr') return DOL_VERSION;
return $langs->trans("NotAvailable");
}
}

View File

@@ -130,6 +130,19 @@ class ModeleNumRefPropales
return $langs->trans("NotAvailable");
}
/** \brief Renvoi version du module numerotation
* \return string Valeur
*/
function getVersion()
{
global $langs;
$langs->load("admin");
if ($this->version == 'development') return $langs->trans("VersionDevelopment");
if ($this->version == 'experimental') return $langs->trans("VersionExperimental");
if ($this->version == 'dolibarr') return DOL_VERSION;
return $langs->trans("NotAvailable");
}
}

View File

@@ -132,7 +132,24 @@ class ModeleNumRefDeliveryOrder
return $langs->trans("NotAvailable");
}
/** \brief Renvoi version du module numerotation
* \return string Valeur
*/
function getVersion()
{
global $langs;
$langs->load("admin");
if ($this->version == 'development') return $langs->trans("VersionDevelopment");
if ($this->version == 'experimental') return $langs->trans("VersionExperimental");
if ($this->version == 'dolibarr') return DOL_VERSION;
return $langs->trans("NotAvailable");
}
}
function delivery_order_pdf_create($db, $deliveryid, $modele='', $outputlangs='')
{
global $langs;
@@ -181,6 +198,8 @@ function delivery_order_pdf_create($db, $deliveryid, $modele='', $outputlangs=''
return 0;
}
}
function delivery_order_delete_preview($db, $deliveryid)
{
global $langs,$conf;