Issue #3509: Ready for customers
This commit is contained in:
parent
03a2fd740d
commit
9d60dee781
@ -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';
|
||||
|
||||
|
||||
@ -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."____-%'";
|
||||
|
||||
Loading…
Reference in New Issue
Block a user