fix: change societe by company varaible name in all file

This commit is contained in:
Florian HENRY 2021-05-20 12:36:26 +02:00
parent a3c28edfbb
commit d93cf0beb7

View File

@ -85,8 +85,8 @@ $search_refcustomer = GETPOST('search_refcustomer', 'alpha');
$search_type = GETPOST('search_type', 'int'); $search_type = GETPOST('search_type', 'int');
$search_project_ref = GETPOST('search_project_ref', 'alpha'); $search_project_ref = GETPOST('search_project_ref', 'alpha');
$search_project = GETPOST('search_project', 'alpha'); $search_project = GETPOST('search_project', 'alpha');
$search_societe = GETPOST('search_societe', 'alpha'); $search_company = GETPOST('search_company', 'alpha');
$search_societe_alias = GETPOST('search_societe_alias', 'alpha'); $search_company_alias = GETPOST('search_company_alias', 'alpha');
$search_montant_ht = GETPOST('search_montant_ht', 'alpha'); $search_montant_ht = GETPOST('search_montant_ht', 'alpha');
$search_montant_vat = GETPOST('search_montant_vat', 'alpha'); $search_montant_vat = GETPOST('search_montant_vat', 'alpha');
$search_montant_localtax1 = GETPOST('search_montant_localtax1', 'alpha'); $search_montant_localtax1 = GETPOST('search_montant_localtax1', 'alpha');
@ -304,8 +304,8 @@ if (GETPOST('button_removefilter_x', 'alpha') || GETPOST('button_removefilter',
$search_type = ''; $search_type = '';
$search_project_ref = ''; $search_project_ref = '';
$search_project = ''; $search_project = '';
$search_societe = ''; $search_company = '';
$search_societe_alias = ''; $search_company_alias = '';
$search_montant_ht = ''; $search_montant_ht = '';
$search_montant_vat = ''; $search_montant_vat = '';
$search_montant_localtax1 = ''; $search_montant_localtax1 = '';
@ -363,7 +363,7 @@ if (empty($reshook)) {
include DOL_DOCUMENT_ROOT.'/core/actions_massactions.inc.php'; include DOL_DOCUMENT_ROOT.'/core/actions_massactions.inc.php';
} }
if ($massaction == 'makepayment') { if ($massaction == 'makepayment_confirm') {
$arrayofselected = is_array($toselect) ? $toselect : array(); $arrayofselected = is_array($toselect) ? $toselect : array();
$loc = dol_buildpath('/compta/paiement.php', 2).'?action=create&facids='.implode(',', $arrayofselected); $loc = dol_buildpath('/compta/paiement.php', 2).'?action=create&facids='.implode(',', $arrayofselected);
@ -574,11 +574,11 @@ if ($search_project_ref) {
if ($search_project) { if ($search_project) {
$sql .= natural_search('p.title', $search_project); $sql .= natural_search('p.title', $search_project);
} }
if ($search_societe) { if ($search_company) {
$sql .= natural_search('s.nom', $search_societe); $sql .= natural_search('s.nom', $search_company);
} }
if ($search_societe_alias) { if ($search_company_alias) {
$sql .= natural_search('s.name_alias', $search_societe_alias); $sql .= natural_search('s.name_alias', $search_company_alias);
} }
if ($search_town) { if ($search_town) {
$sql .= natural_search('s.town', $search_town); $sql .= natural_search('s.town', $search_town);
@ -782,8 +782,8 @@ if ($resql) {
if ($socid) { if ($socid) {
$soc = new Societe($db); $soc = new Societe($db);
$soc->fetch($socid); $soc->fetch($socid);
if (empty($search_societe)) { if (empty($search_company)) {
$search_societe = $soc->name; $search_company = $soc->name;
} }
} }
@ -854,11 +854,11 @@ if ($resql) {
if ($search_type != '') { if ($search_type != '') {
$param .= '&search_type='.urlencode($search_type); $param .= '&search_type='.urlencode($search_type);
} }
if ($search_societe) { if ($search_company) {
$param .= '&search_societe='.urlencode($search_societe); $param .= '&search_societe='.urlencode($search_company);
} }
if ($search_societe_alias) { if ($search_company_alias) {
$param .= '&search_societe_alias='.urlencode($search_societe_alias); $param .= '&search_societe_alias='.urlencode($search_company_alias);
} }
if ($search_town) { if ($search_town) {
$param .= '&search_town='.urlencode($search_town); $param .= '&search_town='.urlencode($search_town);
@ -948,7 +948,7 @@ if ($resql) {
'generate_doc'=>img_picto('', 'pdf', 'class="pictofixedwidth"').$langs->trans("ReGeneratePDF"), 'generate_doc'=>img_picto('', 'pdf', 'class="pictofixedwidth"').$langs->trans("ReGeneratePDF"),
'builddoc'=>img_picto('', 'pdf', 'class="pictofixedwidth"').$langs->trans("PDFMerge"), 'builddoc'=>img_picto('', 'pdf', 'class="pictofixedwidth"').$langs->trans("PDFMerge"),
'presend'=>img_picto('', 'email', 'class="pictofixedwidth"').$langs->trans("SendByMail"), 'presend'=>img_picto('', 'email', 'class="pictofixedwidth"').$langs->trans("SendByMail"),
//'makepayment'=>$langs->trans("InvoicePaymentsLimits"), TODO Blank page when using this 'makepayment'=>$langs->trans("InvoicePaymentsLimits"),
); );
if ($conf->prelevement->enabled && !empty($user->rights->prelevement->bons->creer)) { if ($conf->prelevement->enabled && !empty($user->rights->prelevement->bons->creer)) {
$langs->load("withdrawals"); $langs->load("withdrawals");
@ -1142,11 +1142,11 @@ if ($resql) {
} }
// Thirdparty // Thirdparty
if (!empty($arrayfields['s.nom']['checked'])) { if (!empty($arrayfields['s.nom']['checked'])) {
print '<td class="liste_titre"><input class="flat maxwidth75imp" type="text" name="search_societe" value="'.$search_societe.'"></td>'; print '<td class="liste_titre"><input class="flat maxwidth75imp" type="text" name="search_company" value="'.$search_company.'"></td>';
} }
// Alias // Alias
if (!empty($arrayfields['s.name_alias']['checked'])) { if (!empty($arrayfields['s.name_alias']['checked'])) {
print '<td class="liste_titre"><input class="flat maxwidth75imp" type="text" name="search_societe_alias" value="'.$search_societe_alias.'"></td>'; print '<td class="liste_titre"><input class="flat maxwidth75imp" type="text" name="search_company_alias" value="'.$search_company_alias.'"></td>';
} }
// Town // Town
if (!empty($arrayfields['s.town']['checked'])) { if (!empty($arrayfields['s.town']['checked'])) {