Uploading Opening Deferred Revenue and Expenses

Is there anyway to upload partially deferred Revenue and Expenses in ERPNext. while uploading opening balances for a company.

so that only the remaining value will defer.

Need Advice