Пример #1
0
    $board = new CommandeFournisseur($db);
    $dashboardlines[] = $board->load_board($user);
}
// Number of commercial proposals opened (expired)
if (!empty($conf->propal->enabled) && $user->rights->propale->lire) {
    include_once DOL_DOCUMENT_ROOT . '/comm/propal/class/propal.class.php';
    $board = new Propal($db);
    $dashboardlines[] = $board->load_board($user, "opened");
    // Number of commercial proposals CLOSED signed (billed)
    $dashboardlines[] = $board->load_board($user, "signed");
}
// Number of services enabled (delayed)
if (!empty($conf->contrat->enabled) && $user->rights->contrat->lire) {
    include_once DOL_DOCUMENT_ROOT . '/contrat/class/contrat.class.php';
    $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);
}
Пример #2
0
    include_once DOL_DOCUMENT_ROOT . '/contrat/class/contrat.class.php';
    $board = new Contrat($db);
    $board->load_board($user, "inactives");
    $board->warning_delay = $conf->contrat->services->inactifs->warning_delay / 60 / 60 / 24;
    $board->label = $langs->trans("BoardNotActivatedServices");
    $board->url = DOL_URL_ROOT . '/contrat/services.php?mainmenu=commercial&leftmenu=contracts&mode=0';
    $board->img = img_object($langs->trans("Contract"), "contract");
    $rowspan++;
    $dashboardlines[] = $board;
}
// Number of active services (expired)
if (!empty($conf->contrat->enabled) && $user->rights->contrat->lire) {
    $langs->load("contracts");
    include_once DOL_DOCUMENT_ROOT . '/contrat/class/contrat.class.php';
    $board = new Contrat($db);
    $board->load_board($user, "expired");
    $board->warning_delay = $conf->contrat->services->expires->warning_delay / 60 / 60 / 24;
    $board->label = $langs->trans("BoardRunningServices");
    $board->url = DOL_URL_ROOT . '/contrat/services.php?mainmenu=commercial&leftmenu=contracts&mode=4&filter=expired';
    $board->img = img_object($langs->trans("Contract"), "contract");
    $rowspan++;
    $dashboardlines[] = $board;
}
// Number of invoices customers (has paid)
if (!empty($conf->facture->enabled) && $user->rights->facture->lire) {
    $langs->load("bills");
    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");