mirror of
https://github.com/itflow-org/itflow
synced 2026-03-01 11:24:52 +00:00
remove commas before trying to make a float
This commit is contained in:
@@ -166,7 +166,7 @@ if (isset($_POST['create_recurring_expense'])) {
|
|||||||
$frequency = intval($_POST['frequency']);
|
$frequency = intval($_POST['frequency']);
|
||||||
$day = intval($_POST['day']);
|
$day = intval($_POST['day']);
|
||||||
$month = intval($_POST['month']);
|
$month = intval($_POST['month']);
|
||||||
$amount = floatval($_POST['amount']);
|
$amount = floatval(str_replace(',', '', $_POST['amount']));
|
||||||
$account = intval($_POST['account']);
|
$account = intval($_POST['account']);
|
||||||
$vendor = intval($_POST['vendor']);
|
$vendor = intval($_POST['vendor']);
|
||||||
$client = intval($_POST['client']);
|
$client = intval($_POST['client']);
|
||||||
@@ -195,7 +195,7 @@ if (isset($_POST['edit_recurring_expense'])) {
|
|||||||
$frequency = intval($_POST['frequency']);
|
$frequency = intval($_POST['frequency']);
|
||||||
$day = intval($_POST['day']);
|
$day = intval($_POST['day']);
|
||||||
$month = intval($_POST['month']);
|
$month = intval($_POST['month']);
|
||||||
$amount = floatval($_POST['amount']);
|
$amount = floatval(str_replace(',', '', $_POST['amount']));
|
||||||
$account = intval($_POST['account']);
|
$account = intval($_POST['account']);
|
||||||
$vendor = intval($_POST['vendor']);
|
$vendor = intval($_POST['vendor']);
|
||||||
$client = intval($_POST['client']);
|
$client = intval($_POST['client']);
|
||||||
|
|||||||
Reference in New Issue
Block a user