Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop
This commit is contained in:
commit
7ad0a3d8d6
@ -854,7 +854,7 @@ class ActionComm extends CommonObject
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Return URL of event
|
* Return URL of event
|
||||||
* Use $this->id, $this->type_code and $this->label
|
* Use $this->id, $this->type_code, $this->label and $this->type_label
|
||||||
*
|
*
|
||||||
* @param int $withpicto 0=Pas de picto, 1=Inclut le picto dans le lien, 2=Picto seul
|
* @param int $withpicto 0=Pas de picto, 1=Inclut le picto dans le lien, 2=Picto seul
|
||||||
* @param int $maxlength Nombre de caracteres max dans libelle
|
* @param int $maxlength Nombre de caracteres max dans libelle
|
||||||
@ -884,15 +884,15 @@ class ActionComm extends CommonObject
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
$libelle=(empty($this->libelle)?$label:$this->libelle.(($label && $label != $this->libelle)?' '.$label:''));
|
$libelle=(empty($this->libelle)?$label:$this->libelle.(($label && $label != $this->libelle)?' '.$label:''));
|
||||||
if (! empty($conf->global->AGENDA_USE_EVENT_TYPE) && empty($libelle)) $libelle=$langs->transnoentities("Action".$this->type_code);
|
if (! empty($conf->global->AGENDA_USE_EVENT_TYPE) && empty($libelle)) $libelle=($langs->transnoentities("Action".$this->type_code) != "Action".$this->type_code)?$langs->transnoentities("Action".$this->type_code):$this->type_label;
|
||||||
$libelleshort=dol_trunc($libelle,$maxlength);
|
$libelleshort=dol_trunc($libelle,$maxlength);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($withpicto)
|
if ($withpicto)
|
||||||
{
|
{
|
||||||
if (! empty($conf->global->AGENDA_USE_EVENT_TYPE))
|
if (! empty($conf->global->AGENDA_USE_EVENT_TYPE)) // Add code into ()
|
||||||
{
|
{
|
||||||
$libelle.=(($this->type_code && $libelle!=$langs->trans("Action".$this->type_code) && $langs->trans("Action".$this->type_code)!="Action".$this->type_code)?' ('.$langs->trans("Action".$this->type_code).')':'');
|
$libelle.=(($this->type_code && $libelle!=$langs->transnoentities("Action".$this->type_code) && $langs->transnoentities("Action".$this->type_code)!="Action".$this->type_code)?' ('.$langs->transnoentities("Action".$this->type_code).')':'');
|
||||||
}
|
}
|
||||||
$result.=$lien.img_object($langs->trans("ShowAction").': '.$libelle,($overwritepicto?$overwritepicto:'action')).$lienfin;
|
$result.=$lien.img_object($langs->trans("ShowAction").': '.$libelle,($overwritepicto?$overwritepicto:'action')).$lienfin;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -414,7 +414,7 @@ $sql.= ' a.percent,';
|
|||||||
$sql.= ' a.fk_user_author,a.fk_user_action,a.fk_user_done,';
|
$sql.= ' a.fk_user_author,a.fk_user_action,a.fk_user_done,';
|
||||||
$sql.= ' a.transparency, a.priority, a.fulldayevent, a.location,';
|
$sql.= ' a.transparency, a.priority, a.fulldayevent, a.location,';
|
||||||
$sql.= ' a.fk_soc, a.fk_contact,';
|
$sql.= ' a.fk_soc, a.fk_contact,';
|
||||||
$sql.= ' ca.code';
|
$sql.= ' ca.code as type_code, ca.libelle as type_label';
|
||||||
$sql.= ' FROM '.MAIN_DB_PREFIX.'c_actioncomm as ca, '.MAIN_DB_PREFIX."actioncomm as a";
|
$sql.= ' FROM '.MAIN_DB_PREFIX.'c_actioncomm as ca, '.MAIN_DB_PREFIX."actioncomm as a";
|
||||||
if (! $user->rights->societe->client->voir && ! $socid) $sql.= " LEFT JOIN ".MAIN_DB_PREFIX."societe_commerciaux as sc ON a.fk_soc = sc.fk_soc";
|
if (! $user->rights->societe->client->voir && ! $socid) $sql.= " LEFT JOIN ".MAIN_DB_PREFIX."societe_commerciaux as sc ON a.fk_soc = sc.fk_soc";
|
||||||
if ($usergroup > 0) $sql.= ", ".MAIN_DB_PREFIX."usergroup_user as ugu";
|
if ($usergroup > 0) $sql.= ", ".MAIN_DB_PREFIX."usergroup_user as ugu";
|
||||||
@ -484,7 +484,7 @@ if ($resql)
|
|||||||
$obj = $db->fetch_object($resql);
|
$obj = $db->fetch_object($resql);
|
||||||
|
|
||||||
// Discard auto action if option is on
|
// Discard auto action if option is on
|
||||||
if (! empty($conf->global->AGENDA_ALWAYS_HIDE_AUTO) && $obj->code == 'AC_OTH_AUTO')
|
if (! empty($conf->global->AGENDA_ALWAYS_HIDE_AUTO) && $obj->type_code == 'AC_OTH_AUTO')
|
||||||
{
|
{
|
||||||
$i++;
|
$i++;
|
||||||
continue;
|
continue;
|
||||||
@ -495,7 +495,8 @@ if ($resql)
|
|||||||
$event->id=$obj->id;
|
$event->id=$obj->id;
|
||||||
$event->datep=$db->jdate($obj->datep); // datep and datef are GMT date
|
$event->datep=$db->jdate($obj->datep); // datep and datef are GMT date
|
||||||
$event->datef=$db->jdate($obj->datep2);
|
$event->datef=$db->jdate($obj->datep2);
|
||||||
$event->type_code=$obj->code;
|
$event->type_code=$obj->type_code;
|
||||||
|
$event->type_label=$obj->type_label;
|
||||||
$event->libelle=$obj->label;
|
$event->libelle=$obj->label;
|
||||||
$event->percentage=$obj->percent;
|
$event->percentage=$obj->percent;
|
||||||
$event->authorid=$obj->fk_user_author; // user id of creator
|
$event->authorid=$obj->fk_user_author; // user id of creator
|
||||||
|
|||||||
@ -156,7 +156,7 @@ if ($type) $param.="&type=".$type;
|
|||||||
$sql = "SELECT s.nom as societe, s.rowid as socid, s.client,";
|
$sql = "SELECT s.nom as societe, s.rowid as socid, s.client,";
|
||||||
$sql.= " a.id, a.datep as dp, a.datep2 as dp2,";
|
$sql.= " a.id, a.datep as dp, a.datep2 as dp2,";
|
||||||
$sql.= " a.fk_contact, a.note, a.label, a.percent as percent,";
|
$sql.= " a.fk_contact, a.note, a.label, a.percent as percent,";
|
||||||
$sql.= " c.code as code, c.libelle,";
|
$sql.= " c.code as type_code, c.libelle as type_label,";
|
||||||
$sql.= " ua.login as loginauthor, ua.rowid as useridauthor,";
|
$sql.= " ua.login as loginauthor, ua.rowid as useridauthor,";
|
||||||
$sql.= " ut.login as logintodo, ut.rowid as useridtodo,";
|
$sql.= " ut.login as logintodo, ut.rowid as useridtodo,";
|
||||||
//$sql.= " ud.login as logindone, ud.rowid as useriddone,";
|
//$sql.= " ud.login as logindone, ud.rowid as useriddone,";
|
||||||
@ -293,7 +293,7 @@ if ($resql)
|
|||||||
$obj = $db->fetch_object($resql);
|
$obj = $db->fetch_object($resql);
|
||||||
|
|
||||||
// Discard auto action if option is on
|
// Discard auto action if option is on
|
||||||
if (! empty($conf->global->AGENDA_ALWAYS_HIDE_AUTO) && $obj->code == 'AC_OTH_AUTO')
|
if (! empty($conf->global->AGENDA_ALWAYS_HIDE_AUTO) && $obj->type_code == 'AC_OTH_AUTO')
|
||||||
{
|
{
|
||||||
$i++;
|
$i++;
|
||||||
continue;
|
continue;
|
||||||
@ -306,7 +306,8 @@ if ($resql)
|
|||||||
// Action (type)
|
// Action (type)
|
||||||
print '<td>';
|
print '<td>';
|
||||||
$actionstatic->id=$obj->id;
|
$actionstatic->id=$obj->id;
|
||||||
$actionstatic->type_code=$obj->code;
|
$actionstatic->type_code=$obj->type_code;
|
||||||
|
$actionstatic->type_label=$obj->type_label;
|
||||||
$actionstatic->libelle=$obj->label;
|
$actionstatic->libelle=$obj->label;
|
||||||
print $actionstatic->getNomUrl(1,28);
|
print $actionstatic->getNomUrl(1,28);
|
||||||
print '</td>';
|
print '</td>';
|
||||||
|
|||||||
@ -1165,13 +1165,13 @@ else if ($id > 0 || ! empty($ref))
|
|||||||
|
|
||||||
$formconfirm='';
|
$formconfirm='';
|
||||||
|
|
||||||
// Confirmation de la suppression de la fiche d'intervention
|
// Confirm deletion of intervention
|
||||||
if ($action == 'delete')
|
if ($action == 'delete')
|
||||||
{
|
{
|
||||||
$formconfirm = $form->formconfirm($_SERVER["PHP_SELF"].'?id='.$object->id, $langs->trans('DeleteIntervention'), $langs->trans('ConfirmDeleteIntervention'), 'confirm_delete','',0,1);
|
$formconfirm = $form->formconfirm($_SERVER["PHP_SELF"].'?id='.$object->id, $langs->trans('DeleteIntervention'), $langs->trans('ConfirmDeleteIntervention'), 'confirm_delete','',0,1);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Confirmation validation
|
// Confirm validation
|
||||||
if ($action == 'validate')
|
if ($action == 'validate')
|
||||||
{
|
{
|
||||||
// on verifie si l'objet est en numerotation provisoire
|
// on verifie si l'objet est en numerotation provisoire
|
||||||
@ -1191,16 +1191,16 @@ else if ($id > 0 || ! empty($ref))
|
|||||||
}
|
}
|
||||||
$text=$langs->trans('ConfirmValidateIntervention',$numref);
|
$text=$langs->trans('ConfirmValidateIntervention',$numref);
|
||||||
|
|
||||||
$formconfirm = $form->formconfirm($_SERVER["PHP_SELF"].'?id='.$object->id, $langs->trans('ValidateIntervention'), $text, 'confirm_validate','',0,1);
|
$formconfirm = $form->formconfirm($_SERVER["PHP_SELF"].'?id='.$object->id, $langs->trans('ValidateIntervention'), $text, 'confirm_validate','',1,1);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Confirmation de la validation de la fiche d'intervention
|
// Confirm back to draft
|
||||||
if ($action == 'modify')
|
if ($action == 'modify')
|
||||||
{
|
{
|
||||||
$formconfirm = $form->formconfirm($_SERVER["PHP_SELF"].'?id='.$object->id, $langs->trans('ModifyIntervention'), $langs->trans('ConfirmModifyIntervention'), 'confirm_modify','',0,1);
|
$formconfirm = $form->formconfirm($_SERVER["PHP_SELF"].'?id='.$object->id, $langs->trans('ModifyIntervention'), $langs->trans('ConfirmModifyIntervention'), 'confirm_modify','',0,1);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Confirmation de la suppression d'une ligne d'intervention
|
// Confirm deletion of line
|
||||||
if ($action == 'ask_deleteline')
|
if ($action == 'ask_deleteline')
|
||||||
{
|
{
|
||||||
$formconfirm = $form->formconfirm($_SERVER["PHP_SELF"].'?id='.$object->id.'&line_id='.$lineid, $langs->trans('DeleteInterventionLine'), $langs->trans('ConfirmDeleteInterventionLine'), 'confirm_deleteline','',0,1);
|
$formconfirm = $form->formconfirm($_SERVER["PHP_SELF"].'?id='.$object->id.'&line_id='.$lineid, $langs->trans('DeleteInterventionLine'), $langs->trans('ConfirmDeleteInterventionLine'), 'confirm_deleteline','',0,1);
|
||||||
@ -1599,7 +1599,7 @@ else if ($id > 0 || ! empty($ref))
|
|||||||
if ($object->statut == 0 && $user->rights->ficheinter->creer && (count($object->lines) > 0 || ! empty($conf->global->FICHINTER_DISABLE_DETAILS)))
|
if ($object->statut == 0 && $user->rights->ficheinter->creer && (count($object->lines) > 0 || ! empty($conf->global->FICHINTER_DISABLE_DETAILS)))
|
||||||
{
|
{
|
||||||
print '<div class="inline-block divButAction"><a class="butAction" href="card.php?id='.$object->id.'&action=validate"';
|
print '<div class="inline-block divButAction"><a class="butAction" href="card.php?id='.$object->id.'&action=validate"';
|
||||||
print '>'.$langs->trans("Valid").'</a></div>';
|
print '>'.$langs->trans("Validate").'</a></div>';
|
||||||
}
|
}
|
||||||
|
|
||||||
// Modify
|
// Modify
|
||||||
|
|||||||
@ -32,6 +32,7 @@ require_once DOL_DOCUMENT_ROOT.'/fourn/class/fournisseur.class.php';
|
|||||||
require_once DOL_DOCUMENT_ROOT.'/core/class/html.formother.class.php';
|
require_once DOL_DOCUMENT_ROOT.'/core/class/html.formother.class.php';
|
||||||
require_once DOL_DOCUMENT_ROOT.'/core/lib/date.lib.php';
|
require_once DOL_DOCUMENT_ROOT.'/core/lib/date.lib.php';
|
||||||
require_once DOL_DOCUMENT_ROOT.'/core/class/html.formfile.class.php';
|
require_once DOL_DOCUMENT_ROOT.'/core/class/html.formfile.class.php';
|
||||||
|
require_once DOL_DOCUMENT_ROOT.'/projet/class/project.class.php';
|
||||||
|
|
||||||
if (!$user->rights->fournisseur->facture->lire) accessforbidden();
|
if (!$user->rights->fournisseur->facture->lire) accessforbidden();
|
||||||
|
|
||||||
@ -109,8 +110,10 @@ llxHeader('',$langs->trans("SuppliersInvoices"),'EN:Suppliers_Invoices|FR:Factur
|
|||||||
$sql = "SELECT s.rowid as socid, s.nom as name, ";
|
$sql = "SELECT s.rowid as socid, s.nom as name, ";
|
||||||
$sql.= " fac.rowid as facid, fac.ref, fac.ref_supplier, fac.datef, fac.date_lim_reglement as date_echeance,";
|
$sql.= " fac.rowid as facid, fac.ref, fac.ref_supplier, fac.datef, fac.date_lim_reglement as date_echeance,";
|
||||||
$sql.= " fac.total_ht, fac.total_ttc, fac.paye as paye, fac.fk_statut as fk_statut, fac.libelle";
|
$sql.= " fac.total_ht, fac.total_ttc, fac.paye as paye, fac.fk_statut as fk_statut, fac.libelle";
|
||||||
|
if (! empty($conf->global->PROJECT_SHOW_REF_INTO_LISTS)) $sql.=", p.rowid as project_id, p.ref as project_ref";
|
||||||
if (!$user->rights->societe->client->voir && !$socid) $sql .= ", sc.fk_soc, sc.fk_user ";
|
if (!$user->rights->societe->client->voir && !$socid) $sql .= ", sc.fk_soc, sc.fk_user ";
|
||||||
$sql.= " FROM ".MAIN_DB_PREFIX."societe as s, ".MAIN_DB_PREFIX."facture_fourn as fac";
|
$sql.= " FROM ".MAIN_DB_PREFIX."societe as s, ".MAIN_DB_PREFIX."facture_fourn as fac";
|
||||||
|
if (! empty($conf->global->PROJECT_SHOW_REF_INTO_LISTS)) $sql.=" LEFT JOIN ".MAIN_DB_PREFIX."projet as p ON p.rowid = fac.fk_projet";
|
||||||
if (!$user->rights->societe->client->voir && !$socid) $sql .= ", ".MAIN_DB_PREFIX."societe_commerciaux as sc";
|
if (!$user->rights->societe->client->voir && !$socid) $sql .= ", ".MAIN_DB_PREFIX."societe_commerciaux as sc";
|
||||||
$sql.= " WHERE fac.entity = ".$conf->entity;
|
$sql.= " WHERE fac.entity = ".$conf->entity;
|
||||||
$sql.= " AND fac.fk_soc = s.rowid";
|
$sql.= " AND fac.fk_soc = s.rowid";
|
||||||
@ -212,6 +215,7 @@ if ($resql)
|
|||||||
print_liste_field_titre($langs->trans("DateDue"),$_SERVER["PHP_SELF"],"fac.date_lim_reglement","",$param,'align="center"',$sortfield,$sortorder);
|
print_liste_field_titre($langs->trans("DateDue"),$_SERVER["PHP_SELF"],"fac.date_lim_reglement","",$param,'align="center"',$sortfield,$sortorder);
|
||||||
print_liste_field_titre($langs->trans("Label"),$_SERVER["PHP_SELF"],"fac.libelle","",$param,"",$sortfield,$sortorder);
|
print_liste_field_titre($langs->trans("Label"),$_SERVER["PHP_SELF"],"fac.libelle","",$param,"",$sortfield,$sortorder);
|
||||||
print_liste_field_titre($langs->trans("ThirdParty"),$_SERVER["PHP_SELF"],"s.nom","",$param,"",$sortfield,$sortorder);
|
print_liste_field_titre($langs->trans("ThirdParty"),$_SERVER["PHP_SELF"],"s.nom","",$param,"",$sortfield,$sortorder);
|
||||||
|
if (! empty($conf->global->PROJECT_SHOW_REF_INTO_LISTS)) print_liste_field_titre($langs->trans("Project"),$_SERVER["PHP_SELF"],"p.ref","",$param,'',$sortfield,$sortorder);
|
||||||
print_liste_field_titre($langs->trans("AmountHT"),$_SERVER["PHP_SELF"],"fac.total_ht","",$param,'align="right"',$sortfield,$sortorder);
|
print_liste_field_titre($langs->trans("AmountHT"),$_SERVER["PHP_SELF"],"fac.total_ht","",$param,'align="right"',$sortfield,$sortorder);
|
||||||
print_liste_field_titre($langs->trans("AmountTTC"),$_SERVER["PHP_SELF"],"fac.total_ttc","",$param,'align="right"',$sortfield,$sortorder);
|
print_liste_field_titre($langs->trans("AmountTTC"),$_SERVER["PHP_SELF"],"fac.total_ttc","",$param,'align="right"',$sortfield,$sortorder);
|
||||||
print_liste_field_titre($langs->trans("Status"),$_SERVER["PHP_SELF"],"fk_statut,paye","",$param,'align="center"',$sortfield,$sortorder);
|
print_liste_field_titre($langs->trans("Status"),$_SERVER["PHP_SELF"],"fk_statut,paye","",$param,'align="center"',$sortfield,$sortorder);
|
||||||
@ -239,7 +243,13 @@ if ($resql)
|
|||||||
print '</td>';
|
print '</td>';
|
||||||
print '<td class="liste_titre" align="left">';
|
print '<td class="liste_titre" align="left">';
|
||||||
print '<input class="flat" type="text" size="8" name="search_societe" value="'.GETPOST("search_societe").'">';
|
print '<input class="flat" type="text" size="8" name="search_societe" value="'.GETPOST("search_societe").'">';
|
||||||
print '</td><td class="liste_titre" align="right">';
|
print '</td>';
|
||||||
|
if (! empty($conf->global->PROJECT_SHOW_REF_INTO_LISTS))
|
||||||
|
{
|
||||||
|
print '<td class="liste_titre">';
|
||||||
|
print '</td>';
|
||||||
|
}
|
||||||
|
print '<td class="liste_titre" align="right">';
|
||||||
print '<input class="flat" type="text" size="8" name="search_montant_ht" value="'.GETPOST("search_montant_ht").'">';
|
print '<input class="flat" type="text" size="8" name="search_montant_ht" value="'.GETPOST("search_montant_ht").'">';
|
||||||
print '</td><td class="liste_titre" align="right">';
|
print '</td><td class="liste_titre" align="right">';
|
||||||
print '<input class="flat" type="text" size="8" name="search_montant_ttc" value="'.GETPOST("search_montant_ttc").'">';
|
print '<input class="flat" type="text" size="8" name="search_montant_ttc" value="'.GETPOST("search_montant_ttc").'">';
|
||||||
@ -252,6 +262,7 @@ if ($resql)
|
|||||||
|
|
||||||
$facturestatic=new FactureFournisseur($db);
|
$facturestatic=new FactureFournisseur($db);
|
||||||
$supplierstatic=new Fournisseur($db);
|
$supplierstatic=new Fournisseur($db);
|
||||||
|
$projectstatic=new Project($db);
|
||||||
|
|
||||||
$var=true;
|
$var=true;
|
||||||
$total=0;
|
$total=0;
|
||||||
@ -281,6 +292,15 @@ if ($resql)
|
|||||||
$supplierstatic->id=$obj->socid;
|
$supplierstatic->id=$obj->socid;
|
||||||
$supplierstatic->name=$obj->name;
|
$supplierstatic->name=$obj->name;
|
||||||
print $supplierstatic->getNomUrl(1,'',12);
|
print $supplierstatic->getNomUrl(1,'',12);
|
||||||
|
print '</td>';
|
||||||
|
if (! empty($conf->global->PROJECT_SHOW_REF_INTO_LISTS))
|
||||||
|
{
|
||||||
|
$projectstatic->id=$obj->project_id;
|
||||||
|
$projectstatic->ref=$obj->project_ref;
|
||||||
|
print '<td>';
|
||||||
|
if ($obj->project_id > 0) print $projectstatic->getNomUrl(1);
|
||||||
|
print '</td>';
|
||||||
|
}
|
||||||
print '<td align="right">'.price($obj->total_ht).'</td>';
|
print '<td align="right">'.price($obj->total_ht).'</td>';
|
||||||
print '<td align="right">'.price($obj->total_ttc).'</td>';
|
print '<td align="right">'.price($obj->total_ttc).'</td>';
|
||||||
$total+=$obj->total_ht;
|
$total+=$obj->total_ht;
|
||||||
@ -301,6 +321,7 @@ if ($resql)
|
|||||||
// Print total
|
// Print total
|
||||||
print '<tr class="liste_total">';
|
print '<tr class="liste_total">';
|
||||||
print '<td class="liste_total" colspan="6" align="left">'.$langs->trans("Total").'</td>';
|
print '<td class="liste_total" colspan="6" align="left">'.$langs->trans("Total").'</td>';
|
||||||
|
if (! empty($conf->global->PROJECT_SHOW_REF_INTO_LISTS)) print '<td></td>';
|
||||||
print '<td class="liste_total" align="right">'.price($total).'</td>';
|
print '<td class="liste_total" align="right">'.price($total).'</td>';
|
||||||
print '<td class="liste_total" align="right">'.price($total_ttc).'</td>';
|
print '<td class="liste_total" align="right">'.price($total_ttc).'</td>';
|
||||||
print '<td class="liste_total" align="center"> </td>';
|
print '<td class="liste_total" align="center"> </td>';
|
||||||
|
|||||||
@ -1535,6 +1535,7 @@ DeleteFiscalYear=Delete fiscal year
|
|||||||
ConfirmDeleteFiscalYear=Are you sure to delete this fiscal year ?
|
ConfirmDeleteFiscalYear=Are you sure to delete this fiscal year ?
|
||||||
Opened=Opened
|
Opened=Opened
|
||||||
Closed=Closed
|
Closed=Closed
|
||||||
|
AlwaysEditable=Can always be edited
|
||||||
|
|
||||||
Format=Format
|
Format=Format
|
||||||
TypePaymentDesc=0:Customer payment type, 1:Supplier payment type, 2:Both customers and suppliers payment type
|
TypePaymentDesc=0:Customer payment type, 1:Supplier payment type, 2:Both customers and suppliers payment type
|
||||||
|
|||||||
@ -81,7 +81,7 @@ if (GETPOST('newcompany') || GETPOST('socid','int') || GETPOST('id_fourn'))
|
|||||||
if (! empty($conf->global->SOCIETE_ALLOW_SEARCH_ON_ROWID)) $sql.=" OR rowid = '" . $db->escape($socid) . "'";
|
if (! empty($conf->global->SOCIETE_ALLOW_SEARCH_ON_ROWID)) $sql.=" OR rowid = '" . $db->escape($socid) . "'";
|
||||||
$sql.=")";
|
$sql.=")";
|
||||||
}
|
}
|
||||||
if (! empty($_GET["filter"])) $sql.= " AND ".$_GET["filter"]; // Add other filters
|
if (GETPOST("filter")) $sql.= " AND ".GETPOST("filter","alpha"); // Add other filters
|
||||||
$sql.= " ORDER BY nom ASC";
|
$sql.= " ORDER BY nom ASC";
|
||||||
|
|
||||||
//dol_syslog("ajaxcompanies", LOG_DEBUG);
|
//dol_syslog("ajaxcompanies", LOG_DEBUG);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user