[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GT] change to Templates/{portfolio_historic.mhtml,portfolio_positions.mhtml}



gt'ers and Matthew Jurgens

i'm not sure i have the full grasp on templates and the structures
of the *.mpl and *.mhtml file formats, but without the change
noted below i was getting "Use of uninitialized value in string ne ..."
for portfolio_historic.mhtml (line 41) and portfolio_positions.mhtml (line 42)
for each position (either open or closed), when using templates to
format the results.

the portfolio i've been using with this is my actual positions constructed
using either command line transaction input, file input or the db input
methods to populate it. as a result the position and order records may
be incomplete/incorrect.

although i see some use of the methods set_submission_date and submission_date
i don't see any reference to the hash key 'submission_date' anywhere in the
gt source tree.

any way, the change i made to both files (only to eliminate the warning)
Templates/portfolio_historic.mhtml
Templates/portfolio_positions.mhtml

i don't yet know if this change is ok or not.

- % while ($row->{'orderlist'}[$i]->{'submission_date'} ne "") {;
+ % while ( $row->{'orderlist'}[$i]->{'submission_date'} ) {;

Matthew Jurgens, if you are still interested, since this appears to
be your handiwork, should the hash key {'submission_date'} be {'date'}
or something else or has something not been fully patched?


aloha

ras