Debug v17
This commit is contained in:
parent
f452a199f0
commit
c13fefa09c
@ -385,14 +385,15 @@ if ($action == 'new') {
|
|||||||
print dol_get_fiche_end();
|
print dol_get_fiche_end();
|
||||||
|
|
||||||
print '<div class="center">';
|
print '<div class="center">';
|
||||||
print '<input type="submit" class="button" name="filter" value="'.dol_escape_htmltag($langs->trans("ToFilter")).'">';
|
print '<input type="submit" class="button small" name="filter" value="'.dol_escape_htmltag($langs->trans("ToFilter")).'">';
|
||||||
if ($search_date_start || $search_date_end || $filteraccountid > 0) {
|
if ($search_date_start || $search_date_end || $filteraccountid > 0) {
|
||||||
print ' ';
|
print ' ';
|
||||||
print '<input type="submit" class="button" name="removefilter" value="'.dol_escape_htmltag($langs->trans("RemoveFilter")).'">';
|
print '<input type="submit" class="button" name="removefilter small" value="'.dol_escape_htmltag($langs->trans("RemoveFilter")).'">';
|
||||||
}
|
}
|
||||||
print '</div>';
|
print '</div>';
|
||||||
print '</form>';
|
print '</form>';
|
||||||
print '<br>';
|
print '<br>';
|
||||||
|
print '<br>';
|
||||||
|
|
||||||
$sql = "SELECT ba.rowid as bid, ba.label,";
|
$sql = "SELECT ba.rowid as bid, ba.label,";
|
||||||
$sql .= " b.rowid as transactionid, b.label as transactionlabel, b.datec as datec, b.dateo as date, ";
|
$sql .= " b.rowid as transactionid, b.label as transactionlabel, b.datec as datec, b.dateo as date, ";
|
||||||
|
|||||||
@ -32,15 +32,23 @@ require_once DOL_DOCUMENT_ROOT.'/compta/bank/class/account.class.php';
|
|||||||
// Load translation files required by the page
|
// Load translation files required by the page
|
||||||
$langs->loadLangs(array('banks', 'categories', 'compta', 'bills'));
|
$langs->loadLangs(array('banks', 'categories', 'compta', 'bills'));
|
||||||
|
|
||||||
|
$checkdepositstatic = new RemiseCheque($db);
|
||||||
|
$accountstatic = new Account($db);
|
||||||
|
|
||||||
// Security check
|
// Security check
|
||||||
if ($user->socid) {
|
if ($user->socid) {
|
||||||
$socid = $user->socid;
|
$socid = $user->socid;
|
||||||
}
|
}
|
||||||
$result = restrictedArea($user, 'banque', '', '');
|
$result = restrictedArea($user, 'banque', '', '');
|
||||||
|
|
||||||
|
$usercancreate = $user->hasRight('banque', 'cheque');
|
||||||
|
|
||||||
$checkdepositstatic = new RemiseCheque($db);
|
|
||||||
$accountstatic = new Account($db);
|
/*
|
||||||
|
* Actions
|
||||||
|
*/
|
||||||
|
|
||||||
|
// None
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -49,7 +57,12 @@ $accountstatic = new Account($db);
|
|||||||
|
|
||||||
llxHeader('', $langs->trans("ChequesArea"));
|
llxHeader('', $langs->trans("ChequesArea"));
|
||||||
|
|
||||||
print load_fiche_titre($langs->trans("ChequesArea"), '', $checkdepositstatic->picto);
|
$newcardbutton = '';
|
||||||
|
if ($usercancreate) {
|
||||||
|
$newcardbutton .= dolGetButtonTitle($langs->trans('NewDeposit'), '', 'fa fa-plus-circle', DOL_URL_ROOT.'/compta/paiement/cheque/card.php?action=new');
|
||||||
|
}
|
||||||
|
|
||||||
|
print load_fiche_titre($langs->trans("ChequesArea"), $newcardbutton, $checkdepositstatic->picto);
|
||||||
|
|
||||||
print '<div class="fichecenter"><div class="fichethirdleft">';
|
print '<div class="fichecenter"><div class="fichethirdleft">';
|
||||||
|
|
||||||
@ -64,6 +77,7 @@ $sql .= " AND b.amount > 0";
|
|||||||
|
|
||||||
$resql = $db->query($sql);
|
$resql = $db->query($sql);
|
||||||
|
|
||||||
|
print '<div class="div-table-responsive-no-min">';
|
||||||
print '<table class="noborder centpercent">';
|
print '<table class="noborder centpercent">';
|
||||||
print '<tr class="liste_titre">';
|
print '<tr class="liste_titre">';
|
||||||
print '<th colspan="2">'.$langs->trans("BankChecks")."</th>\n";
|
print '<th colspan="2">'.$langs->trans("BankChecks")."</th>\n";
|
||||||
@ -79,10 +93,10 @@ if ($resql) {
|
|||||||
print '<td class="right">';
|
print '<td class="right">';
|
||||||
print '<a class="badge badge-info" href="'.DOL_URL_ROOT.'/compta/paiement/cheque/card.php?leftmenu=customers_bills_checks&action=new">'.$num.'</a>';
|
print '<a class="badge badge-info" href="'.DOL_URL_ROOT.'/compta/paiement/cheque/card.php?leftmenu=customers_bills_checks&action=new">'.$num.'</a>';
|
||||||
print '</td></tr>';
|
print '</td></tr>';
|
||||||
print "</table>\n";
|
|
||||||
} else {
|
} else {
|
||||||
dol_print_error($db);
|
dol_print_error($db);
|
||||||
}
|
}
|
||||||
|
print "</table></div>\n";
|
||||||
|
|
||||||
|
|
||||||
print '</div><div class="fichetwothirdright">';
|
print '</div><div class="fichetwothirdright">';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user