diff options
author | tetragon <tetragon@4979c152-3d1c-0410-bac9-87ea11338e46> | 2007-10-09 14:55:27 +0000 |
---|---|---|
committer | tetragon <tetragon@4979c152-3d1c-0410-bac9-87ea11338e46> | 2007-10-09 14:55:27 +0000 |
commit | e1c0244de7d919a750ef6571596aa5e9867ea84f (patch) | |
tree | 493b467cb5f5dd9ce67e7e421fd964ca2ff7989a /templates/demo/balance_sheet.html | |
parent | 198991e23e8459df24949a65f3363b56373b0e0c (diff) |
Add links to account GL reports in the balance sheet
git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/trunk@1726 4979c152-3d1c-0410-bac9-87ea11338e46
Diffstat (limited to 'templates/demo/balance_sheet.html')
-rw-r--r-- | templates/demo/balance_sheet.html | 49 |
1 files changed, 45 insertions, 4 deletions
diff --git a/templates/demo/balance_sheet.html b/templates/demo/balance_sheet.html index c82ada28..995fb5ab 100644 --- a/templates/demo/balance_sheet.html +++ b/templates/demo/balance_sheet.html @@ -10,8 +10,49 @@ <meta http-equiv="content-type" content="text/html; charset=UTF-8" /> <meta name="robots" content="noindex,nofollow" /> + <style type="text/css"> + a { + color: inherit; + background-color: inherit; + text-decoration: none; + } + a:link { + color: inherit; + background-color: inherit; + text-decoration: none; + } + a:visited { + color: inherit; + background-color: inherit; + text-decoration: none; + } + a:hover { + color: inherit; + background-color: inherit; + text-decoration: none; + border-bottom: thin dashed; + } + </style> </head> +<?lsmb USE dumper(indent=0, pad="<br />") ?> +<?lsmb BLOCK account; # Handle account labels + RETURN UNLESS account_data.defined; + IF account_data.heading; ?><b><?lsmb + account_data.text; ?></b><?lsmb + ELSIF account_data.gifi_account; ?><a href="gl.pl?action=generate_report&path=<?lsmb path ?>&login=<?lsmb login ?>&sessionid=<?lsmb sessionid ?>&l_transdate=Y&l_reference=Y&l_description=Y&l_source=Y&l_debit=Y&l_credit=Y&l_gifi_accno=Y&category=X&gifi_accno=<?lsmb account_data.account ?>"><?lsmb + account_data.text; ?></a><?lsmb + ELSIF account_data.account; ?><a href="gl.pl?action=generate_report&path=<?lsmb path ?>&login=<?lsmb login ?>&sessionid=<?lsmb sessionid ?>&l_transdate=Y&l_reference=Y&l_description=Y&l_source=Y&l_debit=Y&l_credit=Y&l_accno=Y&category=X&accno=<?lsmb account_data.account ?>"><?lsmb + account_data.text; ?></a><?lsmb + ELSIF account_data.subtotal; ?><b> <?lsmb + account_data.text; ?></b><?lsmb + ELSIF account_data.current_earnings; ?> <?lsmb + account_data.text; + ELSE; + account_data; + END; +END ?> + <body> <h2 align="center"> @@ -19,7 +60,7 @@ <br /><?lsmb address ?> <br /><?lsmb text('Balance Sheet') ?> -<br />as at <?lsmb this_period ?> +<br /><?lsmb text('as at [_1]', this_period) ?> </h2> <?lsmb IF department ?> @@ -37,7 +78,7 @@ <?lsmb loop_count = loop.count - 1 ?> <tr> <td> </td> - <td><?lsmb asset_account.${loop_count} ?></td> + <td><?lsmb PROCESS account account_data=asset_account.${loop_count} ?></td> <td align="right"><?lsmb asset_this_period.${loop_count} ?></td> <td align="right"><?lsmb asset_last_period.${loop_count} ?></td> </tr> @@ -63,7 +104,7 @@ <?lsmb loop_count = loop.count - 1 ?> <tr> <td></td> - <td><?lsmb liability_account.${loop_count} ?></td> + <td><?lsmb PROCESS account account_data=liability_account.${loop_count} ?></td> <td align="right"><?lsmb liability_this_period.${loop_count} ?></td> <td align="right"><?lsmb liability_last_period.${loop_count} ?></td> </tr> @@ -90,7 +131,7 @@ <?lsmb loop_count = loop.count - 1 ?> <tr> <td></td> - <td><?lsmb equity_account.${loop_count} ?></td> + <td><?lsmb PROCESS account account_data=equity_account.${loop_count} ?></td> <td align="right"><?lsmb equity_this_period.${loop_count} ?></td> <td align="right"><?lsmb equity_last_period.${loop_count} ?></td> </tr> |