diff --git a/add_location_modal.php b/add_location_modal.php index 5b2b81f1..ed34966a 100644 --- a/add_location_modal.php +++ b/add_location_modal.php @@ -93,7 +93,7 @@ diff --git a/add_ticket_modal.php b/add_ticket_modal.php index fd0a52c3..c6f811a1 100644 --- a/add_ticket_modal.php +++ b/add_ticket_modal.php @@ -113,7 +113,7 @@
- +
diff --git a/add_vendor_modal.php b/add_vendor_modal.php index 36ebefea..ec9fd446 100644 --- a/add_vendor_modal.php +++ b/add_vendor_modal.php @@ -117,7 +117,7 @@ diff --git a/client.php b/client.php index c9b16ce2..dbe5fef3 100644 --- a/client.php +++ b/client.php @@ -30,15 +30,18 @@ if(isset($_GET['client_id'])){ $client_net_terms = $config_default_net_terms; } $client_support = $row['client_support']; - $client_notes = $row['client_notes']; + $client_notes = $row['client_notes']; + $client_created_at = $row['client_created_at']; $primary_contact = $row['primary_contact']; $primary_location = $row['primary_location']; + $contact_id = $row['contact_id']; $contact_name = $row['contact_name']; $contact_title = $row['contact_title']; $contact_email = $row['contact_email']; $contact_phone = $row['contact_phone']; $contact_extension = $row['contact_extension']; $contact_mobile = $row['contact_mobile']; + $location_id = $row['location_id']; $location_name = $row['location_name']; $location_address = $row['location_address']; $location_city = $row['location_city']; diff --git a/client_locations.php b/client_locations.php index 32bdda26..26d97bd0 100644 --- a/client_locations.php +++ b/client_locations.php @@ -116,7 +116,6 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli,"SELECT FOUND_ROWS()")); } $location_photo = $row['location_photo']; $location_notes = $row['location_notes']; - $location_primary = $row['location_primary']; $location_created_at = $row['location_created_at']; $location_contact_id = $row['location_contact_id']; if($location_id == $primary_location){ diff --git a/edit_invoice_modal.php b/edit_invoice_modal.php index c1091fa0..946e1fb4 100644 --- a/edit_invoice_modal.php +++ b/edit_invoice_modal.php @@ -42,7 +42,7 @@ '$income_created_at' OR category_archived_at IS NULL) AND company_id = $session_company_id ORDER BY category_name ASC"); + $sql_income_category = mysqli_query($mysqli,"SELECT * FROM categories WHERE category_type = 'Income' AND (category_archived_at > '$invoice_created_at' OR category_archived_at IS NULL) AND company_id = $session_company_id ORDER BY category_name ASC"); while($row = mysqli_fetch_array($sql_income_category)){ $category_id_select= $row['category_id']; $category_name_select = $row['category_name']; diff --git a/post.php b/post.php index 49df49ac..f8b7c265 100644 --- a/post.php +++ b/post.php @@ -4121,7 +4121,7 @@ if(isset($_GET['export_client_assets_csv'])){ $client_name = $row['client_name']; - $sql = mysqli_query($mysqli,"SELECT * FROM assets WHERE asset_client_id = $client_id ORDER BY asset_name ASC"); + $sql = mysqli_query($mysqli,"SELECT * FROM assets LEFT JOIN contacts ON asset_contact_id = contact_id LEFT JOIN locations ON asset_location_id = location_id WHERE asset_client_id = $client_id ORDER BY asset_name ASC"); if($sql->num_rows > 0){ $delimiter = ","; $filename = $client_name . "-Assets-" . date('Y-m-d') . ".csv"; @@ -4130,12 +4130,12 @@ if(isset($_GET['export_client_assets_csv'])){ $f = fopen('php://memory', 'w'); //set column headers - $fields = array('Name', 'Type', 'Make', 'Model', 'Serial Number', 'MAC Address', 'IP Address', 'Operating System', 'Purchase Date', 'Warranty Expiration Date', 'Notes'); + $fields = array('Name', 'Type', 'Make', 'Model', 'Serial Number', 'Operating System', 'Purchase Date', 'Warranty Expire', 'Install Date', 'Assigned To', 'Location', 'Notes'); fputcsv($f, $fields, $delimiter); //output each row of the data, format line as csv and write to file pointer while($row = $sql->fetch_assoc()){ - $lineData = array($row['asset_name'], $row['asset_type'], $row['asset_make'], $row['asset_model'], $row['asset_serial'], $row['asset_mac'], $row['asset_ip'], $row['asset_os'], $row['asset_purchase_date'], $row['asset_warranty_expire'], $row['asset_notes']); + $lineData = array($row['asset_name'], $row['asset_type'], $row['asset_make'], $row['asset_model'], $row['asset_serial'], $row['asset_os'], $row['asset_purchase_date'], $row['asset_warranty_expire'], $row['asset_install_date'], $row['contact_name'], $row['location_name'], $row['asset_notes']); fputcsv($f, $lineData, $delimiter); } @@ -5404,7 +5404,7 @@ if(isset($_GET['export_client_pdf'])){ var docDefinition = { info: { title: '- IT Documentation', - author: + author: }, footer: { columns: [ @@ -5787,20 +5787,12 @@ if(isset($_GET['export_client_pdf'])){ text: 'Model', style: 'itemHeader' }, - { - text: 'OS', - style: 'itemHeader' - }, { text: 'Serial', style: 'itemHeader' }, { - text: 'IP', - style: 'itemHeader' - }, - { - text: 'MAC', + text: 'OS', style: 'itemHeader' }, { @@ -5812,7 +5804,7 @@ if(isset($_GET['export_client_pdf'])){ style: 'itemHeader' }, { - text: 'Notes', + text: 'Install Date', style: 'itemHeader' } ], @@ -5829,6 +5821,7 @@ if(isset($_GET['export_client_pdf'])){ $asset_mac = $row['asset_mac']; $asset_purchase_date = $row['asset_purchase_date']; $asset_warranty_expire = $row['asset_warranty_expire']; + $asset_install_date = $row['asset_install_date']; $asset_notes = $row['asset_notes']; ?> @@ -5845,20 +5838,12 @@ if(isset($_GET['export_client_pdf'])){ text: , style: 'item' }, - { - text: , - style: 'item' - }, { text: , style: 'item' }, { - text: , - style: 'item' - }, - { - text: , + text: , style: 'item' }, { @@ -5870,7 +5855,7 @@ if(isset($_GET['export_client_pdf'])){ style: 'item' }, { - text: , + text: , style: 'item' } ],