I have a problem with some fields within my form.
Several fields I want to calculate but how must I do that?
Is it possible to do it in the form or is it better to save the calculation in the database.
For example I have a database with products and there is also a price_sale in this database.
This is the sales price for the product per piece. I have a sales database in which I put the quantity of the sold products.
Now I want to calculate the total price of it including VAT.
For example price per piece = 4086, I sell 10 pieces, the result must be (10 * 4086) + VAT 27% = 51892.
Also the VAT price must be calculated and stored into the database.
In the form the price per piece must be taken from the database and can not be filled in or changed in the form.
Only the quantity can be filled in and the rest must be calculated and/or stored.
Can you please help me. Thank you very much again.