Merge pull request #12101 from frederic34/typos
fix typo inspired by grandoc
This commit is contained in:
commit
cffe46729d
@ -311,7 +311,7 @@ foreach my $file (keys %filelist) {
|
|||||||
# Quote column names
|
# Quote column names
|
||||||
s/(^\s*)([^\s\-\(]+)(\s*)/$1"$2"$3/gi if (!/\bkey\b/i);
|
s/(^\s*)([^\s\-\(]+)(\s*)/$1"$2"$3/gi if (!/\bkey\b/i);
|
||||||
|
|
||||||
# Remap colums with names of existing system attribute
|
# Remap columns with names of existing system attribute
|
||||||
if (/"oid"/i) {
|
if (/"oid"/i) {
|
||||||
s/"oid"/"_oid"/g;
|
s/"oid"/"_oid"/g;
|
||||||
print STDERR "WARNING: table $table uses column \"oid\" which is renamed to \"_oid\"\nYou should fix application manually! Press return to continue.";
|
print STDERR "WARNING: table $table uses column \"oid\" which is renamed to \"_oid\"\nYou should fix application manually! Press return to continue.";
|
||||||
|
|||||||
@ -1282,7 +1282,7 @@ class Adherent extends CommonObject
|
|||||||
$this->societe = $obj->company;
|
$this->societe = $obj->company;
|
||||||
$this->company = $obj->company;
|
$this->company = $obj->company;
|
||||||
$this->socid = $obj->fk_soc;
|
$this->socid = $obj->fk_soc;
|
||||||
$this->fk_soc = $obj->fk_soc; // For backward comaptibility
|
$this->fk_soc = $obj->fk_soc; // For backward compatibility
|
||||||
$this->address = $obj->address;
|
$this->address = $obj->address;
|
||||||
$this->zip = $obj->zip;
|
$this->zip = $obj->zip;
|
||||||
$this->town = $obj->town;
|
$this->town = $obj->town;
|
||||||
|
|||||||
@ -416,7 +416,7 @@ if ($resql)
|
|||||||
print '<td class="liste_titre nowraponall" align="center">';
|
print '<td class="liste_titre nowraponall" align="center">';
|
||||||
if (! empty($conf->global->MAIN_LIST_FILTER_ON_DAY)) print '<input class="flat valignmiddle" type="text" size="1" maxlength="2" name="search_day" value="'.$search_day.'">';
|
if (! empty($conf->global->MAIN_LIST_FILTER_ON_DAY)) print '<input class="flat valignmiddle" type="text" size="1" maxlength="2" name="search_day" value="'.$search_day.'">';
|
||||||
print '<input class="flat valignmiddle width25" type="text" size="1" maxlength="2" name="search_month" value="'.$search_month.'">';
|
print '<input class="flat valignmiddle width25" type="text" size="1" maxlength="2" name="search_month" value="'.$search_month.'">';
|
||||||
$formother->select_year($search_year?$search_year:-1, 'search_year', 1, 20, 5, 0, 0, '', 'witdhauto valignmiddle');
|
$formother->select_year($search_year?$search_year:-1, 'search_year', 1, 20, 5, 0, 0, '', 'widthauto valignmiddle');
|
||||||
print '</td>';
|
print '</td>';
|
||||||
}
|
}
|
||||||
// Date next generation
|
// Date next generation
|
||||||
@ -425,7 +425,7 @@ if ($resql)
|
|||||||
print '<td class="liste_titre nowraponall" align="center">';
|
print '<td class="liste_titre nowraponall" align="center">';
|
||||||
if (! empty($conf->global->MAIN_LIST_FILTER_ON_DAY)) print '<input class="flat valignmiddle" type="text" size="1" maxlength="2" name="search_day_date_when" value="'.$search_day_date_when.'">';
|
if (! empty($conf->global->MAIN_LIST_FILTER_ON_DAY)) print '<input class="flat valignmiddle" type="text" size="1" maxlength="2" name="search_day_date_when" value="'.$search_day_date_when.'">';
|
||||||
print '<input class="flat valignmiddle width25" type="text" size="1" maxlength="2" name="search_month_date_when" value="'.$search_month_date_when.'">';
|
print '<input class="flat valignmiddle width25" type="text" size="1" maxlength="2" name="search_month_date_when" value="'.$search_month_date_when.'">';
|
||||||
$formother->select_year($search_year_date_when?$search_year_date_when:-1, 'search_year_date_when', 1, 20, 5, 0, 0, '', 'witdhauto valignmiddle');
|
$formother->select_year($search_year_date_when?$search_year_date_when:-1, 'search_year_date_when', 1, 20, 5, 0, 0, '', 'widthauto valignmiddle');
|
||||||
print '</td>';
|
print '</td>';
|
||||||
}
|
}
|
||||||
// Extra fields
|
// Extra fields
|
||||||
|
|||||||
@ -63,7 +63,7 @@ abstract class CommonDocGenerator
|
|||||||
|
|
||||||
// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
|
// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
|
||||||
/**
|
/**
|
||||||
* Define array with couple subtitution key => subtitution value
|
* Define array with couple substitution key => substitution value
|
||||||
*
|
*
|
||||||
* @param User $user User
|
* @param User $user User
|
||||||
* @param Translate $outputlangs Language object for output
|
* @param Translate $outputlangs Language object for output
|
||||||
@ -101,7 +101,7 @@ abstract class CommonDocGenerator
|
|||||||
|
|
||||||
// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
|
// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
|
||||||
/**
|
/**
|
||||||
* Define array with couple subtitution key => subtitution value
|
* Define array with couple substitution key => substitution value
|
||||||
*
|
*
|
||||||
* @param Societe $mysoc Object thirdparty
|
* @param Societe $mysoc Object thirdparty
|
||||||
* @param Translate $outputlangs Language object for output
|
* @param Translate $outputlangs Language object for output
|
||||||
@ -161,7 +161,7 @@ abstract class CommonDocGenerator
|
|||||||
|
|
||||||
// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
|
// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
|
||||||
/**
|
/**
|
||||||
* Define array with couple subtitution key => subtitution value
|
* Define array with couple substitution key => substitution value
|
||||||
*
|
*
|
||||||
* @param Societe $object Object
|
* @param Societe $object Object
|
||||||
* @param Translate $outputlangs Language object for output
|
* @param Translate $outputlangs Language object for output
|
||||||
@ -242,7 +242,7 @@ abstract class CommonDocGenerator
|
|||||||
|
|
||||||
// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
|
// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
|
||||||
/**
|
/**
|
||||||
* Define array with couple subtitution key => subtitution value
|
* Define array with couple substitution key => substitution value
|
||||||
*
|
*
|
||||||
* @param Contact $object contact
|
* @param Contact $object contact
|
||||||
* @param Translate $outputlangs object for output
|
* @param Translate $outputlangs object for output
|
||||||
@ -723,7 +723,7 @@ abstract class CommonDocGenerator
|
|||||||
|
|
||||||
// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
|
// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
|
||||||
/**
|
/**
|
||||||
* Define array with couple subtitution key => subtitution value
|
* Define array with couple substitution key => substitution value
|
||||||
*
|
*
|
||||||
* @param Object $object Dolibarr Object
|
* @param Object $object Dolibarr Object
|
||||||
* @param Translate $outputlangs Language object for output
|
* @param Translate $outputlangs Language object for output
|
||||||
|
|||||||
@ -1625,7 +1625,7 @@ class pdf_cornas extends ModelePDFSuppliersOrders
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* uasort callback function to Sort colums fields
|
* uasort callback function to Sort columns fields
|
||||||
*
|
*
|
||||||
* @param array $a PDF lines array fields configs
|
* @param array $a PDF lines array fields configs
|
||||||
* @param array $b PDF lines array fields configs
|
* @param array $b PDF lines array fields configs
|
||||||
@ -1663,7 +1663,7 @@ class pdf_cornas extends ModelePDFSuppliersOrders
|
|||||||
// Positionning
|
// Positionning
|
||||||
$curX = $this->page_largeur-$this->marge_droite; // start from right
|
$curX = $this->page_largeur-$this->marge_droite; // start from right
|
||||||
|
|
||||||
// Array witdh
|
// Array width
|
||||||
$arrayWidth = $this->page_largeur-$this->marge_droite-$this->marge_gauche;
|
$arrayWidth = $this->page_largeur-$this->marge_droite-$this->marge_gauche;
|
||||||
|
|
||||||
// Count flexible column
|
// Count flexible column
|
||||||
@ -1671,7 +1671,7 @@ class pdf_cornas extends ModelePDFSuppliersOrders
|
|||||||
$countFlexCol = 0;
|
$countFlexCol = 0;
|
||||||
foreach ($this->cols as $colKey => &$colDef)
|
foreach ($this->cols as $colKey => &$colDef)
|
||||||
{
|
{
|
||||||
if (!$this->getColumnStatus($colKey)) continue; // continue if desable
|
if (!$this->getColumnStatus($colKey)) continue; // continue if disabled
|
||||||
|
|
||||||
if (!empty($colDef['scale'])){
|
if (!empty($colDef['scale'])){
|
||||||
// In case of column widht is defined by percentage
|
// In case of column widht is defined by percentage
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user