Merge branch '6.0' of git@github.com:Dolibarr/dolibarr.git into 7.0
Conflicts: htdocs/societe/card.php
This commit is contained in:
commit
2b2e68c78d
@ -2,7 +2,7 @@
|
|||||||
/* Copyright (C) 2005 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
/* Copyright (C) 2005 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||||
* Copyright (C) 2005-2016 Laurent Destailleur <eldy@users.sourceforge.net>
|
* Copyright (C) 2005-2016 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||||
* Copyright (C) 2005-2009 Regis Houssin <regis.houssin@capnetworks.com>
|
* Copyright (C) 2005-2009 Regis Houssin <regis.houssin@capnetworks.com>
|
||||||
* Copyright (C) 2010-2012 Juanjo Menent <jmenent@2byte.es>
|
* Copyright (C) 2010-2018 Juanjo Menent <jmenent@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
|
||||||
@ -101,7 +101,7 @@ if ($socid) $sql.= " AND s.rowid = ".$socid;
|
|||||||
if ($search_line) $sql.= " AND pl.rowid = '".$db->escape($search_line)."'";
|
if ($search_line) $sql.= " AND pl.rowid = '".$db->escape($search_line)."'";
|
||||||
if ($search_bon) $sql.= natural_search("p.ref", $search_bon);
|
if ($search_bon) $sql.= natural_search("p.ref", $search_bon);
|
||||||
if ($search_code) $sql.= natural_search("s.code_client", $search_code);
|
if ($search_code) $sql.= natural_search("s.code_client", $search_code);
|
||||||
if ($search_company) natural_search("s.nom", $search_company);
|
if ($search_company) $sql.= natural_search("s.nom", $search_company);
|
||||||
|
|
||||||
$sql.= $db->order($sortfield,$sortorder);
|
$sql.= $db->order($sortfield,$sortorder);
|
||||||
|
|
||||||
@ -123,12 +123,13 @@ if ($result)
|
|||||||
|
|
||||||
$urladd = "&statut=".$statut;
|
$urladd = "&statut=".$statut;
|
||||||
$urladd .= "&search_bon=".$search_bon;
|
$urladd .= "&search_bon=".$search_bon;
|
||||||
|
if ($limit > 0 && $limit != $conf->liste_limit) $urladd.='&limit='.urlencode($limit);
|
||||||
print_barre_liste($langs->trans("WithdrawalsLines"), $page, $_SERVER["PHP_SELF"], $urladd, $sortfield, $sortorder, '', $num, $nbtotalofrecords, 'title_generic', 0, '', '', $limit);
|
|
||||||
|
|
||||||
print"\n<!-- debut table -->\n";
|
print"\n<!-- debut table -->\n";
|
||||||
print '<form action="'.$_SERVER["PHP_SELF"].'" method="GET">';
|
print '<form action="'.$_SERVER["PHP_SELF"].'" method="GET">';
|
||||||
|
|
||||||
|
print_barre_liste($langs->trans("WithdrawalsLines"), $page, $_SERVER["PHP_SELF"], $urladd, $sortfield, $sortorder, '', $num, $nbtotalofrecords, 'title_generic', 0, '', '', $limit);
|
||||||
|
|
||||||
$moreforfilter='';
|
$moreforfilter='';
|
||||||
|
|
||||||
print '<div class="div-table-responsive">';
|
print '<div class="div-table-responsive">';
|
||||||
|
|||||||
@ -647,7 +647,9 @@ if (empty($reshook))
|
|||||||
setEventMessages($object->error, $object->errors, 'errors');
|
setEventMessages($object->error, $object->errors, 'errors');
|
||||||
$error++;
|
$error++;
|
||||||
}
|
}
|
||||||
|
// Prevent thirdparty's emptying if a user hasn't rights $user->rights->categorie->lire (in such a case, post of 'custcats' is not defined)
|
||||||
|
if (!empty($user->rights->categorie->lire))
|
||||||
|
{
|
||||||
// Customer categories association
|
// Customer categories association
|
||||||
$categories = GETPOST( 'custcats', 'array' );
|
$categories = GETPOST( 'custcats', 'array' );
|
||||||
$object->setCategories($categories, 'customer');
|
$object->setCategories($categories, 'customer');
|
||||||
@ -655,6 +657,7 @@ if (empty($reshook))
|
|||||||
// Supplier categories association
|
// Supplier categories association
|
||||||
$categories = GETPOST('suppcats', 'array');
|
$categories = GETPOST('suppcats', 'array');
|
||||||
$object->setCategories($categories, 'supplier');
|
$object->setCategories($categories, 'supplier');
|
||||||
|
}
|
||||||
|
|
||||||
// Logo/Photo save
|
// Logo/Photo save
|
||||||
$dir = $conf->societe->multidir_output[$object->entity]."/".$object->id."/logos";
|
$dir = $conf->societe->multidir_output[$object->entity]."/".$object->id."/logos";
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user