Graph and debit/credit report can be used with no account parameter (calculation is made on all accounts)
This commit is contained in:
parent
de3e605871
commit
db5fb4788a
@ -53,7 +53,7 @@ llxHeader();
|
|||||||
|
|
||||||
$form = new Form($db);
|
$form = new Form($db);
|
||||||
|
|
||||||
// R<EFBFBD>cup<EFBFBD>re info du compte
|
// Get account informations
|
||||||
$acct = new Account($db);
|
$acct = new Account($db);
|
||||||
if ($_GET["account"])
|
if ($_GET["account"])
|
||||||
{
|
{
|
||||||
@ -127,12 +127,28 @@ print '<table class="border" width="100%">';
|
|||||||
// Ref
|
// Ref
|
||||||
print '<tr><td valign="top" width="25%">'.$langs->trans("Ref").'</td>';
|
print '<tr><td valign="top" width="25%">'.$langs->trans("Ref").'</td>';
|
||||||
print '<td colspan="3">';
|
print '<td colspan="3">';
|
||||||
print $form->showrefnav($acct,'ref','',1,'ref');
|
if ($_GET["account"])
|
||||||
|
{
|
||||||
|
print $form->showrefnav($acct,'ref','',1,'ref');
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
print $langs->trans("ALL");
|
||||||
|
}
|
||||||
print '</td></tr>';
|
print '</td></tr>';
|
||||||
|
|
||||||
// Label
|
// Label
|
||||||
print '<tr><td valign="top">'.$langs->trans("Label").'</td>';
|
print '<tr><td valign="top">'.$langs->trans("Label").'</td>';
|
||||||
print '<td colspan="3">'.$acct->label.'</td></tr>';
|
print '<td colspan="3">';
|
||||||
|
if ($_GET["account"])
|
||||||
|
{
|
||||||
|
print $acct->label;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
print $langs->trans("AllAccounts");
|
||||||
|
}
|
||||||
|
print '</td></tr>';
|
||||||
|
|
||||||
print '</table>';
|
print '</table>';
|
||||||
|
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user