Need to know how Expense Type value is being set on Expense line {fm_expense_line} record

Drishti
Tera Guru

Hi Community,

Need help in understanding how is Expense Type value is being set on Expense line {fm_expense_line} record.

I had found one BR : Updating fields from cost plan, I had applied logs there inside if and else box and both logs are getting executed.

Please help.

 

1 REPLY 1

BharathChintala
Mega Sage

@Drishti 

Expense type will be set in 2 different ways.

Once time card is approved below BR (Process time card) will trigger

BharathChintala_2-1674585613965.png

From there this SI (TimeCardProcessHandler) function (process)will be called. In below screenshot just remember line 13

BharathChintala_4-1674586005612.png

 

From that SI below SI (TaskRateProcessor) function (processTaskTimeCardWithDailyRate) is called 

BharathChintala_3-1674585924444.png

From above again same SI function (_createExpenseLine) is called. See line number 298 where they are setting category as Labor

BharathChintala_5-1674586080310.png

 

There will be 2 types of expense types Capex (capitalized expense) Opex (Operational Exppense)

In starting I  asked to remembered line 13 there system is checking is time card having valid resource plan or not like not operational resource plan or task assigned to group one.  Those are Labor category which expense type is Capex

From below BR it will be set.

 BharathChintala_0-1674585207789.png

 

For other basically Expense lines won't create so Opex will be created when you submit time to operational resource plan which has rate model.

 

Thanks,

Bharath

Thanks,

Bharath

If my inputs have helped with your question, please mark my answer as accepted solution, and give a thumb up.
Bharath Chintala