Add hidden option INVOICE_NO_PAYMENT_DETAILS required by some countries
This commit is contained in:
parent
14ecdce650
commit
b49a7e245c
@ -686,7 +686,7 @@ class pdf_crabe extends ModelePDFFactures
|
||||
$posy=$this->_tableau_tot($pdf, $object, $deja_regle, $bottomlasttab, $outputlangs);
|
||||
|
||||
// Affiche zone versements
|
||||
if ($deja_regle || $amount_credit_notes_included || $amount_deposits_included)
|
||||
if (($deja_regle || $amount_credit_notes_included || $amount_deposits_included) && empty($conf->global->INVOICE_NO_PAYMENT_DETAILS))
|
||||
{
|
||||
$posy=$this->_tableau_versements($pdf, $object, $posy, $outputlangs);
|
||||
}
|
||||
@ -1294,7 +1294,7 @@ class pdf_crabe extends ModelePDFFactures
|
||||
$resteapayer = price2num($total_ttc - $deja_regle - $creditnoteamount - $depositsamount, 'MT');
|
||||
if ($object->paye) $resteapayer=0;
|
||||
|
||||
if ($deja_regle > 0 || $creditnoteamount > 0 || $depositsamount > 0)
|
||||
if (($deja_regle > 0 || $creditnoteamount > 0 || $depositsamount > 0) && empty($conf->global->INVOICE_NO_PAYMENT_DETAILS))
|
||||
{
|
||||
// Already paid + Deposits
|
||||
$index++;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user