diff --git a/htdocs/includes/modules/facture/pdf_crabe.modules.php b/htdocs/includes/modules/facture/pdf_crabe.modules.php index 3f5e84d824a..50e1c6b1300 100644 --- a/htdocs/includes/modules/facture/pdf_crabe.modules.php +++ b/htdocs/includes/modules/facture/pdf_crabe.modules.php @@ -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 diff --git a/htdocs/includes/modules/propale/pdf_propale_azur.modules.php b/htdocs/includes/modules/propale/pdf_propale_azur.modules.php index 57a138edb9a..b23e271160e 100644 --- a/htdocs/includes/modules/propale/pdf_propale_azur.modules.php +++ b/htdocs/includes/modules/propale/pdf_propale_azur.modules.php @@ -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