sum two fields
I have a case where I need to add two field values from a form. The field values belong to the same table. I am using a placeholder to add the two fields and it works. The filed values are named cash and online. the resulting sum is called sales. The code is shown in the attached image. I want to be able to insert the calculated sales value into the database field. I tried the afterStateUpdated method but cant figure out how to sum the values I want. Thanks for your help

