Merge pull request #7988 from OPEN-DSI/core_pdf_modele_propal_payment_mode_flag
Fix PROPALE_PDF_HIDE_PAYMENTTERMMODE and SUPPLIER_PROPOSAL_PDF_SHOW_PAYMENTTERMMODE
This commit is contained in:
commit
836a94fab2
@ -869,7 +869,7 @@ class pdf_azur extends ModelePDFPropales
|
|||||||
$posy=$pdf->GetY()+3;
|
$posy=$pdf->GetY()+3;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (empty($conf->global->PROPALE_PDF_HIDE_PAYMENTTERMCOND))
|
if (empty($conf->global->PROPALE_PDF_HIDE_PAYMENTTERMMODE))
|
||||||
{
|
{
|
||||||
// Check a payment mode is defined
|
// Check a payment mode is defined
|
||||||
/* Not required on a proposal
|
/* Not required on a proposal
|
||||||
|
|||||||
@ -716,22 +716,8 @@ class pdf_aurore extends ModelePDFSupplierProposal
|
|||||||
|
|
||||||
$posy=$pdf->GetY()+3;
|
$posy=$pdf->GetY()+3;
|
||||||
}
|
}
|
||||||
else {
|
|
||||||
$pdf->SetFont('','B', $default_font_size - 2);
|
|
||||||
$pdf->SetXY($this->marge_gauche, $posy);
|
|
||||||
$titre = $outputlangs->transnoentities("PaymentConditions").':';
|
|
||||||
$pdf->MultiCell(80, 4, $titre, 0, 'L');
|
|
||||||
|
|
||||||
$pdf->SetFont('','', $default_font_size - 2);
|
if (! empty($conf->global->SUPPLIER_PROPOSAL_PDF_SHOW_PAYMENTTERMMODE))
|
||||||
$pdf->SetXY($posxval, $posy);
|
|
||||||
|
|
||||||
$lib_condition_paiement=str_replace('\n',"\n",$lib_condition_paiement);
|
|
||||||
$pdf->MultiCell(80, 4, $lib_condition_paiement,0,'L');
|
|
||||||
|
|
||||||
$posy=$pdf->GetY()+3;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (! empty($conf->global->SUPPLIER_PROPOSAL_PDF_SHOW_PAYMENTTERMCOND))
|
|
||||||
{
|
{
|
||||||
// Show payment mode
|
// Show payment mode
|
||||||
if ($object->mode_reglement_code
|
if ($object->mode_reglement_code
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user