Link Ticket modification with Orignal Ticket

You can use Create Account Transaction action to create Cash Refund transaction. So create an automation command button for closed tickets and configure SambaPOS to create refund transaction. New Action Query Parameter feature will be useful. When this button clicked you can ask refund amount, create refund transaction and create a ticket tag to note refund amount.