Merge pull request #5245 from atm-gauthier/3.8_fix_sql_error_on_facture_create

FIX : SQL error function on getAvailableDiscounts function, on bill c…
This commit is contained in:
Laurent Destailleur 2016-05-29 11:58:28 +02:00
commit 3f49f0df33

View File

@ -1935,7 +1935,7 @@ if ($action == 'create')
$dateinvoice = (empty($dateinvoice)?(empty($conf->global->MAIN_AUTOFILL_DATE)?-1:''):$dateinvoice); // Do not set 0 here (0 for a date is 1970)
}
$absolute_discount = $soc->getAvailableDiscounts();
if(!empty($soc->id)) $absolute_discount = $soc->getAvailableDiscounts();
if (! empty($conf->use_javascript_ajax))
{