'9-Susbcript out of range' Error When Running Stock Item Sales Report
When running Stock item sales report, get an error '9-Subscript out of range':
Open the same report page again, there are no options available in drop-down menu for 'Group Field' or 'Best' in sort order.

IPSError.log:
frmRepStockItemSales.cmdView_Click 9-Subscript out of range
Reason:
Some of the value on this registry location are set to '-1':
Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Idealpos Solutions\Idealpos\StockItemSalesReport

Fix:
Modify all negative value to Zero followed by a Close/Open Suite.

Or you can look up for working terminal and match the values to that terminal.