I'd look into a rake task that could be run via cron job.  Just make sure 
the rake task can handle things properly if for some reason the cron job 
doesn't run for some reason.  IE I'd set up the cron job to run once a day 
and have it run the rake task and log the results. If the cron job doesn't 
run for some reason you need the rake task to be able to catch up and get 
things in balance again.  You could also setup a 2nd cron job to monitor 
the first one by looking at the log file.  The 2nd job would e-mail you if 
anything went wrong with the first one. ie errors in the log or even 
nothing in the log as in it didn't run at all.

Bob

On Wednesday, May 30, 2012 7:57:26 AM UTC-4, Edson wrote:
>
> Hi folks,
>
> What's the best approach i must have to design a system where i have an 
> bank account and loans. The loans must be charged by parcels. For 
> example: if i give some credit to a person (1000 USD) then i want to 
> charge him 10 parcels, 1 per month in 10 month. So i need i way to 
> Decrease the parcels as they are being paid.
>
> Could someone give me a tip on this approach ?
>
> Thank You all,
>
> Edson
>  

-- 
You received this message because you are subscribed to the Google Groups "Hobo 
Users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/hobousers/-/f79Zd5DKqtAJ.
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/hobousers?hl=en.

Reply via email to