To add previous year credits to customer or vendor in Swipe app, please follow the steps mentioned in the below articles:
Customer: How to add an opening balance for a vendor?
Vendor: How to add an opening balance for a vendor?