Partial Credit Invoice

I am planning of using Invoice Plane where my use case would be as follows:

We are into renting conference rooms. We charge a deposit + rent (for ex. $200 deposit + $100 for the rent). After the conference room booking expires, we refund the $200.

I see the feature to credit an invoice incase of refunds. Considering the above mentioned use case, if I was to create an invoice that shows

Deposit $200

Rent $100

Total $300

Now Is it possible to credit the invoice partially when I refund the Deposit amount of $200

Because the Credit invoice that I see reverses the complete invoice.

Would love to hear suggestions if there is way of achieving this.

Thanks for creating this great software.

<?php echo $code_example; ?>