Skip to content

Commit

Permalink
Core Modele PDF: Fix globale variable for hide payment mode with PROP…
Browse files Browse the repository at this point in the history
…ALE_PDF_HIDE_PAYMENTTERMMODE and SUPPLIER_PROPOSAL_PDF_SHOW_PAYMENTTERMMODE

 - Fix hide payment condition for supplier proposal
  • Loading branch information
kkhelifa-opendsi committed Dec 21, 2017
1 parent aad0da2 commit d069ccd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 16 deletions.
2 changes: 1 addition & 1 deletion htdocs/core/modules/propale/doc/pdf_azur.modules.php
Expand Up @@ -869,7 +869,7 @@ function _tableau_info(&$pdf, $object, $posy, $outputlangs)
$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
/* Not required on a proposal
Expand Down
16 changes: 1 addition & 15 deletions htdocs/core/modules/supplier_proposal/doc/pdf_aurore.modules.php
Expand Up @@ -716,22 +716,8 @@ function _tableau_info(&$pdf, $object, $posy, $outputlangs)

$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);
$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))
if (! empty($conf->global->SUPPLIER_PROPOSAL_PDF_SHOW_PAYMENTTERMMODE))
{
// Show payment mode
if ($object->mode_reglement_code
Expand Down

0 comments on commit d069ccd

Please sign in to comment.