Skip to content

Hide Email Icon in List View for Merciglobal Cloud ERPΒΆ

This documentation explains how to hide the Email icon from the List View in Merciglobal Cloud ERP by adding a small JavaScript function to the project_core.js file.


PurposeΒΆ

To improve the user interface by hiding unnecessary or unused icons in the list view. Specifically, this method hides the Email icon using a simple conditional function.


File LocationΒΆ

Ensure the following function is added inside the project_core.js file in your Merciglobal Cloud ERP project.


JavaScript FunctionΒΆ

/**
 * Function to control visibility of icons in list view
 * Currently hides the EMAIL icon
 * 
 * @param {string} icon - Icon identifier
 * @returns {boolean} - Whether to show the icon or not
 */
function trn_saleinv_showicon(icon = '') {
    if (icon.toUpperCase() === 'EMAIL') {
        return false; // ❌ Hides the EMAIL icon
    }
    return true; // βœ… Show all other icons
}

How It WorksΒΆ

  • πŸ” Checks if the icon type is EMAIL
  • πŸ›‘ Returns false if it is, which tells the system not to render the icon
  • βœ… Returns true for all other icons

Use CaseΒΆ

Perfect for modules where emailing from the list view is not required, or to simplify the interface for specific user roles.


πŸ‘¨β€πŸ’» AudienceΒΆ

  • πŸ§‘β€πŸ’Ό Sales Team: Cleaner UI with only relevant icons
  • πŸ§‘β€πŸ”§ Developers: Easy customization point
  • πŸ§‘β€πŸ’» Merci Internal Team: Improves UX with minimal effort

Additional NotesΒΆ

  • This function can be expanded to hide other icons as needed.
  • Useful for creating a minimalistic and role-specific interface.

πŸ”„ Next Steps: - Deploy the updated project_core.js - Test on different modules to verify icon behavior - Extend logic if role-based hiding is required


For more customizations or support, contact the Merciglobal ERP Development Team.

Happy Customizing! 🎯