Click here to Skip to main content
15,886,518 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Dear Sir,

I made an application on vb.net named payroll for my own company, were
i create Advance form for employees who want to take advance.....below is the despcription :-

1. Emp No........
2. Emp Name .......
3. Advance Date/Month .........
4. Deduction from Month .........
5. Installment Amount ..........

I want to issue advance to employee and this advance will be deducted from his salary by the MONTH he want to refund his advance for example :-

If the employee X has taken advance in the month of January 2012 and he wants to return his advance in installments by the month of MARCH (NOT FROM THE MONTH OF JANUARY OR FEBRUARY) 2012. What I wanted to do that when the salary of the Mr. X is being generated for the month of MARCH 2012 the software should start deducting installment amount from his salary from the month of MARCH 2012 till his advance becomes 0.

Please help me on the above problem, i need codes to implement on my application.
I am waiting for positive reply.

Rgds,
Indranil
Posted
Updated 14-Jan-13 1:13am
v2
Comments
OriginalGriff 12-Jan-13 3:53am    
What have you tried?
Where are you stuck?
[no name] 12-Jan-13 4:33am    
you will have to make the logic for this or please show what have you tried so that i can help

C#
txt_advance.text=x;
txt_paid.text=y;
txt_total.text=x-y;
 
Share this answer
 
v2
In the database, Add one extra column which signals if any advance is due to be paid or not.

At the time of issuing the payment, UPDATE SIGNAL - 1.

Each time when you prepare salary report, Check whether SIGNAL=1, If yes then fetch the remaining salary and show.
 
Share this answer
 
Comments
hspl 15-Jan-13 6:10am    
Dear Sir,

I could not understand the said solution2.Can you please provide me sample application if possible......

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900