I work in a construction company and I tried to do a customization on the time card release. Here is the situation, time cards are released weekly and at the end of the month we use it for payroll. Now sometimes last day of the month is actually in the middle of the week (a Wednesday or Thursday). How do I customize the system so that in this kind of cases, I release the time card of that week that day, so that another start for the next month?
Solved
Release time card when end of the month is in the middle of the week
Best answer by darylbowman
I’m not sure if this is a thought question or if you’re stuck at some point of the process, but putting this in a graph extension for TimeCardMaint should allow you to extend the Release process with your own code:
public delegate IEnumerable ReleaseDelegate(PXAdapter adapter);
[PXOverride]
public virtual IEnumerable Release(PXAdapter adapter, ReleaseDelegate baseMethod)
{
// Execute original method
baseMethod(adapter);
// Add code to create new time card at the appropriate time
}
Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.