Summarize course revenue
So I have a
each
the
and I am displaying that data in my table:
I want to display the sum of all course revenues at the bottom of my table but adding this didn't help:
instead I get this error
Course model and an Enrollment model.each
Course has a fee.the
Course model has a function that calculates the revenue like so:and I am displaying that data in my table:
I want to display the sum of all course revenues at the bottom of my table but adding this didn't help:
instead I get this error
