Fixed up UI Invoice PDF and No Records

This commit is contained in:
johnnyq
2021-04-06 17:41:41 -04:00
parent 9318f40fcd
commit 72d379504b
3 changed files with 321 additions and 339 deletions
+1 -6
View File
@@ -1,14 +1,9 @@
<div class="modal" id="deleteClientModal<?php echo $client_id; ?>" tabindex="-1">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header bg-danger">
<button type="button" class="close text-white" data-dismiss="modal">
<span>&times;</span>
</button>
</div>
<div class="modal-body">
<center class="mb-4">
<i class="far fa-8x fa-times-circle text-danger mb-3 mt-3"></i>
<i class="far fa-10x fa-times-circle text-danger mb-3 mt-3"></i>
<h2>Are you sure?</h2>
<h6 class="mb-4 text-secondary">Do you really want to delete <?php echo $client_name; ?>? This process cannot be undone.</h6>
<button type="button" class="btn btn-outline-secondary btn-lg px-5 mr-4" data-dismiss="modal">Cancel</button>
+14 -27
View File
@@ -488,7 +488,6 @@ include("footer.php");
<script src='plugins/pdfmake/pdfmake.js'></script>
<script src='plugins/pdfmake/vfs_fonts.js'></script>
<script>
// Invoice markup
@@ -505,13 +504,9 @@ include("footer.php");
title: '<?php echo "$company_name - Invoice"; ?>',
author: '<?php echo $company_name; ?>'
},
footer: {
columns: [
{ text: '<?php echo $config_invoice_footer; ?>', style: 'documentFooterCenter' },
]
},
@@ -548,12 +543,10 @@ include("footer.php");
{
text: '<?php echo $company_name; ?>',
style:'invoiceBillingTitle',
},
{
text: '<?php echo $client_name; ?>',
style:'invoiceBillingTitleClient',
},
]
},
@@ -582,7 +575,7 @@ include("footer.php");
text:'<?php echo $invoice_date ?>',
style:'invoiceDateValue',
width: 80
}
},
]
},
{
@@ -596,7 +589,7 @@ include("footer.php");
text:'<?php echo $invoice_due ?>',
style:'invoiceDateValue',
width: 80
}
},
]
},
@@ -654,45 +647,41 @@ include("footer.php");
$total_tax = number_format($total_tax,2);
$sub_total = $item_price * $item_quantity + $sub_total;
$sub_total = number_format($sub_total, 2);
echo "
?>
// Item 1
// Item
[
[
{
text: '$item_name',
text: '<?php echo $item_name; ?>',
style:'itemTitle'
},
{
text: '$item_description',
text: '<?php echo $item_description; ?>',
style:'itemDescription'
}
],
{
text:'$item_quantity',
text:'<?php echo $item_quantity; ?>',
style:'itemQty'
},
{
text:'$$item_price',
text:'$<?php echo $item_price; ?>',
style:'itemNumber'
},
{
text:'$$item_tax',
text:'$<?php echo $item_tax; ?>',
style:'itemNumber'
},
{
text: '$$item_total',
text: '$<?php echo $item_total; ?>',
style:'itemTotal'
}
],
";
<?php
}
?>
// END Items
]
}, // table
@@ -767,10 +756,10 @@ include("footer.php");
style:'notesTitle'
},
{
text: '<?php ?>',
text: '<?php //echo $invoice_note; ?>',
style:'notesText'
}
],
], //End Content,
styles: {
// Document Footer
documentFooterCenter: {
@@ -790,7 +779,6 @@ include("footer.php");
fontSize: 14,
alignment:'right'
},
// Billing Headers
invoiceBillingTitle: {
fontSize: 14,
@@ -859,7 +847,6 @@ include("footer.php");
bold: true,
alignment: 'center',
},
// Items Footer (Subtotal, Total, Tax, etc)
itemsFooterSubTitle: {
fontSize: 10,
@@ -899,5 +886,5 @@ include("footer.php");
defaultStyle: {
columnGap: 20,
}
};
}
</script>
+1 -1
View File
@@ -86,7 +86,7 @@ if ($total_found_rows > 10) {
}
if($total_found_rows == 0){
echo "<center><h3 class='text-secondary'><i class='fa fa-fw fa-2x fa-meh-rolling-eyes'></i><br>Records? What..</h3></center>";
echo "<center><i class='far fa-fw fa-6x fa-meh-rolling-eyes text-secondary'></i><h3 class='text-secondary mt-2'>Records? whattt</h3></center>";
}
?>