Skip to content
Snippets Groups Projects
Commit 2d0f3535 authored by Juanjo Menent's avatar Juanjo Menent
Browse files

Merge pull request #1859 from FHenry/3.6

Fix SQL syntax
parents 772acd6b e2fac5dd
No related branches found
No related tags found
No related merge requests found
......@@ -10,6 +10,7 @@ For users:
- Fix: error "menu param is not inside list" into pos module.
- Fix: Salary payments are not reflected on the reporting sheets
- Fix: Unsubscribe emailing not working
- Fix: Trigger on create category call failed because user is not passed on card
***** ChangeLog for 3.6 compared to 3.5.* *****
For users:
......
......@@ -206,9 +206,9 @@ else
// Add vat rates examples specific to country
$vat_rates=array();
$sql.="SELECT taux as vat_rate";
$sql="SELECT taux as vat_rate";
$sql.=" FROM ".MAIN_DB_PREFIX."c_tva as t, ".MAIN_DB_PREFIX."c_pays as p";
$sql.=" WHERE t.active=1 AND t.fk_pays = p.rowid AND p.code='".$mysoc->country_code."' AND taux != 0";
$sql.=" WHERE t.active=1 AND t.fk_pays = p.rowid AND p.code='".$mysoc->country_code."' AND taux <> 0";
$sql.=" ORDER BY t.taux ASC";
$resql=$db->query($sql);
if ($resql)
......
......@@ -137,7 +137,7 @@ class Categorie extends CommonObject
* -3 : categorie invalide
* -4 : category already exists
*/
function create($user='')
function create($user)
{
global $conf,$langs,$hookmanager;
$langs->load('categories');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment