Sign in
Log inSign up
Hoakin

1 comment

Michael Corrigan
Michael Corrigan
Nov 18, 2023

Hi Hoakin, This is a useful walkthrough, thanks!

I think that you are missing a detail in your "index" file: You need to show the current price of the stock (using lookup() as well as the price at time of purchase in order to see profit/loss.

The true value of the stock is its current price.

You can do this by looping through the list and appending to the record before passing it to the template file.

I appreciated your tutorial - great write up.

ยท