diff --git a/guest_view_invoice.php b/guest_view_invoice.php
index 0eff51ce..7576fa27 100644
--- a/guest_view_invoice.php
+++ b/guest_view_invoice.php
@@ -1,4 +1,6 @@
-
@@ -53,8 +46,10 @@ $invoices_sql = mysqli_query($mysqli, "SELECT * FROM invoices WHERE invoice_clie
| # |
Scope |
- Date |
Amount |
+ Date |
+ Due |
+ Status |
@@ -65,15 +60,52 @@ $invoices_sql = mysqli_query($mysqli, "SELECT * FROM invoices WHERE invoice_clie
$invoice_prefix = htmlentities($row['invoice_prefix']);
$invoice_number = htmlentities($row['invoice_number']);
$invoice_scope = htmlentities($row['invoice_scope']);
+ $invoice_status = htmlentities($row['invoice_status']);
$invoice_date = $row['invoice_date'];
+ $invoice_due = $row['invoice_due'];
$invoice_amount = floatval($row['invoice_amount']);
+ $invoice_url_key = htmlentities($row['invoice_url_key']);
+
+ if (empty($invoice_scope)) {
+ $invoice_scope_display = "-";
+ } else {
+ $invoice_scope_display = $invoice_scope;
+ }
+
+ $now = time();
+ if (($invoice_status == "Sent" || $invoice_status == "Partial" || $invoice_status == "Viewed") && strtotime($invoice_due) + 86400 < $now ) {
+ $overdue_color = "text-danger font-weight-bold";
+ } else {
+ $overdue_color = "";
+ }
+
+ if ($invoice_status == "Sent") {
+ $invoice_badge_color = "warning text-white";
+ } elseif ($invoice_status == "Viewed") {
+ $invoice_badge_color = "info";
+ } elseif ($invoice_status == "Partial") {
+ $invoice_badge_color = "primary";
+ } elseif ($invoice_status == "Paid") {
+ $invoice_badge_color = "success";
+ } elseif ($invoice_status == "Cancelled") {
+ $invoice_badge_color = "danger";
+ } else{
+ $invoice_badge_color = "secondary";
+ }
?>
- |
- |
+ "> |
+ |
+ |
|
- |
+ |
+
+
+
+
+ |
+
" href="tickets.php">Tickets
-
+
" href="invoices.php">Invoices
diff --git a/portal/profile.php b/portal/profile.php
index 7f8b76e0..26ff7058 100644
--- a/portal/profile.php
+++ b/portal/profile.php
@@ -4,16 +4,21 @@
* User profile
*/
-require('inc_portal.php');
+require_once('inc_portal.php');
?>
-Profile
+ Profile
-Name:
-Email:
-Client:
-Client Primary Contact:
-Login via:
+ Name:
+ Email:
+ Client:
+
+ Client Primary Contact:
+ Client Technical Contact:
+ Client Billing Contact:
+
+
+ Login via:
@@ -34,8 +39,7 @@ require('inc_portal.php');
-
@@ -61,7 +58,7 @@ if (isset($_GET['id']) && intval($_GET['id'])) {
Priority:
- Issue:
+
@@ -69,7 +66,7 @@ if (isset($_GET['id']) && intval($_GET['id'])) {
-
+
-
+
@@ -138,18 +135,18 @@ if (isset($_GET['id']) && intval($_GET['id'])) {