From 572f12eaef09695b9374573a03bcf6caaadc6157 Mon Sep 17 00:00:00 2001 From: johnnyq Date: Wed, 1 Nov 2023 17:51:35 -0400 Subject: [PATCH 01/47] Removed num_format(),2 function for pricing and cost fields as it was putting in commas as this is unacceptable for floatvals --- budget_edit_modal.php | 2 +- expense_copy_modal.php | 2 +- expense_edit_modal.php | 2 +- expense_refund_modal.php | 2 +- invoice_payment_add_modal.php | 2 +- item_edit_modal.php | 2 +- recurring_expense_create_modal.php | 2 +- recurring_expense_edit_modal.php | 2 +- revenues.php | 2 +- ticket_invoice_add_modal.php | 2 +- transfer_edit_modal.php | 2 +- 11 files changed, 11 insertions(+), 11 deletions(-) diff --git a/budget_edit_modal.php b/budget_edit_modal.php index 913096bc..c17d9536 100644 --- a/budget_edit_modal.php +++ b/budget_edit_modal.php @@ -62,7 +62,7 @@
- + diff --git a/expense_copy_modal.php b/expense_copy_modal.php index ab69b03b..8e6273be 100644 --- a/expense_copy_modal.php +++ b/expense_copy_modal.php @@ -27,7 +27,7 @@
- + diff --git a/expense_edit_modal.php b/expense_edit_modal.php index 4140254c..1ef68edc 100644 --- a/expense_edit_modal.php +++ b/expense_edit_modal.php @@ -29,7 +29,7 @@
- + diff --git a/expense_refund_modal.php b/expense_refund_modal.php index c35cba77..d3414562 100644 --- a/expense_refund_modal.php +++ b/expense_refund_modal.php @@ -31,7 +31,7 @@
- + diff --git a/invoice_payment_add_modal.php b/invoice_payment_add_modal.php index 7a25845d..7672edf1 100644 --- a/invoice_payment_add_modal.php +++ b/invoice_payment_add_modal.php @@ -36,7 +36,7 @@
- + diff --git a/item_edit_modal.php b/item_edit_modal.php index b623e1b2..21797af1 100644 --- a/item_edit_modal.php +++ b/item_edit_modal.php @@ -52,7 +52,7 @@
- + diff --git a/recurring_expense_create_modal.php b/recurring_expense_create_modal.php index b3b9be43..ba1f110c 100644 --- a/recurring_expense_create_modal.php +++ b/recurring_expense_create_modal.php @@ -68,7 +68,7 @@
- + diff --git a/recurring_expense_edit_modal.php b/recurring_expense_edit_modal.php index 48b5fc85..cedcd108 100644 --- a/recurring_expense_edit_modal.php +++ b/recurring_expense_edit_modal.php @@ -69,7 +69,7 @@
- + diff --git a/revenues.php b/revenues.php index e56d00b6..6ff78a1c 100644 --- a/revenues.php +++ b/revenues.php @@ -105,7 +105,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()")); } $revenue_date = nullable_htmlentities($row['revenue_date']); $revenue_payment_method = nullable_htmlentities($row['revenue_payment_method']); - $revenue_amount = number_format(floatval($row['revenue_amount']),2); + $revenue_amount = floatval($row['revenue_amount']); $revenue_currency_code = nullable_htmlentities($row['revenue_currency_code']); $revenue_created_at = nullable_htmlentities($row['revenue_created_at']); $account_id = intval($row['account_id']); diff --git a/ticket_invoice_add_modal.php b/ticket_invoice_add_modal.php index 5d74fe99..45a4a765 100644 --- a/ticket_invoice_add_modal.php +++ b/ticket_invoice_add_modal.php @@ -155,7 +155,7 @@
- + diff --git a/transfer_edit_modal.php b/transfer_edit_modal.php index 524997c5..b281b359 100644 --- a/transfer_edit_modal.php +++ b/transfer_edit_modal.php @@ -32,7 +32,7 @@
- + From 5a7c62c150dce76efff594dc4cf061c94a2e56a4 Mon Sep 17 00:00:00 2001 From: johnnyq Date: Wed, 1 Nov 2023 18:16:12 -0400 Subject: [PATCH 02/47] Added back number_format() function as there was a way to just remove the commas but keep the decimal place so 290.90 doesnt look like 290.9 --- budget_edit_modal.php | 2 +- client_edit_modal.php | 2 +- expense_copy_modal.php | 2 +- expense_edit_modal.php | 2 +- expense_refund_modal.php | 2 +- invoice_edit_modal.php | 2 +- invoice_payment_add_modal.php | 2 +- item_edit_modal.php | 2 +- product_edit_modal.php | 2 +- quote_edit_modal.php | 2 +- recurring_expense_edit_modal.php | 2 +- recurring_invoice_edit_modal.php | 2 +- revenue_edit_modal.php | 2 +- ticket_invoice_add_modal.php | 2 +- transfer_edit_modal.php | 2 +- 15 files changed, 15 insertions(+), 15 deletions(-) diff --git a/budget_edit_modal.php b/budget_edit_modal.php index c17d9536..b86f24f5 100644 --- a/budget_edit_modal.php +++ b/budget_edit_modal.php @@ -62,7 +62,7 @@
- + diff --git a/client_edit_modal.php b/client_edit_modal.php index f5ae5d7a..d2ee6917 100644 --- a/client_edit_modal.php +++ b/client_edit_modal.php @@ -129,7 +129,7 @@ + value=""> diff --git a/expense_copy_modal.php b/expense_copy_modal.php index 8e6273be..64351a67 100644 --- a/expense_copy_modal.php +++ b/expense_copy_modal.php @@ -27,7 +27,7 @@
- + diff --git a/expense_edit_modal.php b/expense_edit_modal.php index 1ef68edc..528e2904 100644 --- a/expense_edit_modal.php +++ b/expense_edit_modal.php @@ -29,7 +29,7 @@
- + diff --git a/expense_refund_modal.php b/expense_refund_modal.php index d3414562..aa7e82e6 100644 --- a/expense_refund_modal.php +++ b/expense_refund_modal.php @@ -31,7 +31,7 @@
- + diff --git a/invoice_edit_modal.php b/invoice_edit_modal.php index abc451b7..879d04d5 100644 --- a/invoice_edit_modal.php +++ b/invoice_edit_modal.php @@ -67,7 +67,7 @@
- + diff --git a/invoice_payment_add_modal.php b/invoice_payment_add_modal.php index 7672edf1..a7aa2a41 100644 --- a/invoice_payment_add_modal.php +++ b/invoice_payment_add_modal.php @@ -36,7 +36,7 @@
- + diff --git a/item_edit_modal.php b/item_edit_modal.php index 21797af1..136f974f 100644 --- a/item_edit_modal.php +++ b/item_edit_modal.php @@ -52,7 +52,7 @@
- + diff --git a/product_edit_modal.php b/product_edit_modal.php index af9b20f8..e1df979a 100644 --- a/product_edit_modal.php +++ b/product_edit_modal.php @@ -55,7 +55,7 @@
- + diff --git a/quote_edit_modal.php b/quote_edit_modal.php index 5188b69d..6e7c12de 100644 --- a/quote_edit_modal.php +++ b/quote_edit_modal.php @@ -54,7 +54,7 @@
- + ; ?>'> diff --git a/recurring_expense_edit_modal.php b/recurring_expense_edit_modal.php index cedcd108..9318825f 100644 --- a/recurring_expense_edit_modal.php +++ b/recurring_expense_edit_modal.php @@ -69,7 +69,7 @@
- + diff --git a/recurring_invoice_edit_modal.php b/recurring_invoice_edit_modal.php index 42654ec9..6e46562d 100644 --- a/recurring_invoice_edit_modal.php +++ b/recurring_invoice_edit_modal.php @@ -86,7 +86,7 @@
- + diff --git a/revenue_edit_modal.php b/revenue_edit_modal.php index d439d0e0..4a372c89 100644 --- a/revenue_edit_modal.php +++ b/revenue_edit_modal.php @@ -44,7 +44,7 @@
- + diff --git a/ticket_invoice_add_modal.php b/ticket_invoice_add_modal.php index 45a4a765..cf7f6f4e 100644 --- a/ticket_invoice_add_modal.php +++ b/ticket_invoice_add_modal.php @@ -155,7 +155,7 @@
- + diff --git a/transfer_edit_modal.php b/transfer_edit_modal.php index b281b359..a32b5593 100644 --- a/transfer_edit_modal.php +++ b/transfer_edit_modal.php @@ -32,7 +32,7 @@
- + From cd99e91ac3c8409e9d233538ff4feeb4f9ebc88a Mon Sep 17 00:00:00 2001 From: johnnyq Date: Wed, 1 Nov 2023 18:55:41 -0400 Subject: [PATCH 03/47] Bold the contact name in client listing --- clients.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clients.php b/clients.php index 326f8188..e92fb24e 100644 --- a/clients.php +++ b/clients.php @@ -263,7 +263,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()")); } if (!empty($contact_name)) { ?> -
+
Date: Thu, 2 Nov 2023 13:19:13 -0400 Subject: [PATCH 04/47] Fix Quotes duplicated php start close tags in edit quote discount field --- quote_edit_modal.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/quote_edit_modal.php b/quote_edit_modal.php index 6e7c12de..3b58eb94 100644 --- a/quote_edit_modal.php +++ b/quote_edit_modal.php @@ -54,7 +54,7 @@
- ; ?>'> +
From ef213e34d4e9e2384c1ae092abe2ada628869154 Mon Sep 17 00:00:00 2001 From: johnnyq Date: Thu, 2 Nov 2023 16:12:06 -0400 Subject: [PATCH 05/47] Invoice UI Update: Bolded Due Date, Moved Subtotal to the top added - sign in front of discount, do not subtract the discount from the subtotal as this is reservered for total, do not show tax discount or paid in pdf if they are 0 --- guest_view_invoice.php | 60 ++++++++++++++++++++++++++++++---------- invoice.php | 63 ++++++++++++++++++++++++++++++++---------- quote.php | 2 +- 3 files changed, 95 insertions(+), 30 deletions(-) diff --git a/guest_view_invoice.php b/guest_view_invoice.php index 0e1d19ae..981da396 100644 --- a/guest_view_invoice.php +++ b/guest_view_invoice.php @@ -185,7 +185,7 @@ $sql_invoice_items = mysqli_query($mysqli, "SELECT * FROM invoice_items WHERE it Date - + Due
@@ -212,7 +212,7 @@ $sql_invoice_items = mysqli_query($mysqli, "SELECT * FROM invoice_items WHERE it + + + + 0) { ?> - + - - - - - - 0) { ?> + + + + 0) { ?> @@ -397,11 +399,11 @@ $sql_invoice_items = mysqli_query($mysqli, "SELECT * FROM invoice_items WHERE it {}, { text: 'Due', - style: 'invoiceDateTitle' + style: 'invoiceDueDateTitle' }, { text: , - style: 'invoiceDateValue' + style: 'invoiceDueDateValue' }, ], ] @@ -520,7 +522,7 @@ $sql_invoice_items = mysqli_query($mysqli, "SELECT * FROM invoice_items WHERE it ], [ { - rowSpan: 5, + rowSpan: '*', text: , style: 'notesText' }, @@ -533,6 +535,20 @@ $sql_invoice_items = mysqli_query($mysqli, "SELECT * FROM invoice_items WHERE it style: 'itemsFooterSubValue' } ], + 0) { ?> + [ + {}, + { + text: 'Discount', + style: 'itemsFooterSubTitle' + }, + { + text: , + style: 'itemsFooterSubValue' + } + ], + + 0) { ?> [ {}, { @@ -544,6 +560,7 @@ $sql_invoice_items = mysqli_query($mysqli, "SELECT * FROM invoice_items WHERE it style: 'itemsFooterSubValue' } ], + [ {}, { @@ -555,6 +572,7 @@ $sql_invoice_items = mysqli_query($mysqli, "SELECT * FROM invoice_items WHERE it style: 'itemsFooterSubValue' } ], + 0) { ?> [ {}, { @@ -566,6 +584,7 @@ $sql_invoice_items = mysqli_query($mysqli, "SELECT * FROM invoice_items WHERE it style: 'itemsFooterSubValue' } ], + [ {}, { @@ -631,7 +650,7 @@ $sql_invoice_items = mysqli_query($mysqli, "SELECT * FROM invoice_items WHERE it alignment: 'right', margin: [0,0,0,30] }, - // Invoice Dates + // Invoice Date invoiceDateTitle: { fontSize: 10, alignment: 'left', @@ -642,6 +661,19 @@ $sql_invoice_items = mysqli_query($mysqli, "SELECT * FROM invoice_items WHERE it alignment: 'right', margin: [0,5,0,5] }, + // Invoice Due Date + invoiceDueDateTitle: { + fontSize: 10, + bold: true, + alignment: 'left', + margin: [0,5,0,5] + }, + invoiceDueDateValue: { + fontSize: 10, + bold: true, + alignment: 'right', + margin: [0,5,0,5] + }, // Items Header itemsHeader: { fontSize: 10, diff --git a/invoice.php b/invoice.php index b5983fb6..8b1471eb 100644 --- a/invoice.php +++ b/invoice.php @@ -242,7 +242,7 @@ if (isset($_GET['invoice_id'])) { - + @@ -403,28 +403,31 @@ if (isset($_GET['invoice_id'])) {
Subtotal
Discount-
Subtotal
Tax
Total
Paid
Date
Due
+ + + + 0) { ?> - + - - - - - - 0) { ?> - + + + + + 0) { ?> @@ -680,11 +683,11 @@ require_once "footer.php"; {}, { text: 'Due', - style: 'invoiceDateTitle' + style: 'invoiceDueDateTitle' }, { text: , - style: 'invoiceDateValue' + style: 'invoiceDueDateValue' }, ], ] @@ -803,7 +806,7 @@ require_once "footer.php"; ], [ { - rowSpan: 5, + rowSpan: '*', text: , style: 'notesText' }, @@ -816,6 +819,20 @@ require_once "footer.php"; style: 'itemsFooterSubValue' } ], + 0) { ?> + [ + {}, + { + text: 'Discount', + style: 'itemsFooterSubTitle' + }, + { + text: , + style: 'itemsFooterSubValue' + } + ], + + 0) { ?> [ {}, { @@ -827,6 +844,7 @@ require_once "footer.php"; style: 'itemsFooterSubValue' } ], + [ {}, { @@ -838,6 +856,7 @@ require_once "footer.php"; style: 'itemsFooterSubValue' } ], + 0) { ?> [ {}, { @@ -849,6 +868,7 @@ require_once "footer.php"; style: 'itemsFooterSubValue' } ], + [ {}, { @@ -858,7 +878,7 @@ require_once "footer.php"; { text: , - style: 'itemsFooterTotalTitle' + style: 'itemsFooterTotalValue' } ], ] @@ -914,7 +934,7 @@ require_once "footer.php"; alignment: 'right', margin: [0,0,0,30] }, - // Invoice Dates + // Invoice Date invoiceDateTitle: { fontSize: 10, alignment: 'left', @@ -925,6 +945,19 @@ require_once "footer.php"; alignment: 'right', margin: [0,5,0,5] }, + // Invoice Due Date + invoiceDueDateTitle: { + fontSize: 10, + bold: true, + alignment: 'left', + margin: [0,5,0,5] + }, + invoiceDueDateValue: { + fontSize: 10, + bold: true, + alignment: 'right', + margin: [0,5,0,5] + }, // Items Header itemsHeader: { fontSize: 10, diff --git a/quote.php b/quote.php index 650a9034..c644944d 100644 --- a/quote.php +++ b/quote.php @@ -234,7 +234,7 @@ if (isset($_GET['quote_id'])) { - + From fbf535444b26142f0885c73528bf92ed611add5d Mon Sep 17 00:00:00 2001 From: johnnyq Date: Thu, 2 Nov 2023 16:31:25 -0400 Subject: [PATCH 06/47] Updated Quote and Recurring to match invoice UI updates --- guest_view_quote.php | 57 ++++++++++++++++++++++++++++++------------- quote.php | 55 +++++++++++++++++++++++++++++------------ recurring_invoice.php | 24 +++++++----------- 3 files changed, 88 insertions(+), 48 deletions(-) diff --git a/guest_view_quote.php b/guest_view_quote.php index c8df34da..d1502026 100644 --- a/guest_view_quote.php +++ b/guest_view_quote.php @@ -154,7 +154,7 @@ if ($quote_status == "Draft" || $quote_status == "Sent" || $quote_status == "Vie - + @@ -233,21 +233,16 @@ if ($quote_status == "Draft" || $quote_status == "Sent" || $quote_status == "Vie
Subtotal
Discount-
Subtotal
Tax
Total
Paid
Date
Expire
Date
Expire
- 0) { - ?> - - - - - + 0) { ?> + + + + + 0) { ?> @@ -378,11 +373,11 @@ if ($quote_status == "Draft" || $quote_status == "Sent" || $quote_status == "Vie {}, { text: 'Expire', - style: 'invoiceDateTitle' + style: 'invoiceDueDateTitle' }, { text: , - style: 'invoiceDateValue' + style: 'invoiceDueDateValue' }, ], ] @@ -501,7 +496,7 @@ if ($quote_status == "Draft" || $quote_status == "Sent" || $quote_status == "Vie ], [ { - rowSpan: 3, + rowSpan: '*', text: , style: 'notesText' }, @@ -514,6 +509,20 @@ if ($quote_status == "Draft" || $quote_status == "Sent" || $quote_status == "Vie style: 'itemsFooterSubValue' } ], + 0) { ?> + [ + {}, + { + text: 'Discount', + style: 'itemsFooterSubTitle' + }, + { + text: , + style: 'itemsFooterSubValue' + } + ], + + 0) { ?> [ {}, { @@ -525,15 +534,16 @@ if ($quote_status == "Draft" || $quote_status == "Sent" || $quote_status == "Vie style: 'itemsFooterSubValue' } ], + [ {}, { text: 'Total', - style: 'itemsFooterSubTitle' + style: 'itemsFooterTotalTitle' }, { text: , - style: 'itemsFooterSubValue' + style: 'itemsFooterTotalValue' } ], ] @@ -600,6 +610,19 @@ if ($quote_status == "Draft" || $quote_status == "Sent" || $quote_status == "Vie alignment: 'right', margin: [0,5,0,5] }, + // Invoice Due Dates + invoiceDueDateTitle: { + fontSize: 10, + bold: true, + alignment: 'left', + margin: [0,5,0,5] + }, + invoiceDueDateValue: { + fontSize: 10, + bold: true, + alignment: 'right', + margin: [0,5,0,5] + }, // Items Header itemsHeader: { fontSize: 10, diff --git a/quote.php b/quote.php index c644944d..ade850d3 100644 --- a/quote.php +++ b/quote.php @@ -422,21 +422,16 @@ if (isset($_GET['quote_id'])) {
Discount
Subtotal
Discount
Tax
- 0) { - ?> - - - - - + 0) { ?> + + + + + 0) { ?> @@ -642,11 +637,11 @@ require_once "footer.php"; {}, { text: 'Expire', - style: 'invoiceDateTitle' + style: 'invoiceDueDateTitle' }, { text: , - style: 'invoiceDateValue' + style: 'invoiceDueDateValue' }, ], ] @@ -765,7 +760,7 @@ require_once "footer.php"; ], [ { - rowSpan: 3, + rowSpan: '*', text: , style: 'notesText' }, @@ -778,6 +773,20 @@ require_once "footer.php"; style: 'itemsFooterSubValue' } ], + 0) { ?> + [ + {}, + { + text: 'Discount', + style: 'itemsFooterSubTitle' + }, + { + text: , + style: 'itemsFooterSubValue' + } + ], + + 0) { ?> [ {}, { @@ -789,15 +798,16 @@ require_once "footer.php"; style: 'itemsFooterSubValue' } ], + [ {}, { text: 'Total', - style: 'itemsFooterSubTitle' + style: 'itemsFooterTotalTitle' }, { text: , - style: 'itemsFooterSubValue' + style: 'itemsFooterTotalValue' } ], ] @@ -864,6 +874,19 @@ require_once "footer.php"; alignment: 'right', margin: [0,5,0,5] }, + // Invoice Due Dates + invoiceDueDateTitle: { + fontSize: 10, + bold: true, + alignment: 'left', + margin: [0,5,0,5] + }, + invoiceDueDateValue: { + fontSize: 10, + bold: true, + alignment: 'right', + margin: [0,5,0,5] + }, // Items Header itemsHeader: { fontSize: 10, diff --git a/recurring_invoice.php b/recurring_invoice.php index 8bba5ac6..00329680 100644 --- a/recurring_invoice.php +++ b/recurring_invoice.php @@ -356,31 +356,25 @@ if (isset($_GET['recurring_id'])) {
Discount
Subtotal
Discount-
Tax
- 0) { - ?> - - - - - - + 0) { ?> + + + + + 0) { ?> - - - + + +
Discount
Subtotal
Discount
Tax
Total
Total
From 008ad76c68391de411adeab98ee2a17dc947de23 Mon Sep 17 00:00:00 2001 From: nellistc Date: Fri, 3 Nov 2023 18:22:24 +1100 Subject: [PATCH 07/47] Update global_search.php add domains to global search results --- global_search.php | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) diff --git a/global_search.php b/global_search.php index 86fe2b16..b24307d8 100644 --- a/global_search.php +++ b/global_search.php @@ -39,6 +39,13 @@ if (isset($_GET['query'])) { AND (vendor_name LIKE '%$query%' OR vendor_phone LIKE '%$phone_query%') ORDER BY vendor_id DESC LIMIT 5" ); + + $sql_domains = mysqli_query($mysqli, "SELECT * FROM domains + LEFT JOIN clients ON domain_client_id = client_id + WHERE domain_archived_at IS NULL + AND domain_name LIKE '%$query%' + ORDER BY domain_id DESC LIMIT 5" + ); $sql_products = mysqli_query($mysqli, "SELECT * FROM products WHERE product_archived_at IS NULL @@ -240,6 +247,46 @@ if (isset($_GET['query'])) { + 0) { ?> + + +
+
+
+
Domains
+
+
+ + + + + + + + + + + + + + + + +
NameExpiry
+
+
+
+
+ + + 0) { ?> From 7ab032fa3fbe48bbc554b8f15a6ff931660814af Mon Sep 17 00:00:00 2001 From: nellistc Date: Sat, 4 Nov 2023 07:31:21 +1100 Subject: [PATCH 08/47] Update global search, add client to domain search results Show client name and link to client overview in domain search results --- global_search.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/global_search.php b/global_search.php index b24307d8..70a3e552 100644 --- a/global_search.php +++ b/global_search.php @@ -261,6 +261,7 @@ if (isset($_GET['query'])) { Name Expiry + >Client @@ -271,10 +272,13 @@ if (isset($_GET['query'])) { $domain_expiry = nullable_htmlentities($row['domain_expire']); $domain_id = intval($row['domain_id']); $client_id = intval($row['client_id']); + $client_name = nullable_htmlentities($row['client_name']); + ?> + From 7ccd69a26f8163d1c119bca17ea716c713433541 Mon Sep 17 00:00:00 2001 From: Marcus Hill Date: Sun, 5 Nov 2023 08:24:19 +0000 Subject: [PATCH 09/47] Fix trip export to csv --- post/trip.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/post/trip.php b/post/trip.php index 8d4567f5..b2f46d97 100644 --- a/post/trip.php +++ b/post/trip.php @@ -59,11 +59,11 @@ if (isset($_GET['delete_trip'])) { if (isset($_POST['export_trips_csv'])) { $date_from = sanitizeInput($_POST['date_from']); $date_to = sanitizeInput($_POST['date_to']); - if(!empty($date_from) && !empty($date_to)){ - $date_query = "AND DATE(trip_date) BETWEEN '$date_from' AND '$date_to'"; + if (!empty($date_from) && !empty($date_to)){ + $date_query = "DATE(trip_date) BETWEEN '$date_from' AND '$date_to'"; $file_name_date = "$date_from-to-$date_to"; - }else{ - $date_query = ""; + } else { + $date_query = "trip_date IS NOT NULL"; $file_name_date = date('Y-m-d'); } From 573eaf179b234bb34a87aa1b51148da72c5cfc53 Mon Sep 17 00:00:00 2001 From: Marcus Hill Date: Sun, 5 Nov 2023 10:42:46 +0000 Subject: [PATCH 10/47] API - Documents - Add create and update methods --- api/v1/documents/create.php | 34 ++++++++++++++++ api/v1/documents/document_model.php | 43 ++++++++++++++++++++ api/v1/documents/read.php | 6 ++- api/v1/documents/update.php | 61 +++++++++++++++++++++++++++++ 4 files changed, 142 insertions(+), 2 deletions(-) create mode 100644 api/v1/documents/create.php create mode 100644 api/v1/documents/document_model.php create mode 100644 api/v1/documents/update.php diff --git a/api/v1/documents/create.php b/api/v1/documents/create.php new file mode 100644 index 00000000..9b540885 --- /dev/null +++ b/api/v1/documents/create.php @@ -0,0 +1,34 @@ + Date: Sun, 5 Nov 2023 11:03:49 +0000 Subject: [PATCH 11/47] Fix undefined client_is_lead errors - Defines client_is_lead within the general client include file to prevent the following error filling up logs on almost every page load. > "PHP Notice: Undefined variable: client_is_lead in itflow/client_edit_modal.php on line 111" --- inc_all_client.php | 1 + 1 file changed, 1 insertion(+) diff --git a/inc_all_client.php b/inc_all_client.php index 7dc50c58..7e895995 100644 --- a/inc_all_client.php +++ b/inc_all_client.php @@ -32,6 +32,7 @@ if (isset($_GET['client_id'])) { $row = mysqli_fetch_array($sql); $client_name = nullable_htmlentities($row['client_name']); + $client_is_lead = intval($row['client_lead']); $client_type = nullable_htmlentities($row['client_type']); $client_website = nullable_htmlentities($row['client_website']); $client_referral = nullable_htmlentities($row['client_referral']); From 43b94ebddc9292bf6568a884ed14ae7111a6b32e Mon Sep 17 00:00:00 2001 From: johnnyq Date: Mon, 6 Nov 2023 12:44:44 -0500 Subject: [PATCH 12/47] Restored New Quote Functionality under clients this was disabled for debugging but never re-enabled back --- client_quotes.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client_quotes.php b/client_quotes.php index 65cb9efa..cc038769 100644 --- a/client_quotes.php +++ b/client_quotes.php @@ -163,7 +163,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()")); Date: Mon, 6 Nov 2023 13:19:27 -0500 Subject: [PATCH 13/47] Do not show archived content when adding a service --- client_service_add_modal.php | 14 +++++++------- client_services.php | 4 ++-- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/client_service_add_modal.php b/client_service_add_modal.php index 7d91cf4d..24108134 100644 --- a/client_service_add_modal.php +++ b/client_service_add_modal.php @@ -99,7 +99,7 @@ Select related documents Select related logins Select related certificates + @@ -495,8 +495,8 @@ if (isset($_GET['asset_id'])) { jQuery.post( "ajax.php", { - contact_set_notes: 'TRUE', - contact_id: contact_id, + asset_set_notes: 'TRUE', + asset_id: asset_id, notes: notes } ) From c40be5686950617856793968637c41b9760f4a35 Mon Sep 17 00:00:00 2001 From: johnnyq Date: Mon, 6 Nov 2023 14:33:23 -0500 Subject: [PATCH 17/47] Disable Documentation section of Client Side Nav of IT Doclumentation is disabled --- client_side_nav.php | 54 +++++++++++++++++++++++---------------------- 1 file changed, 28 insertions(+), 26 deletions(-) diff --git a/client_side_nav.php b/client_side_nav.php index 58d7d0f8..9bb0f572 100644 --- a/client_side_nav.php +++ b/client_side_nav.php @@ -47,40 +47,39 @@ + - - +

+ + - +

+ + - + + + 2 && $config_module_enable_accounting == 1) { ?> From 76f20225f5d94eebdec17079c24c62110d7ef965 Mon Sep 17 00:00:00 2001 From: johnnyq Date: Mon, 6 Nov 2023 14:38:22 -0500 Subject: [PATCH 18/47] Fix IT Docs not showing, keep assets side nav active when viewing asset details page --- client_side_nav.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client_side_nav.php b/client_side_nav.php index 9bb0f572..1a21bf67 100644 --- a/client_side_nav.php +++ b/client_side_nav.php @@ -106,12 +106,12 @@ - + - - if ($config_module_enable_accounting == 1) { ?> + + + - - - - - - - - + + + +