Added SMTP Port field, Set invoice naming YYYY-MM-DD-COMPANY-Invoice##, and some other little cleanups

This commit is contained in:
root
2019-04-28 14:38:10 -04:00
parent a6373678e8
commit 40e3097125
9 changed files with 84 additions and 33 deletions

View File

@@ -1,6 +1,6 @@
<?php
$sql = mysqli_query($mysqli,"SELECT * FROM invoices WHERE client_id = $client_id AND invoice_number > 0 ORDER BY invoice_number DESC");
$sql = mysqli_query($mysqli,"SELECT * FROM invoices WHERE client_id = $client_id ORDER BY invoice_number DESC");
?>
@@ -29,11 +29,7 @@
$invoice_amount = $row['invoice_amount'];
//check to see if overdue
$unixtime_invoice_due = strtotime($invoice_due);
if($unixtime_invoice_due < time()){
$invoice_status = "Overdue";
$invoice_color = "text-danger";
}
//Set Badge color based off of invoice status
if($invoice_status == "Sent"){