To resolve Internal error when clicking an invoice holding a subtotal line item in my account page in SCA, resolve with the following steps:
1. Locate the following file in the SCA Module: \StoreItem@X.X.X\SuiteScript\StoreItem.Model.js
2. Find the following line of code:
if (!item.id || !item.type || item.type === ‘Discount’ || item.type === ‘OthCharge’ || item.type === ‘Markup’)
3. Replace with the following line:
if (!item.id || !item.type || item.type === ‘Discount’ || item.type === ‘OthCharge’ || item.type === ‘Markup’|| item.type === ‘Subtotal’)
4. Deploy changes