remove commas before trying to make a float

This commit is contained in:
o-psi 2023-10-13 17:39:41 -05:00
parent 8c56426186
commit 00effcf79d
1 changed files with 2 additions and 2 deletions

View File

@ -166,7 +166,7 @@ if (isset($_POST['create_recurring_expense'])) {
$frequency = intval($_POST['frequency']);
$day = intval($_POST['day']);
$month = intval($_POST['month']);
$amount = floatval($_POST['amount']);
$amount = floatval(str_replace(',', '', $_POST['amount']));
$account = intval($_POST['account']);
$vendor = intval($_POST['vendor']);
$client = intval($_POST['client']);
@ -195,7 +195,7 @@ if (isset($_POST['edit_recurring_expense'])) {
$frequency = intval($_POST['frequency']);
$day = intval($_POST['day']);
$month = intval($_POST['month']);
$amount = floatval($_POST['amount']);
$amount = floatval(str_replace(',', '', $_POST['amount']));
$account = intval($_POST['account']);
$vendor = intval($_POST['vendor']);
$client = intval($_POST['client']);