Fixed Cron, added alert when cron is run, added new vendors to dashboard, added some UI cleanup to clients

This commit is contained in:
johnny@pittpc.com
2019-11-19 19:25:22 -05:00
parent e5036253ed
commit 4492af71d8
4 changed files with 27 additions and 7 deletions

View File

@@ -137,7 +137,7 @@ while($row = mysqli_fetch_array($sql_companies)){
//Get the last Invoice Number and add 1 for the new invoice number
$sql_invoice_number = mysqli_query($mysqli,"SELECT * FROM settings WHERE company_id = $company_id");
$row = mysqli_fetch_array($sql_invoice_number)){
$row = mysqli_fetch_array($sql_invoice_number);
$config_invoice_next_number = $row['config_invoice_next_number'];
$new_invoice_number = "$config_invoice_prefix$config_invoice_next_number";
@@ -235,6 +235,8 @@ while($row = mysqli_fetch_array($sql_companies)){
} //End Mail Try
} //End if Autosend is on
} //End Recurring Invoices Loop
//Send Alert to inform Cron was run
mysqli_query($mysqli,"INSERT INTO alerts SET alert_type = 'Cron', alert_message = 'Cron.php successfully executed', alert_date = NOW(), company_id = $company_id");
} //End Cron Check
} //End Company Loop through