You just need a variable in your for loop no?

sum = 0

for row in records:
   sum += accounts.amt
   print amt, sum

-Thadeus





On Mon, Dec 7, 2009 at 7:22 PM, villas <[email protected]> wrote:
> Yes, it was just a thought.
> Now we have a decimal field I'm trying out some accounting ideas.
> Thanks.
>
> --
>
> You received this message because you are subscribed to the Google Groups 
> "web2py-users" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to 
> [email protected].
> For more options, visit this group at 
> http://groups.google.com/group/web2py?hl=en.
>
>
>

--

You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en.


Reply via email to