Hi there @XITinc, welcome to the QuickBooks Community.
Accounting for things like this can definitely be tricky! I recommend that you reach out to your accountant for advice regarding how you should record these transactions. Each business is unique and your accountant will be able to guide you in the right direction.
I'm also going to leave the floor open for other community members to respond. We have quite a few members with accounting experience that may be able to provide some helpful tips.
If you need any help navigating the process once you get the advice you are looking for, feel free to reach out! I'll be here to help.