Displaying 2 results from an estimated 2 matches for "ovamount".
Did you mean:
amount
2009 Jul 28
1
complex find
...@debtor = Debtortrans.find(:all,
:conditions => ["trandate > ? and trandate < ? AND
debtortranstaxes.taxauthid = ?", @per1, @per.lastdate_in_period, "24"],
:include => ''debtortranstaxes'',
:select => ''debtorno, trandate, transno, ovamount'')
but this gives me an error...
NameError: undefined local variable or method `debtortranstaxes'' for
#<Class:0xb7a4e644>
so I change the conditions to
:conditions => ["trandate > ? and trandate < ? AND taxauthid = ?",
@per1, @per.lastdate_in_period,...
2009 Jul 29
9
partials...
...AND taxauthid IN (:ids)", {:begin => @per1, :end
=> @per2, :ids => @taxauthids}],
:joins => ''LEFT JOIN debtortrans ON debtortrans.id=debtortransid'',
:include => ''debtortrans'',
:select => ''debtorno, trandate, transno, ovamount, taxamount,
taxauthid'',
:order => ''trandate, transno'')
render :partial => ''reports/city_taxes_print.erb''
%>
but it only renders a blank page and there are quite a few things in
_city_taxes_print.erb that should be rendering.
development...