Fixed issue where if you sent an invoice it would update all invoices to that client and status. I forgot a where statment in POST wooops

This commit is contained in:
root 2019-04-28 14:59:35 -04:00
parent 48405fe930
commit fa12d23b2f
1 changed files with 1 additions and 1 deletions

View File

@ -1322,7 +1322,7 @@ if(isset($_GET['email_invoice'])){
//Don't chnage the status to sent if the status is anything but draf
if($invoice_status == 'Draft'){
mysqli_query($mysqli,"UPDATE invoices SET invoice_status = 'Sent', client_id = $client_id");
mysqli_query($mysqli,"UPDATE invoices SET invoice_status = 'Sent', client_id = $client_id WHERE invoice_id = $invoice_id");
}