Fixing style errors.

This commit is contained in:
stickler-ci 2021-11-28 13:42:25 +00:00
parent 5a165ae2bf
commit a933793b8a
2 changed files with 6 additions and 6 deletions

View File

@ -173,7 +173,7 @@ if ($action == 'update') {
if (GETPOSTISSET('PDF_BOLD_PRODUCT_LABEL')) { if (GETPOSTISSET('PDF_BOLD_PRODUCT_LABEL')) {
dolibarr_set_const($db, "PDF_BOLD_PRODUCT_LABEL", GETPOST('PDF_BOLD_PRODUCT_LABEL', 'alpha'), 'chaine', 0, '', $conf->entity); dolibarr_set_const($db, "PDF_BOLD_PRODUCT_LABEL", GETPOST('PDF_BOLD_PRODUCT_LABEL', 'alpha'), 'chaine', 0, '', $conf->entity);
} }
if (GETPOSTISSET('PDF_BOLD_PRODUCT_REF_AND_PERIOD')){ if (GETPOSTISSET('PDF_BOLD_PRODUCT_REF_AND_PERIOD')) {
dolibarr_set_const($db, "PDF_BOLD_PRODUCT_REF_AND_PERIOD", GETPOST('PDF_BOLD_PRODUCT_REF_AND_PERIOD', 'alpha'), 'chaine', 0, '', $conf->entity); dolibarr_set_const($db, "PDF_BOLD_PRODUCT_REF_AND_PERIOD", GETPOST('PDF_BOLD_PRODUCT_REF_AND_PERIOD', 'alpha'), 'chaine', 0, '', $conf->entity);
} }

View File

@ -1363,7 +1363,7 @@ function pdf_getlinedesc($object, $i, $outputlangs, $hideref = 0, $hidedesc = 0,
// Description short of product line // Description short of product line
$libelleproduitservice = $label; $libelleproduitservice = $label;
if (!empty($libelleproduitservice) && !empty($conf->global->PDF_BOLD_PRODUCT_LABEL)) { if (!empty($libelleproduitservice) && !empty($conf->global->PDF_BOLD_PRODUCT_LABEL)) {
if (!dol_textishtml($libelleproduitservice)){ if (!dol_textishtml($libelleproduitservice)) {
$libelleproduitservice = str_replace("\n", '__N__', $libelleproduitservice); $libelleproduitservice = str_replace("\n", '__N__', $libelleproduitservice);
} }
$libelleproduitservice = '<b>'.$libelleproduitservice.'</b>'; $libelleproduitservice = '<b>'.$libelleproduitservice.'</b>';
@ -1495,7 +1495,7 @@ function pdf_getlinedesc($object, $i, $outputlangs, $hideref = 0, $hidedesc = 0,
} }
if (!empty($ref_prodserv) && !empty($conf->global->PDF_BOLD_PRODUCT_REF_AND_PERIOD)) { if (!empty($ref_prodserv) && !empty($conf->global->PDF_BOLD_PRODUCT_REF_AND_PERIOD)) {
if (!dol_textishtml($libelleproduitservice)){ if (!dol_textishtml($libelleproduitservice)) {
$libelleproduitservice = str_replace("\n", '__N__', $libelleproduitservice); $libelleproduitservice = str_replace("\n", '__N__', $libelleproduitservice);
} }
$ref_prodserv = '<b>'.$ref_prodserv.'</b>'; $ref_prodserv = '<b>'.$ref_prodserv.'</b>';
@ -1533,7 +1533,7 @@ function pdf_getlinedesc($object, $i, $outputlangs, $hideref = 0, $hidedesc = 0,
} }
//print '>'.$outputlangs->charset_output.','.$period; //print '>'.$outputlangs->charset_output.','.$period;
if (!empty($conf->global->PDF_BOLD_PRODUCT_REF_AND_PERIOD)) { if (!empty($conf->global->PDF_BOLD_PRODUCT_REF_AND_PERIOD)) {
if (!dol_textishtml($libelleproduitservice)){ if (!dol_textishtml($libelleproduitservice)) {
$libelleproduitservice = str_replace("\n", '__N__', $libelleproduitservice); $libelleproduitservice = str_replace("\n", '__N__', $libelleproduitservice);
} }
$libelleproduitservice .= '<b style="color:#333666;" ><em>'."__N__</b> ".$period.'</em>'; $libelleproduitservice .= '<b style="color:#333666;" ><em>'."__N__</b> ".$period.'</em>';