FIX : We want to be able to send PDF of paid invoices
This commit is contained in:
parent
edc59b9290
commit
ecdfa5219b
@ -175,12 +175,12 @@ if (! $error && $massaction == 'confirm_presend')
|
|||||||
{
|
{
|
||||||
//var_dump($thirdpartyid.' - '.$objectid.' - '.$object->statut);
|
//var_dump($thirdpartyid.' - '.$objectid.' - '.$object->statut);
|
||||||
|
|
||||||
if ($objectclass == 'Facture' && $object->statut != Facture::STATUS_VALIDATED)
|
if ($objectclass == 'Facture' && $object->statut == Facture::STATUS_DRAFT)
|
||||||
{
|
{
|
||||||
$langs->load("errors");
|
$langs->load("errors");
|
||||||
$nbignored++;
|
$nbignored++;
|
||||||
$resaction.='<div class="error">'.$langs->trans('ErrorOnlyInvoiceValidatedCanBeSentInMassAction',$object->ref).'</div><br>';
|
$resaction.='<div class="error">'.$langs->trans('ErrorOnlyInvoiceValidatedCanBeSentInMassAction',$object->ref).'</div><br>';
|
||||||
continue; // Payment done or started or canceled
|
continue;
|
||||||
}
|
}
|
||||||
if ($objectclass == 'Commande' && $object->statut == Commande::STATUS_DRAFT)
|
if ($objectclass == 'Commande' && $object->statut == Commande::STATUS_DRAFT)
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user