Page 1 of 1
BillingInformation -> Pdf and additional fields
Posted: 15 Sep 2009, 14:17
by hannesjo
Hi all,
is it possible to implelent a function which is able to export the billing_page.php to pdf - customer_friendly??
it would be nice to have an clear and nice pdf file with user, issueID, cost of time, total time, ...
could i also add more "fields" to the billing page like start and enddate of an issue?
thanks for any help!
regards
----
using mantis 1.1.8
Re: BillingInformation -> Pdf and additional fields
Posted: 16 Sep 2009, 10:20
by hannesjo
Please move it to 'Customizations'
thanks.
Re: BillingInformation -> Pdf and additional fields
Posted: 18 Sep 2009, 08:35
by hannesjo
to hard?

Re: BillingInformation -> Pdf and additional fields
Posted: 21 Sep 2009, 20:13
by dsaunier
Sorry to not solve your issue, but I'm interested in those features: billing_page.php and BillingInformation and cannot see that in Mantis 1.1.8 ?
Best regards.
Re: BillingInformation -> Pdf and additional fields
Posted: 28 Sep 2009, 14:53
by hannesjo
hm, a look into the billing_inc.php shows all the fields which shown up in the billing_page.php like username, id,etc:
Code: Select all
<tr <?php echo helper_alternate_class() ?>>
<td class="small-caption">
<?php echo $t_item['username'] ?>
</td>
<td class="small-caption">
<?php echo $t_item['sum_time_tracking'] ?>
</td>
so u can add a new field e.g. "priority"
Code: Select all
<td class="small-caption">
<?php echo $t_item['priority'] ?>
</td>
but the field is not filled up with priority-data. it is empty.
i guess i have to edit the foreach loop
Code: Select all
<?php
$t_sum_in_minutes = 0;
$t_user_summary = array();
foreach ( $t_bugnote_stats as $t_item ) {
$t_sum_in_minutes += $t_item['sum_time_tracking'];
$t_user_summary[$t_item['username']] += $t_item['sum_time_tracking'];
$t_item['sum_time_tracking'] = db_minutes_to_hhmm( $t_item['sum_time_tracking'] );
if ( $t_item['bug_id'] != $t_prev_id) {
$t_link = string_get_bug_view_link( $t_item['bug_id'] ) . ": " . string_display( $t_item['summary'] );
echo '<tr class="row-category-history"><td colspan="4">' . $t_link . "</td></tr>";
$t_prev_id = $t_item['bug_id'];
}
?>
but every try fails :/
Re: BillingInformation -> Pdf and additional fields
Posted: 28 Sep 2009, 15:00
by hannesjo
http://img43.imageshack.us/img43/6070/billingz.jpg
billing page with empty entries (click the link above to get the full picture)