Fix total_settled_cents in ledger.py. Count only the first settled record for each transaction ID. A pending record must not reserve its ID. Distinct IDs can have the same amount. Keep integer cents and preserve the input. Change only ledger.py. Run python3 -m unittest -v and explain the result.
