NEW Option SUPPLIER_ORDER_SHOW_FIRST_SALES_REP shows name of buyer on PO
This commit is contained in:
parent
79222c732d
commit
edbd92ee3e
@ -1104,6 +1104,19 @@ class pdf_muscadet extends ModelePDFSuppliersOrders
|
|||||||
$pdf->MultiCell(100, 3, $outputlangs->transnoentities("SupplierCode")." : " . $outputlangs->transnoentities($object->thirdparty->code_fournisseur), '', 'R');
|
$pdf->MultiCell(100, 3, $outputlangs->transnoentities("SupplierCode")." : " . $outputlangs->transnoentities($object->thirdparty->code_fournisseur), '', 'R');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Get contact
|
||||||
|
if (!empty($conf->global->SUPPLIER_ORDER_SHOW_FIRST_SALES_REP))
|
||||||
|
{
|
||||||
|
$arrayidcontact=$object->getIdContact('internal','SALESREPFOLL');
|
||||||
|
if (count($arrayidcontact) > 0)
|
||||||
|
{
|
||||||
|
$usertmp=new User($this->db);
|
||||||
|
$usertmp->fetch($arrayidcontact[0]);
|
||||||
|
$pdf->SetTextColor(0,0,60);
|
||||||
|
$pdf->MultiCell(190, 3, $langs->trans("BuyerName")." : ".$usertmp->getFullName($langs), '', 'R');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
$posy+=1;
|
$posy+=1;
|
||||||
$pdf->SetTextColor(0,0,60);
|
$pdf->SetTextColor(0,0,60);
|
||||||
|
|
||||||
|
|||||||
@ -41,3 +41,4 @@ SupplierReputation=Supplier reputation
|
|||||||
DoNotOrderThisProductToThisSupplier=Do not order
|
DoNotOrderThisProductToThisSupplier=Do not order
|
||||||
NotTheGoodQualitySupplier=Wrong quality
|
NotTheGoodQualitySupplier=Wrong quality
|
||||||
ReputationForThisProduct=Reputation
|
ReputationForThisProduct=Reputation
|
||||||
|
BuyerName=Buyer name
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user