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:
parent
0d3a3dcf38
commit
1035f4f7af
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user