# Invoice

# Invoice for -

You don't want to send this invoice to your customers without at least putting your logo on the top. To do that, you will have to modify the invoice report template. Changing it is easy: make a copy of the file `invoice.ghtml` (probably in `/usr/share/gtt/ghtml/C/invoice.ghtml`), and edit it to suit your needs. The templates are raw HTML, so you do need to know a bit of that to do anything fancy. If you're adventurous, you can modify the column layout and order.
When finished, you can add your new report to your system by picking the menu item "Reports... New Report".
" ''"Items shown are for projects that were active between dates" (gtt-kvp-str '"earliest-end-date") ''"and" (gtt-kvp-str '"latest-end-date") ''".\n" ))) ?>

### Billable, Unpaid Work Items

\n

\n
\n
\n
\n
\n
\n
\n
\n
Work Item | Billing Status | Billable | Bill Rate | Total Time | Value | Billable Value
--- | --- | --- | --- | --- | --- | ---
\n" ) (gtt-show-tasks (gtt-filter-bill-tasks (gtt-tasks (gtt-linked-project))) (list ''"
" ''"
\n" ''"
\n" ''"
\n" ''"
\n" ''"
\n" ''"
\n" ''"
\n" ''"
" gtt-task-memo ''" | " gtt-task-billstatus ''" | " gtt-task-billable ''" | " gtt-task-billrate ''" | " gtt-task-time-str ''" | " gtt-task-value-str ''" | " gtt-task-billable-value-str ''"
\n" ) ) (gtt-show '"

\n\n") ) (if (null? (gtt-filter-bill-tasks (gtt-tasks (gtt-linked-project)))) (gtt-show '"
There are no billable items
\n") (do-show-billable-items) ) ?>

### Billable, Paid Work Items

The table below shows work items that have been paid:
\n

\n
\n
\n
\n
\n
\n
\n
\n
Work Item | Billing Status | Billable | Bill Rate | Total Time | Value | Billable Value
--- | --- | --- | --- | --- | --- | ---
\n" ) (gtt-show-tasks (gtt-filter-paid-tasks (gtt-tasks (gtt-linked-project))) (list ''"
" ''"
\n" ''"
\n" ''"
\n" ''"
\n" ''"
\n" ''"
\n" ''"
\n" ''"
" gtt-task-memo ''" | " gtt-task-billstatus ''" | " gtt-task-billable ''" | " gtt-task-billrate ''" | " gtt-task-time-str ''" | " gtt-task-value-str ''" | " gtt-task-billable-value-str ''"
\n" ) ) (gtt-show '"

\n\n") ) (if (null? (gtt-filter-paid-tasks (gtt-tasks (gtt-linked-project)))) (gtt-show '"
There are no paid items
\n") (do-show-paid-items) ) ?>

### Billable, Held Tasks

The table below shows only the items withheld from billing:
\n

\n
\n
\n
\n
\n
\n
\n
\n
Work Item | Billing Status | Billable | Bill Rate | Total Time | Value | Billable Value
--- | --- | --- | --- | --- | --- | ---
\n" ) (gtt-show-tasks (gtt-filter-hold-tasks (gtt-tasks (gtt-linked-project))) (list ''"
" ''"
\n" ''"
\n" ''"
\n" ''"
\n" ''"
\n" ''"
\n" ''"
\n" ''"
" gtt-task-memo ''" | " gtt-task-billstatus ''" | " gtt-task-billable ''" | " gtt-task-billrate ''" | " gtt-task-time-str ''" | " gtt-task-value-str ''" | " gtt-task-billable-value-str ''"
\n" ) ) (gtt-show '"

\n\n") ) (if (null? (gtt-filter-hold-tasks (gtt-tasks (gtt-linked-project)))) (gtt-show '"
There are no held items
\n") (do-show-hold-items) ) ?>
To create more specialized filters to show more complex combinations of work items, you will have to do some hacking in scheme. Go into the `gtt.scm` file, make a copy of the `'gtt-filter-paid-tasks'` routine, and start hacking. Please post new/improved filters to the GnoTime patch repositiory at http://sourceforge.net/projects/gttr/ so that they can be included in future versions.
Brought to you by ...