I need a Suitelet in NetSuite to query the progression of transactions from inception (for sales: opportunity - estimate - sales order - sales order approval - item order fulfillment - sales invoice - customer payment - return authorization generation (if applicable) - returned item receipt (if applicable) - credit memo issuance - credit memo application to new sales invoice); for purchases: purchase order - purchase order approval - purchase order receipt - supplier payment - supplier credit (if applicable).
The query process should begin with selecting the process (whether it's Sales or Purchases), it should have date, location, and transaction type filters to visualize state changes, approvals, and related record generation, all including the employee who generates the transaction record, the employee who approves the transaction, and their respective date and time