Comment 3 for bug 850160

Revision history for this message
Josh Stompro (u-launchpad-stompro-org) wrote :

I've seen something like this happen on a 2.10.6 system, I'll try to test on 3.2 when I have a chance.

But the strange thing is that it isn't consistent.

For our lost/bills event definition, when I try to pull in the current account balance, with the environment field path = usr.money_summary, 30% of the time user.money_summary.balance_owed works, and 70% of the time user.money_summary works.

So I resorted to trying both of them. I really don't get how the user.money_summary.balance_owed gets moved to user.money_summary? How does it know to grab the one field I need?

[%- atotal = BLOCK -%]
[%- IF user.money_summary.balance_owed > 0 -%]
$[% user.money_summary.balance_owed | format('%.2f') %]
[%- ELSE -%]
$[% user.money_summary | format('%.2f') %]
[%- END -%]
[%- END -%]
[%- helpers.csv_datum(atotal) -%]

The FM for money_summary.balance_owed looks like:

<field reporter:label="Money Summary" name="money_summary" oils_persist:virtual="true" reporter:datatype="link"/>

<link field="money_summary" reltype="might_have" key="usr" map="" class="mus"/>

Here are some posts to the listserve about it from 2016.
https://georgialibraries.markmail.org/thread/gboysqav4lkyfabr

Josh