<p><p>The Timesheet Invoices Package forms the bridge between the internal record keeping of timesheets, and the preparation of billable invoices to ship to the customer. It transforms the timesheets kept for each client company, and each project being labored on for that client company into an invoice. Parameters can be specified throughout the creation process on whether to include or exclude certain tasks within a p­roject on the invoice, and to further modify the billing schemes per task. <p>
# Online Reference Documentation
## Procedure Files
<tablecellpadding="0"cellspacing="0"><trvalign="top"><tdstyle="width:35%"><b><ahref="http://www.project-open.net/api-doc/procs-file-view?version_id=48291&path=packages/intranet-timesheet2-invoices/tcl/intranet-timesheet2-invoices-procs.tcl">tcl/intranet-timesheet2-invoices-procs.tcl</a></b></td><td></td><td>Bring together all "components" (=HTML + SQL code) related to Timesheet Invoices </td></tr></table>
## Procedures
<tablecellpadding="0"cellspacing="0"><trvalign="top"><tdstyle="width:35%"><b><ahref="http://www.project-open.net/api-doc/proc-view?version_id=48291&proc=im_timesheet_invoice_permissions">im_timesheet_invoice_permissions</a></b></td><td></td><td>Fill the "by-reference" variables read, write and admin with the permissions of $current_user_id on $user_id </td></tr><trvalign="top"><tdstyle="width:35%"><b><ahref="http://www.project-open.net/api-doc/proc-view?version_id=48291&proc=im_timesheet_invoicing_project_hierarchy">im_timesheet_invoicing_project_hierarchy</a></b></td><td></td><td>Returns a formatted HTML table representing the list of subprojects and their logged hours. </td></tr><trvalign="top"><tdstyle="width:35%"><b><ahref="http://www.project-open.net/api-doc/proc-view?version_id=48291&proc=im_timesheet_price_component">im_timesheet_price_component</a></b></td><td></td><td>Returns a formatted HTML table representing the prices for the current company </td></tr></table>
<tablecellpadding="0"cellspacing="0"><trvalign="top"><td><b>www/</b></td></tr><trvalign="top"><tdstyle="width:35%"><b><ahref="http://www.project-open.net/api-doc/content-page-view?version_id=48291&path=packages/intranet-timesheet2-invoices/www/index.tcl">index.tcl</a></b></td><td>Empty redirection index.tcl file</td></tr><trvalign="top"><td><b>invoices/</b></td></tr><trvalign="top"><tdstyle="width:35%"><b><ahref="http://www.project-open.net/api-doc/content-page-view?version_id=48291&path=packages/intranet-timesheet2-invoices/www/invoices/new-2.adp">new-2.adp</a></b></td><td></td></tr><trvalign="top"><tdstyle="width:35%"><b><ahref="http://www.project-open.net/api-doc/content-page-view?version_id=48291&path=packages/intranet-timesheet2-invoices/www/invoices/new-2.tcl">new-2.tcl</a></b></td><td>Receives a list of projects and displays all Tasks of these projects, ordered by project, allowing the user to modify the "billable units".</td></tr><trvalign="top"><tdstyle="width:35%"><b><ahref="http://www.project-open.net/api-doc/content-page-view?version_id=48291&path=packages/intranet-timesheet2-invoices/www/invoices/new-3.adp">new-3.adp</a></b></td><td></td></tr><trvalign="top"><tdstyle="width:35%"><b><ahref="http://www.project-open.net/api-doc/content-page-view?version_id=48291&path=packages/intranet-timesheet2-invoices/www/invoices/new-3.tcl">new-3.tcl</a></b></td><td>Receives the list of tasks to invoice and creates an invoice form similar to /intranet-invoices/www/new in order to create a new invoice.<br></td></tr><trvalign="top"><tdstyle="width:35%"><b><ahref="http://www.project-open.net/api-doc/content-page-view?version_id=48291&path=packages/intranet-timesheet2-invoices/www/invoices/new-4.tcl">new-4.tcl</a></b></td><td>Saves invoice changes and set the invoice status to "Created".<br> Please note that there are different forms to create invoices for example in the intranet-timesheet2-invoicing module of the intranet-server-hosting module.</td></tr><trvalign="top"><tdstyle="width:35%"><b><ahref="http://www.project-open.net/api-doc/content-page-view?version_id=48291&path=packages/intranet-timesheet2-invoices/www/invoices/new.adp">new.adp</a></b></td><td></td></tr><trvalign="top"><tdstyle="width:35%"><b><ahref="http://www.project-open.net/api-doc/content-page-view?version_id=48291&path=packages/intranet-timesheet2-invoices/www/invoices/new.tcl">new.tcl</a></b></td><td>List all "delivered" project (i.e.</td></tr><trvalign="top"><td><b>price-lists/</b></td></tr><trvalign="top"><tdstyle="width:35%"><b><ahref="http://www.project-open.net/api-doc/content-page-view?version_id=48291&path=packages/intranet-timesheet2-invoices/www/price-lists/new.adp">new.adp</a></b></td><td></td></tr><trvalign="top"><tdstyle="width:35%"><b><ahref="http://www.project-open.net/api-doc/content-page-view?version_id=48291&path=packages/intranet-timesheet2-invoices/www/price-lists/new.tcl">new.tcl</a></b></td><td>Create or edit an entry in the price list</td></tr><trvalign="top"><tdstyle="width:35%"><b><ahref="http://www.project-open.net/api-doc/content-page-view?version_id=48291&path=packages/intranet-timesheet2-invoices/www/price-lists/price-action.tcl">price-action.tcl</a></b></td><td>Purpose: Takes commands from a price_component and deletes tasks as requested.</td></tr><trvalign="top"><tdstyle="width:35%"><b><ahref="http://www.project-open.net/api-doc/content-page-view?version_id=48291&path=packages/intranet-timesheet2-invoices/www/price-lists/pricelist_sample.csv">pricelist_sample.csv</a></b></td><td></td></tr><trvalign="top"><tdstyle="width:35%"><b><ahref="http://www.project-open.net/api-doc/content-page-view?version_id=48291&path=packages/intranet-timesheet2-invoices/www/price-lists/upload-prices-2.adp">upload-prices-2.adp</a></b></td><td></td></tr><trvalign="top"><tdstyle="width:35%"><b><ahref="http://www.project-open.net/api-doc/content-page-view?version_id=48291&path=packages/intranet-timesheet2-invoices/www/price-lists/upload-prices-2.tcl">upload-prices-2.tcl</a></b></td><td>/intranet/companies/upload-prices-2.tcl Read a .csv-file with header titles exactly matching the data model and insert the data into im_timesheet_prices</td></tr><trvalign="top"><tdstyle="width:35%"><b><ahref="http://www.project-open.net/api-doc/content-page-view?version_id=48291&path=packages/intranet-timesheet2-invoices/www/price-lists/upload-prices.adp">upload-prices.adp</a></b></td><td></td></tr><trvalign="top"><tdstyle="width:35%"><b><ahref="http://www.project-open.net/api-doc/content-page-view?version_id=48291&path=packages/intranet-timesheet2-invoices/www/price-lists/upload-prices.tcl">upload-prices.tcl</a></b></td><td>Serve the user a form to upload a new file or URL</td></tr></table>