numeric value is set to 0 sets all other to 0 too
i have a function where i get some values from my form like this:
$netto = (float) $get('netto_price');
$discount = (float) $get("discounts.discount_percentage");
$tax = (int) $get('taxRate');
when i set the taxRate to 0 in the Form and dd the variables all are set to 0 or 0.00 in case of floats, even if others have a different value
if i set the taxRate to something higher then 0 and dd the variables
everything is normal again and all variables have correct values.. is it a bug or where is the problem?
0 Replies