Fix do not show warning if account defined
This commit is contained in:
parent
7ba6754a55
commit
a4f189eea7
@ -881,8 +881,8 @@ class pdf_crabe extends ModelePDFFactures
|
||||
$this->error = $outputlangs->transnoentities("ErrorNoPaiementModeConfigured");
|
||||
}
|
||||
// Avoid having any valid PDF with setup that is not complete
|
||||
elseif (($object->mode_reglement_code == 'CHQ' && empty($conf->global->FACTURE_CHQ_NUMBER))
|
||||
|| ($object->mode_reglement_code == 'VIR' && empty($conf->global->FACTURE_RIB_NUMBER)))
|
||||
elseif (($object->mode_reglement_code == 'CHQ' && empty($conf->global->FACTURE_CHQ_NUMBER) && empty($object->fk_account) && empty($object->fk_bank))
|
||||
|| ($object->mode_reglement_code == 'VIR' && empty($conf->global->FACTURE_RIB_NUMBER) && empty($object->fk_account) && empty($object->fk_bank)))
|
||||
{
|
||||
$outputlangs->load("errors");
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user