|
@@ -363,11 +363,11 @@ if (GETPOST('button_removefilter_x', 'alpha') || GETPOST('button_removefilter',
|
|
|
$search_datelimit_start = '';
|
|
|
$search_datelimit_end = '';
|
|
|
$search_fac_rec_source_title = '';
|
|
|
- $option = '';
|
|
|
- $filter = '';
|
|
|
$toselect = array();
|
|
|
$search_array_options = array();
|
|
|
$search_categ_cus = 0;
|
|
|
+ $option = '';
|
|
|
+ $socid = 0;
|
|
|
}
|
|
|
|
|
|
if (empty($reshook)) {
|
|
@@ -919,7 +919,7 @@ if ($resql) {
|
|
|
|
|
|
llxHeader('', $langs->trans('CustomersInvoices'), 'EN:Customers_Invoices|FR:Factures_Clients|ES:Facturas_a_clientes');
|
|
|
|
|
|
- if ($socid) {
|
|
|
+ if ($socid > 0) {
|
|
|
$soc = new Societe($db);
|
|
|
$soc->fetch($socid);
|
|
|
if (empty($search_company)) {
|
|
@@ -1151,8 +1151,9 @@ if ($resql) {
|
|
|
print '<input type="hidden" name="sortorder" value="'.$sortorder.'">';
|
|
|
print '<input type="hidden" name="search_status" value="'.$search_status.'">';
|
|
|
print '<input type="hidden" name="contextpage" value="'.$contextpage.'">';
|
|
|
+ print '<input type="hidden" name="socid" value="'.$socid.'">';
|
|
|
|
|
|
- print_barre_liste($langs->trans('BillsCustomers').' '.($socid ? ' '.$soc->name : ''), $page, $_SERVER["PHP_SELF"], $param, $sortfield, $sortorder, $massactionbutton, $num, $nbtotalofrecords, 'bill', 0, $newcardbutton, '', $limit, 0, 0, 1);
|
|
|
+ print_barre_liste($langs->trans('BillsCustomers').' '.($socid > 0 ? ' '.$soc->name : ''), $page, $_SERVER["PHP_SELF"], $param, $sortfield, $sortorder, $massactionbutton, $num, $nbtotalofrecords, 'bill', 0, $newcardbutton, '', $limit, 0, 0, 1);
|
|
|
|
|
|
$topicmail = "SendBillRef";
|
|
|
$modelmail = "facture_send";
|
|
@@ -1320,7 +1321,7 @@ if ($resql) {
|
|
|
}
|
|
|
// Thirdparty
|
|
|
if (!empty($arrayfields['s.nom']['checked'])) {
|
|
|
- print '<td class="liste_titre"><input class="flat maxwidth75imp" type="text" name="search_company" value="'.$search_company.'"></td>';
|
|
|
+ print '<td class="liste_titre"><input class="flat maxwidth75imp" type="text" name="search_company" value="'.$search_company.'"'.($socid > 0 ? " disabled" : "").'></td>';
|
|
|
}
|
|
|
// Alias
|
|
|
if (!empty($arrayfields['s.name_alias']['checked'])) {
|