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
BillingInformation -> Pdf and additional fields
Moderators: Developer, Contributor
Re: BillingInformation -> Pdf and additional fields
Please move it to 'Customizations'
thanks.
thanks.
Re: BillingInformation -> Pdf and additional fields
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.
Best regards.
Re: BillingInformation -> Pdf and additional fields
hm, a look into the billing_inc.php shows all the fields which shown up in the billing_page.php like username, id,etc:
so u can add a new field e.g. "priority"
but the field is not filled up with priority-data. it is empty.
i guess i have to edit the foreach loop
but every try fails :/
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>Code: Select all
<td class="small-caption">
<?php echo $t_item['priority'] ?>
</td>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'];
}
?>Re: BillingInformation -> Pdf and additional fields

http://img43.imageshack.us/img43/6070/billingz.jpg
billing page with empty entries (click the link above to get the full picture)