Debt lines have 3 ledgers:
Tracks the principal associated with a debt line. Draws will increase a debt line balance, while payments will decrease it.
The next recipe is an example of how to get a debt line ledger:
Tracks the cash collateral (a.k.a. loss reserve) associated with a debt line. Certain draws require cash collateral, which is added to this ledger.
Tracks interest and fees associated with a debt line. The balance for this ledger increases when interest and fees are charged. The balance represents the due interest amount that is owed on this debt line. Interest payments will reduce this balance.