Add customer code in invoice
This commit is contained in:
parent
5ae45de711
commit
8b62b7831d
@ -947,8 +947,8 @@ class pdf_crabe extends ModelePDFFactures
|
|||||||
$pdf->SetTextColor(0,0,60);
|
$pdf->SetTextColor(0,0,60);
|
||||||
$pdf->MultiCell(100, 4, $outputlangs->transnoentities("Ref")." : " . $outputlangs->convToOutputCharset($object->ref), '', 'R');
|
$pdf->MultiCell(100, 4, $outputlangs->transnoentities("Ref")." : " . $outputlangs->convToOutputCharset($object->ref), '', 'R');
|
||||||
|
|
||||||
$posy+=1;
|
$posy+=2;
|
||||||
$pdf->SetFont('Arial','',10);
|
$pdf->SetFont('Arial','',9);
|
||||||
|
|
||||||
$facidnext=$object->getIdReplacingInvoice('validated');
|
$facidnext=$object->getIdReplacingInvoice('validated');
|
||||||
if ($object->type == 0 && $facidnext)
|
if ($object->type == 0 && $facidnext)
|
||||||
@ -956,7 +956,7 @@ class pdf_crabe extends ModelePDFFactures
|
|||||||
$objectreplacing=new Facture($this->db);
|
$objectreplacing=new Facture($this->db);
|
||||||
$objectreplacing->fetch($facidnext);
|
$objectreplacing->fetch($facidnext);
|
||||||
|
|
||||||
$posy+=5;
|
$posy+=4;
|
||||||
$pdf->SetXY(100,$posy);
|
$pdf->SetXY(100,$posy);
|
||||||
$pdf->SetTextColor(0,0,60);
|
$pdf->SetTextColor(0,0,60);
|
||||||
$pdf->MultiCell(100, 3, $outputlangs->transnoentities("ReplacementByInvoice").' : '.$outputlangs->convToOutputCharset($objectreplacing->ref), '', 'R');
|
$pdf->MultiCell(100, 3, $outputlangs->transnoentities("ReplacementByInvoice").' : '.$outputlangs->convToOutputCharset($objectreplacing->ref), '', 'R');
|
||||||
@ -966,7 +966,7 @@ class pdf_crabe extends ModelePDFFactures
|
|||||||
$objectreplaced=new Facture($this->db);
|
$objectreplaced=new Facture($this->db);
|
||||||
$objectreplaced->fetch($object->fk_facture_source);
|
$objectreplaced->fetch($object->fk_facture_source);
|
||||||
|
|
||||||
$posy+=5;
|
$posy+=4;
|
||||||
$pdf->SetXY(100,$posy);
|
$pdf->SetXY(100,$posy);
|
||||||
$pdf->SetTextColor(0,0,60);
|
$pdf->SetTextColor(0,0,60);
|
||||||
$pdf->MultiCell(100, 3, $outputlangs->transnoentities("ReplacementInvoice").' : '.$outputlangs->convToOutputCharset($objectreplaced->ref), '', 'R');
|
$pdf->MultiCell(100, 3, $outputlangs->transnoentities("ReplacementInvoice").' : '.$outputlangs->convToOutputCharset($objectreplaced->ref), '', 'R');
|
||||||
@ -976,20 +976,20 @@ class pdf_crabe extends ModelePDFFactures
|
|||||||
$objectreplaced=new Facture($this->db);
|
$objectreplaced=new Facture($this->db);
|
||||||
$objectreplaced->fetch($object->fk_facture_source);
|
$objectreplaced->fetch($object->fk_facture_source);
|
||||||
|
|
||||||
$posy+=5;
|
$posy+=4;
|
||||||
$pdf->SetXY(100,$posy);
|
$pdf->SetXY(100,$posy);
|
||||||
$pdf->SetTextColor(0,0,60);
|
$pdf->SetTextColor(0,0,60);
|
||||||
$pdf->MultiCell(100, 3, $outputlangs->transnoentities("CorrectionInvoice").' : '.$outputlangs->convToOutputCharset($objectreplaced->ref), '', 'R');
|
$pdf->MultiCell(100, 3, $outputlangs->transnoentities("CorrectionInvoice").' : '.$outputlangs->convToOutputCharset($objectreplaced->ref), '', 'R');
|
||||||
}
|
}
|
||||||
|
|
||||||
$posy+=5;
|
$posy+=4;
|
||||||
$pdf->SetXY(100,$posy);
|
$pdf->SetXY(100,$posy);
|
||||||
$pdf->SetTextColor(0,0,60);
|
$pdf->SetTextColor(0,0,60);
|
||||||
$pdf->MultiCell(100, 3, $outputlangs->transnoentities("DateInvoice")." : " . dol_print_date($object->date,"day",false,$outpulangs), '', 'R');
|
$pdf->MultiCell(100, 3, $outputlangs->transnoentities("DateInvoice")." : " . dol_print_date($object->date,"day",false,$outpulangs), '', 'R');
|
||||||
|
|
||||||
if ($object->type != 2)
|
if ($object->type != 2)
|
||||||
{
|
{
|
||||||
$posy+=5;
|
$posy+=4;
|
||||||
$pdf->SetXY(100,$posy);
|
$pdf->SetXY(100,$posy);
|
||||||
$pdf->SetTextColor(0,0,60);
|
$pdf->SetTextColor(0,0,60);
|
||||||
$pdf->MultiCell(100, 3, $outputlangs->transnoentities("DateEcheance")." : " . dol_print_date($object->date_lim_reglement,"day",false,$outputlangs,true), '', 'R');
|
$pdf->MultiCell(100, 3, $outputlangs->transnoentities("DateEcheance")." : " . dol_print_date($object->date_lim_reglement,"day",false,$outputlangs,true), '', 'R');
|
||||||
@ -997,7 +997,7 @@ class pdf_crabe extends ModelePDFFactures
|
|||||||
|
|
||||||
if ($object->client->code_client)
|
if ($object->client->code_client)
|
||||||
{
|
{
|
||||||
$posy+=5;
|
$posy+=4;
|
||||||
$pdf->SetXY(100,$posy);
|
$pdf->SetXY(100,$posy);
|
||||||
$pdf->SetTextColor(0,0,60);
|
$pdf->SetTextColor(0,0,60);
|
||||||
$pdf->MultiCell(100, 3, $outputlangs->transnoentities("CustomerCode")." : " . $object->client->code_client, '', 'R');
|
$pdf->MultiCell(100, 3, $outputlangs->transnoentities("CustomerCode")." : " . $object->client->code_client, '', 'R');
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user