Remove currency_code variable assignment when posting add_quote/add_recurring as it's not provided. The session company currency is actually used
This commit is contained in:
@@ -3023,7 +3023,6 @@ if(isset($_POST['add_quote'])){
|
||||
$client = intval($_POST['client']);
|
||||
$date = trim(strip_tags(mysqli_real_escape_string($mysqli,$_POST['date'])));
|
||||
$category = intval($_POST['category']);
|
||||
$currency_code = trim(strip_tags(mysqli_real_escape_string($mysqli,$_POST['currency_code'])));
|
||||
$scope = trim(strip_tags(mysqli_real_escape_string($mysqli,$_POST['scope'])));
|
||||
|
||||
//Get the last Quote Number and add 1 for the new Quote number
|
||||
@@ -3412,7 +3411,6 @@ if(isset($_POST['add_recurring'])){
|
||||
$frequency = trim(strip_tags(mysqli_real_escape_string($mysqli,$_POST['frequency'])));
|
||||
$start_date = trim(strip_tags(mysqli_real_escape_string($mysqli,$_POST['start_date'])));
|
||||
$category = intval($_POST['category']);
|
||||
$currency_code = trim(strip_tags(mysqli_real_escape_string($mysqli,$_POST['currency_code'])));
|
||||
$scope = trim(strip_tags(mysqli_real_escape_string($mysqli,$_POST['scope'])));
|
||||
|
||||
//Get the last Recurring Number and add 1 for the new Recurring number
|
||||
|
||||
Reference in New Issue
Block a user