Hi,

I am working on an leave management system and I am having a some
difficulties trying to figure out how to accomplished this scenario.

for example i have a table of.

when a user apply for a leave i want to get the previous
total_leave_balance of the applicant and minus his/her current num_days and
assign the result to be the total_leave_balance. Please advise what would
be the best way to approach this.


*username* *first_name* *second_name* *num_days* *leave_entitlement*
*beginning_bal* *Total_leave_balance*
jtom james tom 3 12 23 20
tjohn tom john 2 2 5 7
atom anna tom 3 21 2

jtom james tom 3 4 2

atom anna tom 3 3 5



cheers,

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAPCf-y562uvxRwTf0iFnT6Lcos8_nd3FD5u%3D7MVVp2yN4qAcDA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to