Ejemplo n.º 1
0
if (!empty($conf->fournisseur->enabled) && !empty($conf->facture->enabled) && $user->rights->facture->lire) {
    include_once DOL_DOCUMENT_ROOT . '/fourn/class/fournisseur.facture.class.php';
    $board = new FactureFournisseur($db);
    $dashboardlines[] = $board->load_board($user);
}
// Number of transactions to conciliate
if (!empty($conf->banque->enabled) && $user->rights->banque->lire && !$user->societe_id) {
    include_once DOL_DOCUMENT_ROOT . '/compta/bank/class/account.class.php';
    $board = new Account($db);
    $dashboardlines[] = $board->load_board($user);
}
// Number of cheque to send
if (!empty($conf->banque->enabled) && $user->rights->banque->lire && !$user->societe_id) {
    include_once DOL_DOCUMENT_ROOT . '/compta/paiement/cheque/class/remisecheque.class.php';
    $board = new RemiseCheque($db);
    $dashboardlines[] = $board->load_board($user);
}
// Number of foundation members
if (!empty($conf->adherent->enabled) && $user->rights->adherent->lire && !$user->societe_id) {
    include_once DOL_DOCUMENT_ROOT . '/adherents/class/adherent.class.php';
    $board = new Adherent($db);
    $dashboardlines[] = $board->load_board($user);
}
// Number of expense reports to pay
if (!empty($conf->expensereport->enabled) && $user->rights->expensereport->lire) {
    include_once DOL_DOCUMENT_ROOT . '/expensereport/class/expensereport.class.php';
    $board = new ExpenseReport($db);
    $dashboardlines[] = $board->load_board($user);
}
// Calculate total nb of late
$totallate = 0;
Ejemplo n.º 2
0
    $found = $board->load_board($user);
    if ($found > 0) {
        $board->warning_delay = $conf->bank->rappro->warning_delay / 60 / 60 / 24;
        $board->label = $langs->trans("TransactionsToConciliate");
        $board->url = DOL_URL_ROOT . '/compta/bank/index.php?leftmenu=bank&mainmenu=bank';
        $board->img = img_object($langs->trans("TransactionsToConciliate"), "payment");
        $rowspan++;
        $dashboardlines[] = $board;
    }
}
// Number of cheque to send
if (!empty($conf->banque->enabled) && $user->rights->banque->lire && !$user->societe_id) {
    $langs->load("banks");
    include_once DOL_DOCUMENT_ROOT . '/compta/paiement/cheque/class/remisecheque.class.php';
    $board = new RemiseCheque($db);
    $board->load_board($user);
    $board->warning_delay = $conf->bank->cheque->warning_delay / 60 / 60 / 24;
    $board->label = $langs->trans("BankChecksToReceipt");
    $board->url = DOL_URL_ROOT . '/compta/paiement/cheque/index.php?leftmenu=checks&mainmenu=accountancy';
    $board->img = img_object($langs->trans("BankChecksToReceipt"), "payment");
    $rowspan++;
    $dashboardlines[] = $board;
}
// Number of foundation members
if (!empty($conf->adherent->enabled) && $user->rights->adherent->lire && !$user->societe_id) {
    $langs->load("members");
    include_once DOL_DOCUMENT_ROOT . '/adherents/class/adherent.class.php';
    $board = new Adherent($db);
    $board->load_board($user);
    $board->warning_delay = $conf->adherent->cotisation->warning_delay / 60 / 60 / 24;
    $board->label = $langs->trans("MembersWithSubscriptionToReceive");