Skip to content

Commit

Permalink
Merge pull request #5245 from atm-gauthier/3.8_fix_sql_error_on_factu…
Browse files Browse the repository at this point in the history
…re_create

FIX : SQL error function on getAvailableDiscounts function, on bill c…
  • Loading branch information
eldy committed May 29, 2016
2 parents 24d7c6a + 71ee941 commit 3f49f0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion htdocs/compta/facture.php
Expand Up @@ -1935,7 +1935,7 @@
$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))
{
Expand Down

0 comments on commit 3f49f0d

Please sign in to comment.