When a time card is processed, expense lines get generated automatically. I want the time card part working as it is but not to create expense lines.

Aditya24
Giga Expert

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.

1 ACCEPTED SOLUTION

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'.

find_real_file.png

View solution in original post

13 REPLIES 13

If I leave the generation of expense line and hide it from users then in that case, should I stop that scheduled job which changes the state of the expense lines from Pending to Processed?

As if the expense lines gets processed as well, it will be showing up at some place I believe?

Or it doesn't show up at all in project or demands or anywhere else?

I believe, the expenses will show up (if it gets processed) on project/resource pla/cost plan but I am not sure. If you can share some doc or any article.

I went through this https://community.servicenow.com/community?id=community_question&sys_id=cb84a35cdb25c85c6064eeb5ca96... but not getting the second part of the flow.

Here is the flow diagram for expense line processing.

Please note that Expense lines are not limited to ITBM. If you are disabling the processing job, it will impact expense lines processing for other modules too.

find_real_file.png

Thanks Girish. When you say "Please note that Expense lines are not limited to ITBM. If you are disabling the processing job, it will impact expense lines processing for other modules too.".

 

So as I have commented that one line of code it will only stop the expense lines from time card and will not impact anything else. Please confirm.

find_real_file.png

Hi Girish20,

 

Hoping you can help. I'm trying to process an expense line which should be created from timecard without a task associated to it. 

 

When timecard is approved, the labor rate card associated to the user should be used to generate the expense line.