|
|
|
|
@ -693,59 +693,55 @@ class pdf_crabe extends ModelePDFFactures
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
* Propose mode reglement par RIB
|
|
|
|
|
* Si mode reglement non force ou si force a VIR, propose mode reglement par RIB
|
|
|
|
|
*/
|
|
|
|
|
if (empty($object->mode_reglement_code) || $object->mode_reglement_code == 'VIR')
|
|
|
|
|
{
|
|
|
|
|
// Si mode reglement non force ou si force a VIR
|
|
|
|
|
if ($conf->global->FACTURE_RIB_NUMBER)
|
|
|
|
|
if (! empty($conf->global->FACTURE_RIB_NUMBER))
|
|
|
|
|
{
|
|
|
|
|
if ($conf->global->FACTURE_RIB_NUMBER)
|
|
|
|
|
{
|
|
|
|
|
$account = new Account($this->db);
|
|
|
|
|
$account->fetch($conf->global->FACTURE_RIB_NUMBER);
|
|
|
|
|
|
|
|
|
|
$this->marges['g']=$this->marge_gauche;
|
|
|
|
|
|
|
|
|
|
$cury=$posy;
|
|
|
|
|
$pdf->SetXY ($this->marges['g'], $cury);
|
|
|
|
|
$pdf->SetFont('Arial','B',8);
|
|
|
|
|
$pdf->MultiCell(90, 3, $outputlangs->transnoentities('PaymentByTransferOnThisBankAccount').':', 0, 'L', 0);
|
|
|
|
|
$cury+=4;
|
|
|
|
|
$pdf->SetFont('Arial','B',6);
|
|
|
|
|
$pdf->line($this->marges['g']+1, $cury, $this->marges['g']+1, $cury+10 );
|
|
|
|
|
$pdf->SetXY ($this->marges['g'], $cury);
|
|
|
|
|
$pdf->MultiCell(18, 3, $outputlangs->transnoentities("BankCode"), 0, 'C', 0);
|
|
|
|
|
$pdf->line($this->marges['g']+18, $cury, $this->marges['g']+18, $cury+10 );
|
|
|
|
|
$pdf->SetXY ($this->marges['g']+18, $cury);
|
|
|
|
|
$pdf->MultiCell(18, 3, $outputlangs->transnoentities("DeskCode"), 0, 'C', 0);
|
|
|
|
|
$pdf->line($this->marges['g']+36, $cury, $this->marges['g']+36, $cury+10 );
|
|
|
|
|
$pdf->SetXY ($this->marges['g']+36, $cury);
|
|
|
|
|
$pdf->MultiCell(24, 3, $outputlangs->transnoentities("BankAccountNumber"), 0, 'C', 0);
|
|
|
|
|
$pdf->line($this->marges['g']+60, $cury, $this->marges['g']+60, $cury+10 );
|
|
|
|
|
$pdf->SetXY ($this->marges['g']+60, $cury);
|
|
|
|
|
$pdf->MultiCell(13, 3, $outputlangs->transnoentities("BankAccountNumberKey"), 0, 'C', 0);
|
|
|
|
|
$pdf->line($this->marges['g']+73, $cury, $this->marges['g']+73, $cury+10 );
|
|
|
|
|
|
|
|
|
|
$pdf->SetFont('Arial','',8);
|
|
|
|
|
$pdf->SetXY ($this->marges['g'], $cury+5);
|
|
|
|
|
$pdf->MultiCell(18, 3, $outputlangs->convToOutputCharset($account->code_banque), 0, 'C', 0);
|
|
|
|
|
$pdf->SetXY ($this->marges['g']+18, $cury+5);
|
|
|
|
|
$pdf->MultiCell(18, 3, $outputlangs->convToOutputCharset($account->code_guichet), 0, 'C', 0);
|
|
|
|
|
$pdf->SetXY ($this->marges['g']+36, $cury+5);
|
|
|
|
|
$pdf->MultiCell(24, 3, $outputlangs->convToOutputCharset($account->number), 0, 'C', 0);
|
|
|
|
|
$pdf->SetXY ($this->marges['g']+60, $cury+5);
|
|
|
|
|
$pdf->MultiCell(13, 3, $outputlangs->convToOutputCharset($account->cle_rib), 0, 'C', 0);
|
|
|
|
|
|
|
|
|
|
$pdf->SetXY ($this->marges['g'], $cury+12);
|
|
|
|
|
$pdf->MultiCell(90, 3, $outputlangs->transnoentities("Residence").' : ' . $outputlangs->convToOutputCharset($account->domiciliation), 0, 'L', 0);
|
|
|
|
|
$pdf->SetXY ($this->marges['g'], $cury+22);
|
|
|
|
|
$pdf->MultiCell(90, 3, $outputlangs->transnoentities("IbanPrefix").' : ' . $outputlangs->convToOutputCharset($account->iban_prefix), 0, 'L', 0);
|
|
|
|
|
$pdf->SetXY ($this->marges['g'], $cury+25);
|
|
|
|
|
$pdf->MultiCell(90, 3, $outputlangs->transnoentities("BIC").' : ' . $outputlangs->convToOutputCharset($account->bic), 0, 'L', 0);
|
|
|
|
|
|
|
|
|
|
$posy=$pdf->GetY()+2;
|
|
|
|
|
}
|
|
|
|
|
$account = new Account($this->db);
|
|
|
|
|
$account->fetch($conf->global->FACTURE_RIB_NUMBER);
|
|
|
|
|
|
|
|
|
|
$this->marges['g']=$this->marge_gauche;
|
|
|
|
|
|
|
|
|
|
$cury=$posy;
|
|
|
|
|
$pdf->SetXY ($this->marges['g'], $cury);
|
|
|
|
|
$pdf->SetFont('Arial','B',8);
|
|
|
|
|
$pdf->MultiCell(90, 3, $outputlangs->transnoentities('PaymentByTransferOnThisBankAccount').':', 0, 'L', 0);
|
|
|
|
|
$cury+=4;
|
|
|
|
|
$pdf->SetFont('Arial','B',6);
|
|
|
|
|
$pdf->line($this->marges['g']+1, $cury, $this->marges['g']+1, $cury+10 );
|
|
|
|
|
$pdf->SetXY ($this->marges['g'], $cury);
|
|
|
|
|
$pdf->MultiCell(18, 3, $outputlangs->transnoentities("BankCode"), 0, 'C', 0);
|
|
|
|
|
$pdf->line($this->marges['g']+18, $cury, $this->marges['g']+18, $cury+10 );
|
|
|
|
|
$pdf->SetXY ($this->marges['g']+18, $cury);
|
|
|
|
|
$pdf->MultiCell(18, 3, $outputlangs->transnoentities("DeskCode"), 0, 'C', 0);
|
|
|
|
|
$pdf->line($this->marges['g']+36, $cury, $this->marges['g']+36, $cury+10 );
|
|
|
|
|
$pdf->SetXY ($this->marges['g']+36, $cury);
|
|
|
|
|
$pdf->MultiCell(24, 3, $outputlangs->transnoentities("BankAccountNumber"), 0, 'C', 0);
|
|
|
|
|
$pdf->line($this->marges['g']+60, $cury, $this->marges['g']+60, $cury+10 );
|
|
|
|
|
$pdf->SetXY ($this->marges['g']+60, $cury);
|
|
|
|
|
$pdf->MultiCell(13, 3, $outputlangs->transnoentities("BankAccountNumberKey"), 0, 'C', 0);
|
|
|
|
|
$pdf->line($this->marges['g']+73, $cury, $this->marges['g']+73, $cury+10 );
|
|
|
|
|
|
|
|
|
|
$pdf->SetFont('Arial','',8);
|
|
|
|
|
$pdf->SetXY ($this->marges['g'], $cury+5);
|
|
|
|
|
$pdf->MultiCell(18, 3, $outputlangs->convToOutputCharset($account->code_banque), 0, 'C', 0);
|
|
|
|
|
$pdf->SetXY ($this->marges['g']+18, $cury+5);
|
|
|
|
|
$pdf->MultiCell(18, 3, $outputlangs->convToOutputCharset($account->code_guichet), 0, 'C', 0);
|
|
|
|
|
$pdf->SetXY ($this->marges['g']+36, $cury+5);
|
|
|
|
|
$pdf->MultiCell(24, 3, $outputlangs->convToOutputCharset($account->number), 0, 'C', 0);
|
|
|
|
|
$pdf->SetXY ($this->marges['g']+60, $cury+5);
|
|
|
|
|
$pdf->MultiCell(13, 3, $outputlangs->convToOutputCharset($account->cle_rib), 0, 'C', 0);
|
|
|
|
|
|
|
|
|
|
$pdf->SetXY ($this->marges['g'], $cury+12);
|
|
|
|
|
$pdf->MultiCell(90, 3, $outputlangs->transnoentities("Residence").' : ' . $outputlangs->convToOutputCharset($account->domiciliation), 0, 'L', 0);
|
|
|
|
|
$pdf->SetXY ($this->marges['g'], $cury+22);
|
|
|
|
|
$pdf->MultiCell(90, 3, $outputlangs->transnoentities("IbanPrefix").' : ' . $outputlangs->convToOutputCharset($account->iban_prefix), 0, 'L', 0);
|
|
|
|
|
$pdf->SetXY ($this->marges['g'], $cury+25);
|
|
|
|
|
$pdf->MultiCell(90, 3, $outputlangs->transnoentities("BIC").' : ' . $outputlangs->convToOutputCharset($account->bic), 0, 'L', 0);
|
|
|
|
|
|
|
|
|
|
$posy=$pdf->GetY()+2;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|