|
@@ -43,7 +43,7 @@ $show_files = GETPOST('show_files', 'int');
|
|
|
$confirm = GETPOST('confirm', 'alpha');
|
|
|
$toselect = GETPOST('toselect', 'array');
|
|
|
$contextpage = GETPOST('contextpage', 'aZ') ? GETPOST('contextpage', 'aZ') : 'myobjectlist'; // To manage different context of search
|
|
|
-$optioncss = GETPOST('optioncss', 'aZ'); // Option for the css output (always '' except when 'print')
|
|
|
+$optioncss = GETPOST('optioncss', 'aZ'); // Option for the css output (always '' except when 'print')
|
|
|
|
|
|
|
|
|
// Select Box
|
|
@@ -186,7 +186,7 @@ if (empty($chartaccountcode))
|
|
|
}
|
|
|
|
|
|
// Expense report lines
|
|
|
-$sql = "SELECT er.ref, er.rowid as erid, er.date_debut,";
|
|
|
+$sql = "SELECT er.ref, er.rowid as erid, er.date_debut, er.date_valid,";
|
|
|
$sql .= " erd.rowid, erd.fk_c_type_fees, erd.comments, erd.total_ht as price, erd.fk_code_ventilation, erd.tva_tx as tva_tx_line, erd.vat_src_code, erd.date,";
|
|
|
$sql .= " f.id as type_fees_id, f.code as type_fees_code, f.label as type_fees_label, f.accountancy_code as code_buy,";
|
|
|
$sql .= " aa.rowid as aarowid";
|
|
@@ -291,6 +291,9 @@ if ($result) {
|
|
|
print '<tr class="liste_titre_filter">';
|
|
|
print '<td class="liste_titre"></td>';
|
|
|
print '<td class="liste_titre"><input type="text" class="flat maxwidth50" name="search_expensereport" value="'.dol_escape_htmltag($search_expensereport).'"></td>';
|
|
|
+ if (! empty($conf->global->ACCOUNTANCY_USE_EXPENSE_REPORT_VALIDATION_DATE)) {
|
|
|
+ print '<td class="liste_titre"></td>';
|
|
|
+ }
|
|
|
print '<td class="liste_titre center nowraponall minwidth100imp">';
|
|
|
if (!empty($conf->global->MAIN_LIST_FILTER_ON_DAY)) print '<input class="flat valignmiddle maxwidth25" type="text" maxlength="2" name="search_day" value="'.$search_day.'">';
|
|
|
print '<input class="flat valignmiddle maxwidth25" type="text" maxlength="2" name="search_month" value="'.$search_month.'">';
|
|
@@ -311,6 +314,9 @@ if ($result) {
|
|
|
print '<tr class="liste_titre">';
|
|
|
print_liste_field_titre("LineId", $_SERVER["PHP_SELF"], "erd.rowid", "", $param, '', $sortfield, $sortorder);
|
|
|
print_liste_field_titre("ExpenseReport", $_SERVER["PHP_SELF"], "er.ref", "", $param, '', $sortfield, $sortorder);
|
|
|
+ if (! empty($conf->global->ACCOUNTANCY_USE_EXPENSE_REPORT_VALIDATION_DATE)) {
|
|
|
+ print_liste_field_titre("DateValidation", $_SERVER["PHP_SELF"], "er.date_valid", "", $param, '', $sortfield, $sortorder, 'center ');
|
|
|
+ }
|
|
|
print_liste_field_titre("DateOfLine", $_SERVER["PHP_SELF"], "erd.date, erd.rowid", "", $param, '', $sortfield, $sortorder, 'center ');
|
|
|
print_liste_field_titre("TypeFees", $_SERVER["PHP_SELF"], "f.label", "", $param, '', $sortfield, $sortorder);
|
|
|
print_liste_field_titre("Description", $_SERVER["PHP_SELF"], "erd.comments", "", $param, '', $sortfield, $sortorder);
|
|
@@ -344,6 +350,11 @@ if ($result) {
|
|
|
// Ref Expense report
|
|
|
print '<td>'.$expensereport_static->getNomUrl(1).'</td>';
|
|
|
|
|
|
+ // Date validation
|
|
|
+ if (! empty($conf->global->ACCOUNTANCY_USE_EXPENSE_REPORT_VALIDATION_DATE)) {
|
|
|
+ print '<td class="center">'.dol_print_date($db->jdate($objp->date_valid), 'day').'</td>';
|
|
|
+ }
|
|
|
+
|
|
|
// Date
|
|
|
print '<td class="center">'.dol_print_date($db->jdate($objp->date), 'day').'</td>';
|
|
|
|