What's the easiest way to display a sum of all offers? The tricky part is: we allow different filters to be applied to the list. these filters should also be applied when calculating the sum.
Examples:
Without any filters| offer name | offer price |----------------------------| offer 1 | $1000| offer 2 | $2000| offer 3 | $5000----------------------------| | $8000 total
Without any filters| offer name | offer price |----------------------------| offer 1 | $1000| offer 2 | $2000| offer 3 | $5000----------------------------| | $8000 total
With filter name: ilike "%2%"| offer name | offer price |----------------------------| offer 2 | $2000----------------------------| | $2000 total
With filter name: ilike "%2%"| offer name | offer price |----------------------------| offer 2 | $2000----------------------------| | $2000 total
The Elixir backend framework for unparalleled productivity. Declarative tools that let you stop wasting time. Use with Phoenix LiveView or build APIs in minutes for your front-end of choice.