Added Created By toticket details

This commit is contained in:
johnny@pittpc.com 2019-09-30 09:48:35 -04:00
parent 7f8589fed6
commit f3c1df3e17
4 changed files with 47 additions and 40 deletions

View File

@ -6,16 +6,16 @@
* Locations
* Vendors
* Assets
* Licenses
* Logins
* Application Licenses
* Logins Password Manager
* Domains
* Apps
* Networks
* Files
* Documentation
* Invoicing
* Email Past Due Reminders
* Auto Email Receipts upon payments
* Automatically Emails Past Due Invoices to clients
* Auto Email Receipts upon receiving payments
* Recurring Invoices
* Quotes / Estimates
* Automated customer approval
@ -38,15 +38,21 @@
* Schedule Jobs
* Overview of Invoices Domains
* Schedule Events
* Automatic Email Reminders of upcomming calendar events to customers
* Dashboard
* Gives a clear overview of your business
* Gives a clear overview of your business financials using graphs and such
* API
* XML Phonebook download for VOIP Phones
* FreePBX Integrated called ID (When call comes in it queries the Database and displays the company name on your caller ID)
* FreePBX Integrated called ID (When call comes in it queries the Database and displays the company name on your caller ID as well as alerts you in the CRM)
* Pull Email Lists
* Check account Balances using FreePBX IVR
* Multi-Tenant - One Instance Multiple Companies and Users
* Audit Logging - Logs actions of users on the system
### Installation Instructions
* Clone this repo
@ -82,10 +88,10 @@
* XML Phonebook Download - /api.php?api_key=[API_KEY]&phonebook
* Client Email (Returns Client Name - Email Address) - /api.php?api_key=[API_KEY]&client_emails
* Account Balance for Client (Returns Account Balance) - /api.php?api_key=[API_KEY]&client_id=[CLIENT_ID]
NOTE: [API_KEY] - is auto generated when a company is created and shows up in General Settings.
NOTE: [API_KEY] - is auto generated when a company is created and shows up in General Settings, this can also be changed manually.
### Future Todo
* MeshCentral Integation to assign devices and easily access remote desktop within the app
* MeshCentral Integation to assign devices to assets and easily access remote desktop within the app, as well as pull vital information such as Operating System,
* HestiaCP Integration for intergrating domains and webclients
* CalDAV to integrate with 3rd party calendars
* CardDAV to integrate with 3rd party Address books

View File

