예제 #1
0
    $board = new Contrat($db);
    $dashboardlines[] = $board->load_board($user, "inactives");
    // Number of active services (expired)
    $dashboardlines[] = $board->load_board($user, "expired");
}
// Number of invoices customers (has paid)
if (!empty($conf->facture->enabled) && $user->rights->facture->lire) {
    include_once DOL_DOCUMENT_ROOT . '/compta/facture/class/facture.class.php';
    $board = new Facture($db);
    $dashboardlines[] = $board->load_board($user);
}
// Number of supplier invoices (has paid)
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) {
예제 #2
0
파일: index.php 프로젝트: ADDAdev/Dolibarr
    include_once DOL_DOCUMENT_ROOT . '/compta/facture/class/facture.class.php';
    $board = new Facture($db);
    $board->load_board($user);
    $board->warning_delay = $conf->facture->client->warning_delay / 60 / 60 / 24;
    $board->label = $langs->trans("CustomerBillsUnpaid");
    $board->url = DOL_URL_ROOT . '/compta/facture/impayees.php';
    $board->img = img_object($langs->trans("Bills"), "bill");
    $rowspan++;
    $dashboardlines[] = $board;
}
// Number of supplier invoices (has paid)
if (!empty($conf->fournisseur->enabled) && !empty($conf->facture->enabled) && $user->rights->facture->lire) {
    $langs->load("bills");
    include_once DOL_DOCUMENT_ROOT . '/fourn/class/fournisseur.facture.class.php';
    $board = new FactureFournisseur($db);
    $board->load_board($user);
    $board->warning_delay = $conf->facture->fournisseur->warning_delay / 60 / 60 / 24;
    $board->label = $langs->trans("SupplierBillsToPay");
    $board->url = DOL_URL_ROOT . '/fourn/facture/list.php?filtre=paye:0';
    $board->img = img_object($langs->trans("Bills"), "bill");
    $rowspan++;
    $dashboardlines[] = $board;
}
// Number of transactions to conciliate
if (!empty($conf->banque->enabled) && $user->rights->banque->lire && !$user->societe_id) {
    $langs->load("banks");
    include_once DOL_DOCUMENT_ROOT . '/compta/bank/class/account.class.php';
    $board = new Account($db);
    $found = $board->load_board($user);
    if ($found > 0) {
        $board->warning_delay = $conf->bank->rappro->warning_delay / 60 / 60 / 24;