Need to know how Expense Type value is being set on Expense line {fm_expense_line} record
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-22-2023 10:11 PM - edited 01-22-2023 10:13 PM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-24-2023 10:54 AM
Expense type will be set in 2 different ways.
Once time card is approved below BR (Process time card) will trigger
From there this SI (TimeCardProcessHandler) function (process)will be called. In below screenshot just remember line 13
From that SI below SI (TaskRateProcessor) function (processTaskTimeCardWithDailyRate) is called
From above again same SI function (_createExpenseLine) is called. See line number 298 where they are setting category as Labor
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.
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
Bharath Chintala