Fixed recurring not updating the last sent and next date due to the way recurring was linked to an invoice

This commit is contained in:
root
2019-06-02 01:34:46 -04:00
parent 59882a3af5
commit 9c313030ee
4 changed files with 4 additions and 7 deletions

View File

@@ -1478,8 +1478,6 @@ if(isset($_POST['save_recurring'])){
mysqli_query($mysqli,"UPDATE recurring SET recurring_amount = '$new_recurring_amount' WHERE recurring_id = $recurring_id");
$_SESSION['alert_message'] = "Item added";
}
if(isset($_POST['recurring_note'])){
@@ -1488,10 +1486,10 @@ if(isset($_POST['save_recurring'])){
mysqli_query($mysqli,"UPDATE recurring SET recurring_note = '$recurring_note' WHERE recurring_id = $recurring_id");
$_SESSION['alert_message'] = "Notes added";
}
$_SESSION['alert_message'] = "Recurring Invoice Updated";
header("Location: " . $_SERVER["HTTP_REFERER"]);
}