How to categorize proceeds from a refinance

@devin I am looking for some further detail around how to the cash out refi should be recorded.

Using an example where there was an existing loan of $100,000 which was then refinanced to $150,000 with $5,000 in fees. So the existing $100k was paid off and owner received $45k.

  1. What is the amount that goes under “Money In” to “Mortgages & Loans > Principal Payments.”? Just the $100k needed to pay off the existing? Or something else?

  2. How should the cash to the owner be recorded?

  3. Should the $5 in fees be recorded somewhere?

  4. Any other transactions that should recorded for this aside from adding the new loan for $150k.

Thanks