|
@@ -4423,17 +4423,17 @@ if ($action == 'create') {
|
|
|
print '<tr><td class="titlefield fieldname_type">'.$langs->trans('Type').'</td><td class="valuefield fieldname_type">';
|
|
|
print $object->getLibType(2);
|
|
|
if ($object->module_source) {
|
|
|
- print ' <span class="opacitymediumbycolor paddingleft">('.$langs->trans("POS").' '.ucfirst($object->module_source).' - '.$langs->trans("Terminal").' '.$object->pos_source.')</span>';
|
|
|
+ print ' <span class="opacitymediumbycolor paddingleft">('.$langs->trans("POS").' '.dol_escape_htmltag(ucfirst($object->module_source)).' - '.$langs->trans("Terminal").' '.dol_escape_htmltag($object->pos_source).')</span>';
|
|
|
}
|
|
|
if ($object->type == Facture::TYPE_REPLACEMENT) {
|
|
|
$facreplaced = new Facture($db);
|
|
|
$facreplaced->fetch($object->fk_facture_source);
|
|
|
- print ' <span class="opacitymediumbycolor paddingleft">'.$langs->transnoentities("ReplaceInvoice", $facreplaced->getNomUrl(1)).'</span>';
|
|
|
+ print ' <span class="opacitymediumbycolor paddingleft">'.$langs->transnoentities("ReplaceInvoice", $facreplaced->getNomUrl(1, '', 32)).'</span>';
|
|
|
}
|
|
|
if ($object->type == Facture::TYPE_CREDIT_NOTE && !empty($object->fk_facture_source)) {
|
|
|
$facusing = new Facture($db);
|
|
|
$facusing->fetch($object->fk_facture_source);
|
|
|
- print ' <span class="opacitymediumbycolor paddingleft">'.$langs->transnoentities("CorrectInvoice", $facusing->getNomUrl(1)).'</span>';
|
|
|
+ print ' <span class="opacitymediumbycolor paddingleft">'.$langs->transnoentities("CorrectInvoice", $facusing->getNomUrl(1, '', 32)).'</span>';
|
|
|
}
|
|
|
|
|
|
$facidavoir = $object->getListIdAvoirFromInvoice();
|
|
@@ -4448,7 +4448,7 @@ if ($action == 'create') {
|
|
|
}
|
|
|
$facavoir = new Facture($db);
|
|
|
$facavoir->fetch($id);
|
|
|
- print $facavoir->getNomUrl(1);
|
|
|
+ print $facavoir->getNomUrl(1, '', 32);
|
|
|
}
|
|
|
print '</span>';
|
|
|
}
|
|
@@ -4477,7 +4477,7 @@ if ($action == 'create') {
|
|
|
if ($result > 0) {
|
|
|
print ' <span class="opacitymediumbycolor paddingleft">';
|
|
|
$s = $langs->transnoentities("GeneratedFromTemplate", '{s1}');
|
|
|
- $s = str_replace('{s1}', '<a href="'.DOL_URL_ROOT.'/compta/facture/card-rec.php?facid='.$tmptemplate->id.'">'.dol_escape_htmltag($tmptemplate->ref).'</a>', $s);
|
|
|
+ $s = str_replace('{s1}', $tmptemplate->getNomUrl(1, '', 32), $s);
|
|
|
print $s;
|
|
|
print '</span>';
|
|
|
}
|