diff --git a/add_software_modal.php b/add_software_modal.php index 2b5c5655..4d08d67d 100644 --- a/add_software_modal.php +++ b/add_software_modal.php @@ -15,6 +15,9 @@ + @@ -63,6 +66,12 @@ +
+ + + +
+
diff --git a/client_software.php b/client_software.php index 9cb49740..83ced1bd 100644 --- a/client_software.php +++ b/client_software.php @@ -86,6 +86,7 @@ $total_pages = ceil($total_found_rows / 10); $software_name = $row['software_name']; $software_type = $row['software_type']; $software_license = $row['software_license']; + $software_notes = $row['software_notes']; $sql_login = mysqli_query($mysqli,"SELECT *, AES_DECRYPT(login_password, '$config_aes_key') AS login_password FROM logins WHERE software_id = $software_id"); $row = mysqli_fetch_array($sql_login); diff --git a/db.sql b/db.sql index d8ddf4e1..2f8f56e2 100644 --- a/db.sql +++ b/db.sql @@ -685,6 +685,7 @@ CREATE TABLE `software` ( `software_name` varchar(200) NOT NULL, `software_type` varchar(200) NOT NULL, `software_license` varchar(200) DEFAULT NULL, + `software_notes` text DEFAULT NULL, `software_created_at` datetime NOT NULL, `software_updated_at` datetime DEFAULT NULL, `login_id` int(11) DEFAULT NULL, @@ -838,6 +839,7 @@ CREATE TABLE `vendors` ( `vendor_website` varchar(200) DEFAULT NULL, `vendor_account_number` varchar(200) DEFAULT NULL, `vendor_notes` text DEFAULT NULL, + `vendor_global` tinyint(1) DEFAULT NULL, `vendor_created_at` datetime NOT NULL, `vendor_updated_at` datetime DEFAULT NULL, `client_id` int(11) NOT NULL, @@ -855,4 +857,4 @@ CREATE TABLE `vendors` ( /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; --- Dump completed on 2020-02-03 13:54:11 +-- Dump completed on 2020-02-24 16:59:52 diff --git a/edit_software_modal.php b/edit_software_modal.php index 17bf3bcf..a3ea4049 100644 --- a/edit_software_modal.php +++ b/edit_software_modal.php @@ -14,10 +14,13 @@ @@ -25,10 +28,10 @@
-
+
- +
@@ -63,6 +66,12 @@
+
+ + + +
+
diff --git a/guest_view_invoice.php b/guest_view_invoice.php index 08ed169c..a8bb852b 100644 --- a/guest_view_invoice.php +++ b/guest_view_invoice.php @@ -111,7 +111,7 @@ if(isset($_GET['invoice_id'], $_GET['url_key'])){ ?>
-
+
Invoice History Print @@ -283,7 +283,7 @@ if(isset($_GET['invoice_id'], $_GET['url_key'])){ $invoice_id AND (invoice_status = 'Sent' OR invoice_status = 'Viewed' OR invoice_status = 'Partial') ORDER BY invoice_date DESC"); + $sql = mysqli_query($mysqli,"SELECT * FROM invoices WHERE client_id = $client_id AND invoice_due < CURDATE() AND(invoice_status = 'Sent' OR invoice_status = 'Viewed' OR invoice_status = 'Partial') ORDER BY invoice_date DESC"); if(mysqli_num_rows($sql) > 1){ @@ -339,6 +339,65 @@ if(isset($_GET['invoice_id'], $_GET['url_key'])){ } ?> + CURDATE() AND(invoice_status = 'Sent' OR invoice_status = 'Viewed' OR invoice_status = 'Partial') ORDER BY invoice_date DESC"); + + if(mysqli_num_rows($sql) > 1){ + + ?> + + +
+
+ Current Invoices +
+
+ + + + + + + + + + + + + + + + + + + + + + +
Invoice #DateDueAmount
(Due in Days)$
+
+
+ + + + 0){