From 9a82ce4c1f767b3dbe807ff9c84b17e4a797384b Mon Sep 17 00:00:00 2001 From: johnnyq Date: Sat, 21 Aug 2021 21:25:11 -0400 Subject: [PATCH] More work on IT Documentation --- invoice.php | 8 +-- post.php | 176 +++++++++++++++++++++++++++++++++++++++++++++++++++- 2 files changed, 178 insertions(+), 6 deletions(-) diff --git a/invoice.php b/invoice.php index e19ff75b..23432415 100644 --- a/invoice.php +++ b/invoice.php @@ -528,7 +528,7 @@ var docDefinition = { width: '*' }, { - text: '', + text: , style: 'invoiceNumber', width: '*' }, @@ -586,7 +586,7 @@ var docDefinition = { style:'invoiceDateTitle', }, { - text:'', + text:, style:'invoiceDateValue', }, ], @@ -597,7 +597,7 @@ var docDefinition = { style:'invoiceDateTitle', }, { - text:'', + text:, style:'invoiceDateValue', }, ], @@ -913,4 +913,4 @@ var docDefinition = { columnGap: 20, } } - + \ No newline at end of file diff --git a/post.php b/post.php index 1ba50941..987944cc 100644 --- a/post.php +++ b/post.php @@ -4643,6 +4643,7 @@ if(isset($_GET['export_client_pdf'])){ $sql_assets = mysqli_query($mysqli,"SELECT * FROM assets WHERE client_id = $client_id ORDER BY asset_type ASC"); $sql_networks = mysqli_query($mysqli,"SELECT * FROM networks WHERE client_id = $client_id ORDER BY network_name ASC"); $sql_domains = mysqli_query($mysqli,"SELECT * FROM domains WHERE client_id = $client_id ORDER BY domain_name ASC"); + $sql_certficates = mysqli_query($mysqli,"SELECT * FROM certificates WHERE client_id = $client_id ORDER BY certificate_name ASC"); $sql_software = mysqli_query($mysqli,"SELECT * FROM software WHERE client_id = $client_id ORDER BY software_name ASC"); ?> @@ -5132,6 +5133,69 @@ if(isset($_GET['export_client_pdf'])){ }, //Assets END + //Software Start + { + text: 'Software', + style: 'title' + }, + + { + table: { + body: [ + [ + { + text: 'Name', + style: 'itemHeader' + }, + { + text: 'Type', + style: 'itemHeader' + }, + { + text: 'License', + style: 'itemHeader' + }, + { + text: 'Notes', + style: 'itemHeader' + } + ], + + + + [ + { + text: , + style: 'item' + }, + { + text: , + style: 'item' + }, + { + text: , + style: 'item' + }, + { + text: , + style: 'item' + } + ], + + + ] + } + }, + //Software END + //Networks Start { text: 'Networks', @@ -5204,6 +5268,114 @@ if(isset($_GET['export_client_pdf'])){ }, //Networks END + //Domains Start + { + text: 'Domains', + style: 'title' + }, + + { + table: { + body: [ + [ + { + text: 'Domain Name', + style: 'itemHeader' + }, + { + text: 'Expire', + style: 'itemHeader' + } + ], + + + + [ + { + text: , + style: 'item' + }, + { + text: , + style: 'item' + } + ], + + + ] + } + }, + //Domains END + + //Certificates Start + { + text: 'Certificates', + style: 'title' + }, + + { + table: { + body: [ + [ + { + text: 'Certificate Name', + style: 'itemHeader' + }, + { + text: 'Domain Name', + style: 'itemHeader' + }, + { + text: 'Issuer', + style: 'itemHeader' + }, + { + text: 'Expiration Date', + style: 'itemHeader' + } + ], + + + + [ + { + text: , + style: 'item' + }, + { + text: , + style: 'item' + }, + { + text: , + style: 'item' + }, + { + text: , + style: 'item' + } + ], + + + ] + } + }, + //Certificates END + ], //End Content, @@ -5217,13 +5389,13 @@ if(isset($_GET['export_client_pdf'])){ //Item Header itemHeader: { fontSize: 9, - margin: [0,5,0,5], + margin: [0,2,0,2], bold: true }, //item item: { fontSize: 9, - margin: [0,5,0,5] + margin: [0,2,0,2] } } };