Use standard prefix for supplier order for new install

This commit is contained in:
Laurent Destailleur 2016-08-04 15:45:55 +02:00
parent a240cf30d6
commit d688681605

View File

@ -37,6 +37,16 @@ class mod_commande_fournisseur_muguet extends ModeleNumRefSuppliersOrders
var $prefix='CF';
/**
* Constructor
*/
function __construct()
{
global $conf;
if ((float) $conf->global->MAIN_VERSION_LAST_INSTALL >= 5.0) $this->prefix = 'PO'; // We use correct standard code "PO = Purchase Order"
}
/**
* Return description of numbering module
*