@ -35,7 +35,7 @@ $sql_categories = mysqli_query($mysqli,"SELECT * FROM categories WHERE category_
</select>
</form>
<div class="table-responsive">
<table class="table table-striped table-sm">
<table class="table table-striped">
<thead class="text-dark">
<tr>
<th>Category</th>
@ -83,7 +83,7 @@ $sql_categories = mysqli_query($mysqli,"SELECT * FROM categories WHERE category_
?>
<td class="text-right text-monospace">$<?php echo number_format($payment_amount_for_month,2); ?></td>
<td class="text-right">$<?php echo number_format($payment_amount_for_month,2); ?></td>
<?php
@ -91,7 +91,7 @@ $sql_categories = mysqli_query($mysqli,"SELECT * FROM categories WHERE category_
?>
<td class="text-right text-monospace">$<?php echo number_format($total_payment_for_all_months,2); ?></td>
<td class="text-right">$<?php echo number_format($total_payment_for_all_months,2); ?></td>
</tr>
<?php
@ -122,14 +122,14 @@ $sql_categories = mysqli_query($mysqli,"SELECT * FROM categories WHERE category_
?>
<th class="text-right text-monospace">$<?php echo number_format($payment_total_amount_for_month,2); ?></th>
<th class="text-right">$<?php echo number_format($payment_total_amount_for_month,2); ?></th>
<?php
}
?>
<th class="text-right text-monospace">$<?php echo number_format($total_payment_for_all_months,2); ?></th>
<th class="text-right">$<?php echo number_format($total_payment_for_all_months,2); ?></th>
</tr>
</tbody>
</table>

View File

@ -83,7 +83,7 @@ $sql_categories_expense = mysqli_query($mysqli,"SELECT * FROM categories WHERE c
?>
<td class="text-right text-monospace">$<?php echo number_format($payment_amount_for_quarter_one,2); ?></td>
<td class="text-right">$<?php echo number_format($payment_amount_for_quarter_one,2); ?></td>
<?php
@ -103,7 +103,7 @@ $sql_categories_expense = mysqli_query($mysqli,"SELECT * FROM categories WHERE c
?>
<td class="text-right text-monospace">$<?php echo number_format($payment_amount_for_quarter_two,2); ?></td>
<td class="text-right">$<?php echo number_format($payment_amount_for_quarter_two,2); ?></td>
<?php
@ -122,7 +122,7 @@ $sql_categories_expense = mysqli_query($mysqli,"SELECT * FROM categories WHERE c
?>
<td class="text-right text-monospace">$<?php echo number_format($payment_amount_for_quarter_three,2); ?></td>
<td class="text-right">$<?php echo number_format($payment_amount_for_quarter_three,2); ?></td>
<?php
@ -143,9 +143,9 @@ $sql_categories_expense = mysqli_query($mysqli,"SELECT * FROM categories WHERE c
?>
<td class="text-right text-monospace">$<?php echo number_format($payment_amount_for_quarter_four,2); ?></td>
<td class="text-right">$<?php echo number_format($payment_amount_for_quarter_four,2); ?></td>
<td class="text-right text-monospace">$<?php echo number_format($total_payments_for_all_four_quarters,2); ?></td>
<td class="text-right">$<?php echo number_format($total_payments_for_all_four_quarters,2); ?></td>
</tr>
<?php
@ -180,7 +180,7 @@ $sql_categories_expense = mysqli_query($mysqli,"SELECT * FROM categories WHERE c
?>
<th class="text-right text-monospace">$<?php echo number_format($payment_total_amount_for_quarter_one,2); ?></th>
<th class="text-right">$<?php echo number_format($payment_total_amount_for_quarter_one,2); ?></th>
<?php
@ -200,7 +200,7 @@ $sql_categories_expense = mysqli_query($mysqli,"SELECT * FROM categories WHERE c
?>
<th class="text-right text-monospace">$<?php echo number_format($payment_total_amount_for_quarter_two,2); ?></th>
<th class="text-right">$<?php echo number_format($payment_total_amount_for_quarter_two,2); ?></th>
<?php
@ -220,7 +220,7 @@ $sql_categories_expense = mysqli_query($mysqli,"SELECT * FROM categories WHERE c
?>
<th class="text-right text-monospace">$<?php echo number_format($payment_total_amount_for_quarter_three,2); ?></th>
<th class="text-right">$<?php echo number_format($payment_total_amount_for_quarter_three,2); ?></th>
<?php
@ -242,9 +242,9 @@ $sql_categories_expense = mysqli_query($mysqli,"SELECT * FROM categories WHERE c
?>
<th class="text-right text-monospace">$<?php echo number_format($payment_total_amount_for_quarter_four,2); ?></th>
<th class="text-right">$<?php echo number_format($payment_total_amount_for_quarter_four,2); ?></th>
<th class="text-right text-monospace">$<?php echo number_format($total_payments_for_all_four_quarters,2); ?></th>
<th class="text-right">$<?php echo number_format($total_payments_for_all_four_quarters,2); ?></th>
</tr>
<tr>
@ -270,7 +270,7 @@ $sql_categories_expense = mysqli_query($mysqli,"SELECT * FROM categories WHERE c
?>
<td class="text-right text-monospace">$<?php echo number_format($expense_amount_for_quarter_one,2); ?></td>
<td class="text-right">$<?php echo number_format($expense_amount_for_quarter_one,2); ?></td>
<?php
@ -282,7 +282,7 @@ $sql_categories_expense = mysqli_query($mysqli,"SELECT * FROM categories WHERE c
?>
<td class="text-right text-monospace">$<?php echo number_format($expense_amount_for_quarter_two,2); ?></td>
<td class="text-right">$<?php echo number_format($expense_amount_for_quarter_two,2); ?></td>
<?php
@ -294,7 +294,7 @@ $sql_categories_expense = mysqli_query($mysqli,"SELECT * FROM categories WHERE c
?>
<td class="text-right text-monospace">$<?php echo number_format($expense_amount_for_quarter_three,2); ?></td>
<td class="text-right">$<?php echo number_format($expense_amount_for_quarter_three,2); ?></td>
<?php
@ -308,9 +308,9 @@ $sql_categories_expense = mysqli_query($mysqli,"SELECT * FROM categories WHERE c
?>
<td class="text-right text-monospace">$<?php echo number_format($expense_amount_for_quarter_four,2); ?></td>
<td class="text-right">$<?php echo number_format($expense_amount_for_quarter_four,2); ?></td>
<td class="text-right text-monospace">$<?php echo number_format($total_expenses_for_all_four_quarters,2); ?></td>
<td class="text-right">$<?php echo number_format($total_expenses_for_all_four_quarters,2); ?></td>
</tr>
<?php
@ -337,7 +337,7 @@ $sql_categories_expense = mysqli_query($mysqli,"SELECT * FROM categories WHERE c
?>
<th class="text-right text-monospace">$<?php echo number_format($expense_total_amount_for_quarter_one,2); ?></th>
<th class="text-right">$<?php echo number_format($expense_total_amount_for_quarter_one,2); ?></th>
<?php
@ -349,7 +349,7 @@ $sql_categories_expense = mysqli_query($mysqli,"SELECT * FROM categories WHERE c
?>
<th class="text-right text-monospace">$<?php echo number_format($expense_total_amount_for_quarter_two,2); ?></th>
<th class="text-right">$<?php echo number_format($expense_total_amount_for_quarter_two,2); ?></th>
<?php
@ -361,7 +361,7 @@ $sql_categories_expense = mysqli_query($mysqli,"SELECT * FROM categories WHERE c
?>
<th class="text-right text-monospace">$<?php echo number_format($expense_total_amount_for_quarter_three,2); ?></th>
<th class="text-right">$<?php echo number_format($expense_total_amount_for_quarter_three,2); ?></th>
<?php
@ -375,9 +375,9 @@ $sql_categories_expense = mysqli_query($mysqli,"SELECT * FROM categories WHERE c
?>
<th class="text-right text-monospace">$<?php echo number_format($expense_total_amount_for_quarter_four,2); ?></th>
<th class="text-right">$<?php echo number_format($expense_total_amount_for_quarter_four,2); ?></th>
<th class="text-right text-monospace">$<?php echo number_format($total_expenses_for_all_four_quarters,2); ?></th>
<th class="text-right">$<?php echo number_format($total_expenses_for_all_four_quarters,2); ?></th>
</tr>
<tr>
<?php
@ -389,11 +389,11 @@ $sql_categories_expense = mysqli_query($mysqli,"SELECT * FROM categories WHERE c
?>
<th>Net Profit</th>
<th class="text-right text-monospace">$<?php echo number_format($net_profit_quarter_one,2); ?></th>
<th class="text-right text-monospace">$<?php echo number_format($net_profit_quarter_two,2); ?></th>
<th class="text-right text-monospace">$<?php echo number_format($net_profit_quarter_three,2); ?></th>
<th class="text-right text-monospace">$<?php echo number_format($net_profit_quarter_four,2); ?></th>
<th class="text-right text-monospace">$<?php echo number_format($net_profit_year,2); ?></th>
<th class="text-right">$<?php echo number_format($net_profit_quarter_one,2); ?></th>
<th class="text-right">$<?php echo number_format($net_profit_quarter_two,2); ?></th>
<th class="text-right">$<?php echo number_format($net_profit_quarter_three,2); ?></th>
<th class="text-right">$<?php echo number_format($net_profit_quarter_four,2); ?></th>
<th class="text-right">$<?php echo number_format($net_profit_year,2); ?></th>
</tr>
</tbody>
</table>

View File

@ -6,7 +6,7 @@
if(isset($_GET['ticket_id'])){
$ticket_id = intval($_GET['ticket_id']);
$sql = mysqli_query($mysqli,"SELECT * FROM tickets, clients WHERE tickets.client_id = clients.client_id AND ticket_id = $ticket_id AND tickets.company_id = $session_company_id");
$sql = mysqli_query($mysqli,"SELECT * FROM tickets, clients, users WHERE tickets.client_id = clients.client_id AND tickets.ticket_created_by = users.user_id AND ticket_id = $ticket_id AND tickets.company_id = $session_company_id");
if(mysqli_num_rows($sql) == 0){
echo "<center><h1 class='text-secondary mt-5'>Nothing to see here</h1><a class='btn btn-lg btn-secondary mt-3' href='tickets.php'><i class='fa fa-fw fa-arrow-left'></i> Go Back</a></center>";
@ -42,6 +42,7 @@ if(isset($_GET['ticket_id'])){
$ticket_updated_at = $row['ticket_updated_at'];
$ticket_closed_at = $row['ticket_closed_at'];
$ticket_created_by = $row['ticket_created_by'];
$name = $row['name'];
if($ticket_status == "Open"){
$ticket_badge_color = "primary";
@ -102,7 +103,7 @@ if(isset($_GET['ticket_id'])){
</div>
<h4 class="text-secondary">Details</h4>
<div class="ml-1"><i class="fa fa-fw fa-user text-secondary mr-2 mb-2"></i> <?php echo $ticket_created_by; ?></div>
<div class="ml-1"><i class="fa fa-fw fa-user text-secondary mr-2 mb-2"></i> <?php echo $name; ?></div>
<div class="ml-1"><i class="fa fa-fw fa-clock text-secondary mr-2 mb-2"></i> <?php echo $ticket_created_at; ?></div>
</div>