Merge branch '13.0' of git@github.com:Dolibarr/dolibarr.git into 13.0
This commit is contained in:
commit
c2fe28c02b
@ -11,6 +11,7 @@
|
|||||||
* Copyright (C) 2017 Alexandre Spangaro <aspangaro@open-dsi.fr>
|
* Copyright (C) 2017 Alexandre Spangaro <aspangaro@open-dsi.fr>
|
||||||
* Copyright (C) 2018 Frédéric France <frederic.france@netlogic.fr>
|
* Copyright (C) 2018 Frédéric France <frederic.france@netlogic.fr>
|
||||||
* Copyright (C) 2020 Tobias Sekan <tobias.sekan@startmail.com>
|
* Copyright (C) 2020 Tobias Sekan <tobias.sekan@startmail.com>
|
||||||
|
* Copyright (C) 2021 Ferran Marcet <fmarcet@2byte.es>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU General Public License as published by
|
* it under the terms of the GNU General Public License as published by
|
||||||
@ -171,7 +172,7 @@ if ($search_company) $sql .= natural_search('s.nom', $search_company);
|
|||||||
if ($search_payment_type != '') $sql .= " AND c.code='".$db->escape($search_payment_type)."'";
|
if ($search_payment_type != '') $sql .= " AND c.code='".$db->escape($search_payment_type)."'";
|
||||||
if ($search_cheque_num != '') $sql .= natural_search('p.num_paiement', $search_cheque_num);
|
if ($search_cheque_num != '') $sql .= natural_search('p.num_paiement', $search_cheque_num);
|
||||||
if ($search_amount) $sql .= natural_search('p.amount', $search_amount, 1);
|
if ($search_amount) $sql .= natural_search('p.amount', $search_amount, 1);
|
||||||
if ($search_bank_account > 0) $sql .= ' AND b.fk_account='.$search_bank_account."'";
|
if ($search_bank_account > 0) $sql .= ' AND b.fk_account='.((int) $search_bank_account);
|
||||||
|
|
||||||
if ($search_all) $sql .= natural_search(array_keys($fieldstosearchall), $search_all);
|
if ($search_all) $sql .= natural_search(array_keys($fieldstosearchall), $search_all);
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user