Due to/from affiliates

How are intercompany loans (without interest) or due to/from accounts treated on tax returns? Example:

 

Two partners own a company. One partner invests a large lump some into a business and gets repaid over time at random amounts. The capital accounts are 50/50 so the they would like to treat the lump sum as loan to not affect shareholder percentages.