Skip to content
Snippets Groups Projects
Commit 4aa9d92a authored by Maxime Kohlhaas's avatar Maxime Kohlhaas
Browse files

Display CheckReceipt on Payment card if exists

parent 7abc5369
No related branches found
No related tags found
No related merge requests found
......@@ -251,6 +251,19 @@ if (! empty($conf->banque->enabled))
print $bankline->getNomUrl(1,0,'showall');
print '</td>';
print '</tr>';
if($object->type_code == 'CHQ' && $bankline->fk_bordereau > 0) {
dol_include_once('/compta/paiement/cheque/class/remisecheque.class.php');
$bordereau = new RemiseCheque($db);
$bordereau->fetch($bankline->fk_bordereau);
print '<tr>';
print '<td>'.$langs->trans('CheckReceipt').'</td>';
print '<td colspan="3">';
print $bordereau->getNomUrl(1,0,'showall');
print '</td>';
print '</tr>';
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment