Fixed invoice closing bug. Need to link payment to ledger items
Refactored Ledger to specific credit/debit functions
LedgerLine needs to have empty constructor for Query<>