Qual: Avoid wrong declaration
This commit is contained in:
parent
3eabffbc7c
commit
258c92ab1c
@ -188,7 +188,7 @@ class DiscountAbsolute
|
|||||||
// Check if we can remove the discount
|
// Check if we can remove the discount
|
||||||
if ($this->fk_facture_source)
|
if ($this->fk_facture_source)
|
||||||
{
|
{
|
||||||
$sql.="SELECT COUNT(rowid) as nb";
|
$sql="SELECT COUNT(rowid) as nb";
|
||||||
$sql.=" FROM ".MAIN_DB_PREFIX."societe_remise_except";
|
$sql.=" FROM ".MAIN_DB_PREFIX."societe_remise_except";
|
||||||
$sql.=" WHERE (fk_facture_line IS NOT NULL"; // Not used as absolute simple discount
|
$sql.=" WHERE (fk_facture_line IS NOT NULL"; // Not used as absolute simple discount
|
||||||
$sql.=" OR fk_facture IS NOT NULL)"; // Not used as credit note and not used as deposit
|
$sql.=" OR fk_facture IS NOT NULL)"; // Not used as credit note and not used as deposit
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user