forked from Wavyzz/dolibarr
NEW The link "In accountancy" is now clicable to reach bookkeeping
This commit is contained in:
@@ -3398,13 +3398,13 @@ function dol_banner_tab($object, $paramid, $morehtml = '', $shownav = 1, $fieldi
|
||||
$morehtmlstatus .= $tmptxt;
|
||||
}
|
||||
|
||||
// Add if object was dispatched "into accountancy"
|
||||
// Say if object was dispatched/transferred "into accountancy"
|
||||
if (isModEnabled('accounting') && in_array($object->element, array('bank', 'paiementcharge', 'facture', 'invoice', 'invoice_supplier', 'expensereport', 'payment_various'))) {
|
||||
// Note: For 'chargesociales', 'salaries'... this is the payments that are dispatched (so element = 'bank')
|
||||
if (method_exists($object, 'getVentilExportCompta')) {
|
||||
$accounted = $object->getVentilExportCompta();
|
||||
$accounted = $object->getVentilExportCompta(1);
|
||||
$langs->load("accountancy");
|
||||
$morehtmlstatus .= '</div><div class="statusref statusrefbis"><span class="opacitymedium">'.($accounted > 0 ? $langs->trans("Accounted") : $langs->trans("NotYetAccounted")).'</span>';
|
||||
$morehtmlstatus .= '</div><div class="statusref statusrefbis"><span class="opacitymedium">'.($accounted > 0 ? '<a href="'.DOL_URL_ROOT.'/accountancy/bookkeeping/list.php?search_mvt_num='.urlencode($accounted).'">'.$langs->trans("Accounted").'</a>' : $langs->trans("NotYetAccounted")).'</span>';
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user