diff options
author | tetragon <tetragon@4979c152-3d1c-0410-bac9-87ea11338e46> | 2007-10-11 13:34:46 +0000 |
---|---|---|
committer | tetragon <tetragon@4979c152-3d1c-0410-bac9-87ea11338e46> | 2007-10-11 13:34:46 +0000 |
commit | a02580dd0483e0fec073a1d64634777f47db71bd (patch) | |
tree | 466dface281b2cf2b1e42ad09bcca89234324904 /templates | |
parent | daee124a79fdece2d3044cc9147a152ff725c1a0 (diff) |
Getting rid of most of the HTML in the bin/LSMB code for the income statement
Adding in the links
git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/trunk@1741 4979c152-3d1c-0410-bac9-87ea11338e46
Diffstat (limited to 'templates')
-rw-r--r-- | templates/demo/income_statement.html | 46 |
1 files changed, 34 insertions, 12 deletions
diff --git a/templates/demo/income_statement.html b/templates/demo/income_statement.html index 970769a7..03043ae6 100644 --- a/templates/demo/income_statement.html +++ b/templates/demo/income_statement.html @@ -35,36 +35,58 @@ </style> </head> +<?lsmb USE dumper(indent=0, pad="<br />") ?> +<?lsmb BLOCK account; # Handle account labels + RETURN UNLESS account_data.defined; + IF account_data.heading; ?><br /><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; IF l_heading ?> <?lsmb END; + account_data.text; + ELSE; + account_data; + END; +END ?> + <body> <h2 align="center"> <?lsmb company ?> <br /><?lsmb address ?> -<br />INCOME STATEMENT +<br /><?lsmb text('Income Statement') ?> +<br /><?lsmb text('for Period') ?> <br /><?lsmb period ?> +<?lsmb IF compare_period ?> +<br /><?lsmb compare_period ?> +<?lsmb END ?> </h2> <?lsmb IF department ?> -<h4>Department: <?lsmb department ?></h4> +<h4><?lsmb text('Department: [_1]', department) ?></h4> <?lsmb END ?> <?lsmb IF projectnumber ?> -<h4>Project Number: <?lsmb projectnumber ?></h4> +<h4><?lsmb text('Project Number: [_1]', projectnumber) ?></h4> <?lsmb END ?> <table width="100%" border="0"> <tr> - <th width="400" align="left" colspan="2">INCOME<br /><hr width="300" size="5" align="left" noshade="noshade" /></th> - <th><?lsmb this_period ?></th> - <th><?lsmb last_period ?></th> + <th width="400" align="left" colspan="2" style="text-transform: uppercase"><?lsmb text('Income') ?><br /><hr width="300" size="5" align="left" noshade="noshade" /></th> + <th><?lsmb this_period_from ?><br /><?lsmb this_period_to ?></th> + <th><?lsmb last_period_from ?><br /><?lsmb last_period_to ?></th> </tr> <?lsmb FOREACH income_account ?> <?lsmb loop_count = loop.count - 1 ?> <tr> <td width="4"> </td> - <td><?lsmb income_account.${loop_count} ?></td> + <td><?lsmb PROCESS account account_data=income_account.${loop_count} ?></td> <td align="right"><?lsmb income_this_period.${loop_count} ?></td> <td align="right"><?lsmb income_last_period.${loop_count} ?></td> </tr> @@ -78,20 +100,20 @@ <tr valign="top"> <td> </td> - <th align="left">TOTAL INCOME</th> + <th align="left" style="text-transform: uppercase"><?lsmb text('Total Income') ?></th> <td align="right"><?lsmb total_income_this_period ?><hr noshade="noshade" size="2" /></td> <td align="right"><?lsmb total_income_last_period ?><hr noshade="noshade" size="2" /></td> </tr> <tr> - <th align="left" colspan="2">EXPENSES<br /><hr width="300" size="5" align="left" noshade="noshade" /></th> + <th align="left" colspan="2" style="text-transform: uppercase"><?lsmb text('Expenses') ?><br /><hr width="300" size="5" align="left" noshade="noshade" /></th> </tr> <?lsmb FOREACH expense_account ?> <?lsmb loop_count = loop.count - 1 ?> <tr> <td> </td> - <td><?lsmb expense_account.${loop_count} ?></td> + <td><?lsmb PROCESS account account_data=expense_account.${loop_count} ?></td> <td align="right"><?lsmb expenses_this_period.${loop_count} ?></td> <td align="right"><?lsmb expenses_last_period.${loop_count} ?></td> </tr> @@ -105,13 +127,13 @@ <tr valign="top"> <td> </td> - <th align="left">TOTAL EXPENSES</th> + <th align="left" style="text-transform: uppercase"><?lsmb text('Total Expenses') ?></th> <td align="right"><?lsmb total_expenses_this_period ?><br /><hr noshade="noshade" size="2" /></td> <td align="right"><?lsmb total_expenses_last_period ?><br /><hr noshade="noshade" size="2" /></td> </tr> <tr valign="top"> - <th align="left" colspan="2">INCOME / (LOSS)</th> + <th align="left" colspan="2" style="text-transform: uppercase"><?lsmb text('Income / (Loss)') ?></th> <td align="right"><?lsmb total_this_period ?><br /><hr noshade="noshade" size="2" /></td> <td align="right"><?lsmb total_last_period ?><br /><hr noshade="noshade" size="2" /></td> </tr> |