Ajout nombres de produits
This commit is contained in:
parent
6cf08a0038
commit
02a4e03162
@ -1,5 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
/* Copyright (C) 2001-2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
/* Copyright (C) 2001-2005 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||||
* Copyright (C) 2003 Éric Seigne <erics@rycks.com>
|
* Copyright (C) 2003 Éric Seigne <erics@rycks.com>
|
||||||
* Copyright (C) 2004 Laurent Destailleur <eldy@users.sourceforge.net>
|
* Copyright (C) 2004 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||||
*
|
*
|
||||||
@ -22,7 +22,7 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/*!
|
||||||
\file htdocs/fourn/fiche.php
|
\file htdocs/fourn/fiche.php
|
||||||
\ingroup fournisseur, facture
|
\ingroup fournisseur, facture
|
||||||
\brief Page de fiche fournisseur
|
\brief Page de fiche fournisseur
|
||||||
@ -52,15 +52,13 @@ if ($user->societe_id > 0)
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
$societe = new Societe($db);
|
$societe = new Fournisseur($db);
|
||||||
|
|
||||||
if ( $societe->fetch($socid) )
|
if ( $societe->fetch($socid) )
|
||||||
{
|
{
|
||||||
|
|
||||||
$addons[0][0] = DOL_URL_ROOT.'/fourn/fiche.php?socid='.$socid;
|
$addons[0][0] = DOL_URL_ROOT.'/fourn/fiche.php?socid='.$socid;
|
||||||
$addons[0][1] = $societe->nom;
|
$addons[0][1] = $societe->nom;
|
||||||
|
|
||||||
|
|
||||||
llxHeader('',$langs->trans("SupplierCard").' : '.$societe->nom, $addons);
|
llxHeader('',$langs->trans("SupplierCard").' : '.$societe->nom, $addons);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -144,16 +142,17 @@ if ( $societe->fetch($socid) )
|
|||||||
* Liste des produits
|
* Liste des produits
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
if ($conf->produit->enabled || $conf->service->enabled) {
|
if ($conf->produit->enabled || $conf->service->enabled)
|
||||||
|
{
|
||||||
$langs->load("products");
|
$langs->load("products");
|
||||||
print '<table class="border" width="100%">';
|
print '<table class="border" width="100%">';
|
||||||
$var=!$var;
|
$var=!$var;
|
||||||
print "<tr $bc[$var]>";
|
print "<tr $bc[$var]>";
|
||||||
print '<td><a href="'.DOL_URL_ROOT.'/product/liste.php?fourn_id='.$societe->id.'">'.$langs->trans("ProductsAndServices").'</td></tr>';
|
print '<td><a href="'.DOL_URL_ROOT.'/product/liste.php?fourn_id='.$societe->id.'">'.$langs->trans("ProductsAndServices").'</td><td align="center">';
|
||||||
print '</table><br>';
|
print $societe->NbProduct();
|
||||||
|
print '</td></tr></table><br>';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
*
|
*
|
||||||
* Liste des commandes associées
|
* Liste des commandes associées
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user