Skip to content

Commit

Permalink
FIX : SQL error function on getAvailableDiscounts function, on bill c…
Browse files Browse the repository at this point in the history
…reate mode if socid is empty
  • Loading branch information
atm-gauthier committed May 25, 2016
1 parent 24d7c6a commit 71ee941
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 71ee941

Please sign in to comment.