Qual: Mutualize code
This commit is contained in:
parent
d7a14a15b3
commit
3a8784a6de
@ -493,31 +493,11 @@ class pdf_merou extends ModelePdfExpedition
|
|||||||
$pdf->MultiCell(0, 3, $outputlangs->transnoentities("RefSending").': '.$outputlangs->convToOutputCharset($object->ref), '', 'R');
|
$pdf->MultiCell(0, 3, $outputlangs->transnoentities("RefSending").': '.$outputlangs->convToOutputCharset($object->ref), '', 'R');
|
||||||
//$this->Code39($Xoff+43, $Yoff+1, $object->ref,$ext = true, $cks = false, $w = 0.4, $h = 4, $wide = true);
|
//$this->Code39($Xoff+43, $Yoff+1, $object->ref,$ext = true, $cks = false, $w = 0.4, $h = 4, $wide = true);
|
||||||
|
|
||||||
// Add list of linked elements
|
|
||||||
// TODO possibility to use with other elements (business module,...)
|
|
||||||
//$object->load_object_linked();
|
|
||||||
|
|
||||||
$origin = $object->origin;
|
$origin = $object->origin;
|
||||||
$origin_id = $object->origin_id;
|
$origin_id = $object->origin_id;
|
||||||
|
|
||||||
// TODO move to external function
|
// Add list of linked elements
|
||||||
if ($conf->$origin->enabled)
|
$posy = pdf_writeLinkedObjects($pdf, $object, $outputlangs, $posx, $posy, 100, 3, 'R', $default_font_size, $hookmanager);
|
||||||
{
|
|
||||||
$outputlangs->load('orders');
|
|
||||||
|
|
||||||
$classname = ucfirst($origin);
|
|
||||||
$linkedobject = new $classname($this->db);
|
|
||||||
$result=$linkedobject->fetch($origin_id);
|
|
||||||
if ($result >= 0)
|
|
||||||
{
|
|
||||||
$Yoff = $Yoff+4;
|
|
||||||
$pdf->SetXY($Xoff,$Yoff);
|
|
||||||
$pdf->SetFont('','', $default_font_size - 2);
|
|
||||||
$text=$linkedobject->ref;
|
|
||||||
if ($linkedobject->ref_client) $text.=' ('.$linkedobject->ref_client.')';
|
|
||||||
$pdf->MultiCell(0, 3, $outputlangs->transnoentities("RefOrder")." : ".$outputlangs->transnoentities($text), '', 'R');
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
//$this->Code39($Xoff+43, $Yoff+1, $object->commande->ref,$ext = true, $cks = false, $w = 0.4, $h = 4, $wide = true);
|
//$this->Code39($Xoff+43, $Yoff+1, $object->commande->ref,$ext = true, $cks = false, $w = 0.4, $h = 4, $wide = true);
|
||||||
//Definition Emplacement du bloc Societe
|
//Definition Emplacement du bloc Societe
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user