Issue #3509: Ready for customers

This commit is contained in:
Juanjo Menent 2015-10-03 17:15:25 +02:00
parent 03a2fd740d
commit 9d60dee781
2 changed files with 2 additions and 2 deletions

View File

@ -790,7 +790,7 @@ class Paiement extends CommonObject
$langs->load("bills");
// Clean parameters (if not defined or using deprecated value)
if (empty($conf->global->PAYMENT_ADDON)) $conf->global->PAYMENT_ADDON='mod_payment_ant';
if (empty($conf->global->PAYMENT_ADDON)) $conf->global->PAYMENT_ADDON='mod_payment_cicada';
else if ($conf->global->PAYMENT_ADDON=='ant') $conf->global->PAYMENT_ADDON='mod_payment_ant';
else if ($conf->global->PAYMENT_ADDON=='cicada') $conf->global->PAYMENT_ADDON='mod_payment_cicada';

View File

@ -70,7 +70,7 @@ class mod_payment_cicada extends ModeleNumRefPayments
$payyymm=''; $max='';
$posindice=8;
$posindice=9;
$sql = "SELECT MAX(CAST(SUBSTRING(ref FROM ".$posindice.") AS SIGNED)) as max";
$sql.= " FROM ".MAIN_DB_PREFIX."paiement";
$sql.= " WHERE ref LIKE '".$this->prefix."____-%'";