two ways you could do it
- on delete call a backend workflow to calc it
- on database change thing deleted run the backend workflow to calc it
I wouldn’t calc it on the page since the calc needs to happen with several triggers
create, update, delete - and I prefer to do the calc in only 1 place and then just reference the same workflow
I’d hold the calc in a custom event in the backend and then either use an api or database to trigger it
1 Like