We require a SuiteScript that will allow us to delete all unreconciled "Cash Sales" and "Cash Refund" transactions for a nominated date range. The script must be re-usable as the client is performing UAT at the moment and we may need to re-run multiple times for different date ranges.
The only input required would be to enter in the Start Date and the End Date, then a button to submit. The script would then perform the deletion.
This is required to be deployed to a Sandbox environment and deployed to the live system at a later date.