I was contracted to make a CRM for someone, and this is my first time doing much web development at all, so I'm a bit overwhelmed.
I'm trying to do something simple and it feels like I'm missing something obvious. I want to get the sum of all gallons collected. I followed the forum post that said make a one to many entity, but it only ever returns zero. It doesn't throw an error, running isRelated in the sandbox returns false. (see image) Am I missing some intuition on how things are related?
The before save script on customData is
I am positive that those are the correct names. Both values are floats.
Asked the client if they wanted to use the Reports from the Advanced Pack, but haven't heard back. For now let's assume they don't want to use it.
I'm willing to write an extension, though I'm unclear how to get it set up. I have the ext-template, but I don't know how to get that into my docker instance. I used the docker compose yml the getting started guide suggested. The docs are unclear, can I just zip it up and add it while the container is running?
I'm trying to do something simple and it feels like I'm missing something obvious. I want to get the sum of all gallons collected. I followed the forum post that said make a one to many entity, but it only ever returns zero. It doesn't throw an error, running isRelated in the sandbox returns false. (see image) Am I missing some intuition on how things are related?
The before save script on customData is
HTML Code:
gallonSum = entity\sumRelated('collectionData', 'gallonsCollected');
Asked the client if they wanted to use the Reports from the Advanced Pack, but haven't heard back. For now let's assume they don't want to use it.
I'm willing to write an extension, though I'm unclear how to get it set up. I have the ext-template, but I don't know how to get that into my docker instance. I used the docker compose yml the getting started guide suggested. The docs are unclear, can I just zip it up and add it while the container is running?

Comment