Remove New Expense Line button on financials section in project workspace or strategic planning

sidwahid
Tera Contributor

We don’t want the “New Expense Line” button available in the Financials section of Project Workspace or Strategic Planning records without directly modifying the OOTB ACLs.

 

 

sidwahid_1-1761553578691.png

 

3 REPLIES 3

imranaalam
Tera Contributor

@sidwahid I am also looking for the same answer. Did you manage to Remove the button?

LTU_Bee
Tera Expert

I'm also looking to remove this button specifically but have had no luck, just checking if anyone has managed this?

Found the solution:
We had to edit the script include named "FinancialsCoreUIUtil".
Code lines 95-99.

Change from:

=========
excludeExpenseLineForTables: function(table) {
const investmentFundingUtilHelper = new InvestmentFundingUtil();
return

investmentFundingUtilHelper.isTablePresentInHierarchy(table,

"sn_align_core_demand") ||

investmentFundingUtilHelper.isTablePresentInHierarchy(table,

"dmn_demand");
},
=============

To:

===================
excludeExpenseLineForTables: function(table) {
return true;
// const investmentFundingUtilHelper = new InvestmentFundingUtil();
// return

investmentFundingUtilHelper.isTablePresentInHierarchy(table,

"sn_align_core_demand") ||

investmentFundingUtilHelper.isTablePresentInHierarchy(table,

"dmn_demand");
},
==================

This will hide the dropdown button "New Expense line" and should not affect any functionality.
Hope this helps!