Fix test when numbering ref is only numeric char.

This commit is contained in:
Laurent Destailleur 2017-10-04 01:27:19 +02:00
parent f380747e20
commit 3a41f2bddb

View File

@ -3383,7 +3383,7 @@ class Facture extends CommonInvoice
// we check if invoice is a temporary number (PROVxxxx)
$tmppart = substr($this->ref, 1, 4);
if ($this->statut == self::STATUS_DRAFT && $tmppart == 'PROV') // If draft invoice and ref not yet defined
if ($this->statut == self::STATUS_DRAFT && $tmppart === 'PROV') // If draft invoice and ref not yet defined
{
return 1;
}