Fix bug #16196 : Dsignation sur facture.

Dans la colonne Dsignation on prfixe le code et le libelle d'un produit/service par "Produit" si c'est un produit, "Service" si c'est un service.
This commit is contained in:
activdev 2006-04-02 14:27:02 +00:00
parent 0d3a3dcf38
commit 1035f4f7af
2 changed files with 14 additions and 2 deletions

View File

@ -227,7 +227,13 @@ class pdf_crabe extends ModelePDFFactures
$prodser->fetch($fac->lignes[$i]->produit_id);
if ($prodser->ref) {
$libelleproduitservice=$langs->trans("Product")." ".$prodser->ref." - ".$libelleproduitservice;
$prefix_prodserv = "";
if($prodser->type == 0)
$prefix_prodserv = $langs->trans("Product")." ";
if($prodser->type == 1)
$prefix_prodserv = $langs->trans("Service")." ";
$libelleproduitservice=$prefix_prodserv.$prodser->ref." - ".$libelleproduitservice;
}
// Ajoute description du produit

View File

@ -236,7 +236,13 @@ class pdf_propale_azur extends ModelePDFPropales
$prodser->fetch($prop->lignes[$i]->product_id);
if ($prodser->ref)
{
$libelleproduitservice=$langs->trans("Product")." ".$prodser->ref." - ".$libelleproduitservice;
$prefix_prodserv = "";
if($prodser->type == 0)
$prefix_prodserv = $langs->trans("Product")." ";
if($prodser->type == 1)
$prefix_prodserv = $langs->trans("Service")." ";
$libelleproduitservice=$prefix_prodserv.$prodser->ref." - ".$libelleproduitservice;
}
// Ajoute description du produit