On Thu, 3 Feb 2011, Luke wrote:
In particular, for cases where the duedate and invdate are the same in a tex invoice, I would like to print "UPON RECEIPT", instead of the actual due date. [.] I have thought of at least one inconvenient way, using custom PERL and an alternate variable for duedate storage, but I'd like to avoid that if possible.
Which way I have tried, and found successful, although I would still like to migrate this to the template if possible.
I have added to IS.pm, at line 61: $form->{dueby} = ($form->{invdate} eq $form->{duedate}) ? "UPON RECEIPT" : $form->{duedate};I then use <?lsmb dueby ?> in the template where I used to have <?lsmb duedate ?>.
Luke