diff --git a/htdocs/compta/sociales/payments.php b/htdocs/compta/sociales/payments.php index 81aeaf3d9b9..89a841ff3ab 100644 --- a/htdocs/compta/sociales/payments.php +++ b/htdocs/compta/sociales/payments.php @@ -285,7 +285,7 @@ while ($i < min($num, $limit)) { // Employee print ""; - if(!empty($obj->uid)) { + if (!empty($obj->uid)) { $userstatic->id = $obj->uid; $userstatic->lastname = $obj->lastname; $userstatic->firstname = $obj->firstname; @@ -309,7 +309,6 @@ while ($i < min($num, $limit)) { // Account if (!empty($conf->banque->enabled)) { - // Bank transaction print ''; $accountlinestatic->id = $obj->fk_bank; diff --git a/htdocs/salaries/payments.php b/htdocs/salaries/payments.php index 7e5bf65a575..f02b33fb901 100644 --- a/htdocs/salaries/payments.php +++ b/htdocs/salaries/payments.php @@ -206,8 +206,8 @@ if ($search_date_start) $sql .= " AND s.datep >= '".$db->idate($search_date_ if ($search_date_end) $sql .= " AND s.datep <= '".$db->idate($search_date_end)."'"; if ($search_amount) $sql .= natural_search("s.amount", $search_amount, 1); if ($search_account > 0) $sql .= " AND b.fk_account=".((int) $search_account); -if($search_fk_bank) $sql .= " AND s.fk_bank=".((int) $search_fk_bank); -if($search_chq_number) $sql .= natural_search(array('s.num_payment'), $search_chq_number); +if ($search_fk_bank) $sql .= " AND s.fk_bank=".((int) $search_fk_bank); +if ($search_chq_number) $sql .= natural_search(array('s.num_payment'), $search_chq_number); if ($search_type_id > 0) { $sql .= " AND s.fk_typepayment=".$search_type_id; @@ -454,7 +454,6 @@ while ($i < ($limit ? min($num, $limit) : $num)) { // Account if (!empty($conf->banque->enabled)) { - // Bank transaction print ''; $accountlinestatic->id = $obj->fk_bank;