BillingInformation -> Pdf and additional fields

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
hannesjo
Posts: 11
Joined: 15 Sep 2009, 14:07

BillingInformation -> Pdf and additional fields

Post 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
hannesjo
Posts: 11
Joined: 15 Sep 2009, 14:07

Re: BillingInformation -> Pdf and additional fields

Post by hannesjo »

Please move it to 'Customizations'

thanks.
hannesjo
Posts: 11
Joined: 15 Sep 2009, 14:07

Re: BillingInformation -> Pdf and additional fields

Post by hannesjo »

to hard? :(
dsaunier
Posts: 2
Joined: 21 Sep 2009, 19:57

Re: BillingInformation -> Pdf and additional fields

Post 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.
hannesjo
Posts: 11
Joined: 15 Sep 2009, 14:07

Re: BillingInformation -> Pdf and additional fields

Post 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 :/
hannesjo
Posts: 11
Joined: 15 Sep 2009, 14:07

Re: BillingInformation -> Pdf and additional fields

Post by hannesjo »

Image

http://img43.imageshack.us/img43/6070/billingz.jpg

billing page with empty entries (click the link above to get the full picture)
Post Reply