What does your form controller action look like?
Also please do not calculate prices this way, this will cause floating point rounding errors. Look into using brick/money.
I am assuming the prices and the discount is from the database right? In this case change this code section from
$presupuestoProducto->discount = ($sale_price * $discount_percentage)/100;
$presupuestoProducto->discount = ($presupuestoProducto* $presupuestoProducto)/100;
Sign in to participate in this thread!
We'd like to thank these amazing companies for supporting us