diff --git a/htdocs/compta/facture.php b/htdocs/compta/facture.php index e1d50ef3057..280017a35bc 100644 --- a/htdocs/compta/facture.php +++ b/htdocs/compta/facture.php @@ -994,9 +994,9 @@ else if (($action == 'addline' || $action == 'addline_predef') && $user->rights- $date_end=dol_mktime(GETPOST('date_end'.$predef.'hour'), GETPOST('date_end'.$predef.'min'), GETPOST('date_end'.$predef.'sec'), GETPOST('date_end'.$predef.'month'), GETPOST('date_end'.$predef.'day'), GETPOST('date_end'.$predef.'year')); $price_base_type = (GETPOST('price_base_type', 'alpha')?GETPOST('price_base_type', 'alpha'):'HT'); - // Define special_code for special lines - $special_code=0; - //if (empty($_POST['qty'])) $special_code=3; // Options should not exists on invoices + // Define special_code for special lines + $special_code=0; + //if (empty($_POST['qty'])) $special_code=3; // Options should not exists on invoices // Ecrase $pu par celui du produit // Ecrase $desc par celui du produit diff --git a/htdocs/core/db/pgsql.class.php b/htdocs/core/db/pgsql.class.php index 58a07bd1535..7ed1533ee60 100644 --- a/htdocs/core/db/pgsql.class.php +++ b/htdocs/core/db/pgsql.class.php @@ -296,7 +296,7 @@ class DoliDBPgsql // To have postgresql case sensitive $line=str_replace(' LIKE \'',' ILIKE \'',$line); - $line=str_replace(' LIKE BINARY \'',' LIKE \'',$line); + $line=str_replace(' LIKE BINARY \'',' LIKE \'',$line); // Delete using criteria on other table must not declare twice the deleted table // DELETE FROM tabletodelete USING tabletodelete, othertable -> DELETE FROM tabletodelete USING othertable