fix some translations
This commit is contained in:
parent
e7f56b67d8
commit
af88f44fd9
@ -316,7 +316,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 Translate $outputlangs Language object for output
|
* @param Translate $outputlangs Language object for output
|
||||||
* @return array Array of substitution key->code
|
* @return array Array of substitution key->code
|
||||||
@ -445,7 +445,7 @@ abstract class CommonDocGenerator
|
|||||||
$array_key.'_already_payed_all_locale'=>price(price2num($already_payed_all, 'MT'), 0, $outputlangs),
|
$array_key.'_already_payed_all_locale'=>price(price2num($already_payed_all, 'MT'), 0, $outputlangs),
|
||||||
$array_key.'_already_payed_all'=> price2num($already_payed_all, 'MT'),
|
$array_key.'_already_payed_all'=> price2num($already_payed_all, 'MT'),
|
||||||
|
|
||||||
// Remain to pay with all know infrmation (except open direct debit requests)
|
// Remain to pay with all know information (except open direct debit requests)
|
||||||
$array_key.'_remain_to_pay_locale'=>price(price2num($object->total_ttc - $remain_to_pay, 'MT'), 0, $outputlangs),
|
$array_key.'_remain_to_pay_locale'=>price(price2num($object->total_ttc - $remain_to_pay, 'MT'), 0, $outputlangs),
|
||||||
$array_key.'_remain_to_pay'=>price2num($object->total_ttc - $remain_to_pay, 'MT')
|
$array_key.'_remain_to_pay'=>price2num($object->total_ttc - $remain_to_pay, 'MT')
|
||||||
);
|
);
|
||||||
@ -479,7 +479,7 @@ abstract class CommonDocGenerator
|
|||||||
$totalUp = 0;
|
$totalUp = 0;
|
||||||
foreach ($object->lines as $line)
|
foreach ($object->lines as $line)
|
||||||
{
|
{
|
||||||
// $line->tva_tx format depends on database field accuraty, no reliable. This is kept for backward comaptibility
|
// $line->tva_tx format depends on database field accuraty, no reliable. This is kept for backward compatibility
|
||||||
if (empty($resarray[$array_key.'_total_vat_'.$line->tva_tx])) $resarray[$array_key.'_total_vat_'.$line->tva_tx]=0;
|
if (empty($resarray[$array_key.'_total_vat_'.$line->tva_tx])) $resarray[$array_key.'_total_vat_'.$line->tva_tx]=0;
|
||||||
$resarray[$array_key.'_total_vat_'.$line->tva_tx]+=$line->total_tva;
|
$resarray[$array_key.'_total_vat_'.$line->tva_tx]+=$line->total_tva;
|
||||||
$resarray[$array_key.'_total_vat_locale_'.$line->tva_tx]=price($resarray[$array_key.'_total_vat_'.$line->tva_tx]);
|
$resarray[$array_key.'_total_vat_locale_'.$line->tva_tx]=price($resarray[$array_key.'_total_vat_'.$line->tva_tx]);
|
||||||
@ -868,7 +868,7 @@ abstract class CommonDocGenerator
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 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
|
||||||
@ -907,7 +907,7 @@ abstract class CommonDocGenerator
|
|||||||
// 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
|
||||||
@ -915,10 +915,10 @@ abstract class CommonDocGenerator
|
|||||||
$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 desabled
|
||||||
|
|
||||||
if(!empty($colDef['scale'])){
|
if(!empty($colDef['scale'])){
|
||||||
// In case of column widht is defined by percentage
|
// In case of column width is defined by percentage
|
||||||
$colDef['width'] = abs($arrayWidth * $colDef['scale'] / 100);
|
$colDef['width'] = abs($arrayWidth * $colDef['scale'] / 100);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user