Пример #1
0
            print price($line->debit) . $sep;
            print price($line->credit) . $sep;
            print 'E' . $sep;
            print length_accountg($line->code_tiers) . $sep;
            print "\n";
        }
    }
} else {
    $title_page = $langs->trans("AccountBalance") . ' ' . dol_print_date($search_date_start) . '-' . dol_print_date($search_date_end);
    llxHeader('', $title_page);
    /*
     * List
     */
    $nbtotalofrecords = 0;
    if (empty($conf->global->MAIN_DISABLE_FULL_SCANLIST)) {
        $nbtotalofrecords = $object->fetchAllBalance($sortorder, $sortfield, 0, 0, $filter);
        if ($nbtotalofrecords < 0) {
            setEventMessages($object->error, $object->errors, 'errors');
        }
    }
    $result = $object->fetchAllBalance($sortorder, $sortfield, $limit, $offset, $filter);
    if ($result < 0) {
        setEventMessages($object->error, $object->errors, 'errors');
    }
    print_barre_liste($title_page, $page, $_SERVER["PHP_SELF"], $options, $sortfield, $sortorder, '', $result, $nbtotalofrecords);
    print '<form method="GET" id="searchFormList" action="' . $_SERVER["PHP_SELF"] . '">';
    print '<div class="tabsAction">' . "\n";
    print '<div class="inline-block divButAction"><input type="submit" name="button_export_csv" class="butAction" value="' . $langs->trans("Export") . '" /></div>';
    print '</div>';
    print '<div class="liste_titre">';
    print $langs->trans('DateStart') . ': ';