NEW 10.0: link to template of origin in bill cards for bills created from a template
This commit is contained in:
parent
21a0e962ad
commit
6227d14cf3
@ -3817,9 +3817,14 @@ elseif ($id > 0 || ! empty($ref))
|
|||||||
|
|
||||||
if ($object->fk_fac_rec_source > 0)
|
if ($object->fk_fac_rec_source > 0)
|
||||||
{
|
{
|
||||||
$tmptemplate = new FactureRec($db);
|
$tmptemplate = new FactureRec($db);
|
||||||
$result = $tmptemplate->fetch($object->fk_fac_rec_source);
|
$result = $tmptemplate->fetch($object->fk_fac_rec_source);
|
||||||
if ($result > 0) print '. '.$langs->trans("GeneratedFromTemplate", $tmptemplate->ref);
|
if ($result > 0) {
|
||||||
|
print '. '.$langs->trans(
|
||||||
|
"GeneratedFromTemplate",
|
||||||
|
'<a href="'.DOL_MAIN_URL_ROOT.'/compta/facture/fiche-rec.php?facid='.$tmptemplate->id.'">'.$tmptemplate->ref.'</a>'
|
||||||
|
);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
print '</td></tr>';
|
print '</td></tr>';
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user