- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-15-2021 01:06 AM
I see that there is a BR named "Process time card" on time card table. Now if I turn it active false, expense lines are not generated but time card also remains in approved state and not go to processed state.
My concerns are:
1. Is it okay to leave the state as approved and not processed. Will it cause any issue when I turn on that BR "Process time card" again in future?
2. Is there another way that time card gets to processed state but no expense line is generated?
Please suggest.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-15-2021 11:50 PM
Ok so if you don't want to create the expense line for any task in time card, you can comment the below highlighted line in SI 'TimeCardProcessHandler'.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-15-2021 11:38 AM
Hi Aditya,
If you wish to suppress the expense line generation logic, go to Script include 'TaskRateProcessor' , function 'processTaskTimeCardWithDailyRate' and change the condition to call '_createExpenseLine' function to allow expense line to be created for a specific task type only.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-15-2021 08:08 PM
Hi Girish,
I don't want Expense Lines at all. Not finding the code where the task types defines.
There is another script include "ExpenseLine".
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-15-2021 11:50 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2021 06:06 AM
Hi Girish,
At first I had deactivated the BR "Process time card". It stopped creating Expense lines but it also stopped time cards going to processed state and time cards remain in approved only. Now, due to this I was not getting the actuals in the resource plan as the time cards were in approved state.
Now, as you suggested, I commented that one line of code. Now my time card is getting processed and I am getting actuals and expense lines are not getting generated. So it is all working as expected.
My question here is that "In general there are BR which triggers the record creation in a related table. No such thing here? As I was more comfortable deactivating one BR instead of modifying a code.
Is it okay to do so? or Hiding expense lines can be a better suggestion as Namita mentioned above.
Please reply.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2021 06:51 AM
Hi Aditya,
Not touching OOTB SI is always recommended. So, if hiding the relates list tab solves your purpose, you should give it a preference.
But even if you change the SI, you can handle it manually during upgrades. I don't see any challenge there.