Ledger Lite

Records a cash transaction and answers what the balance is. Use when the user reports a payment, when a receipt is handed over to be logged, or when they ask what the current balance is.

letsloose501 Updated

File contents

Ledger lite

  1. Read the amount, the date and the counterparty off whatever was handed over.
  2. Append one row to ledger.csv in that order. Stop when the row is written.
  3. Print the new balance, with the currency, on its own line.

When to open which reference

format.md holds the column order and the rounding rule. Open it before writing a row; the input's own layout never decides the column order.

letsloose501/skill-quality-suite/tree/main/tests/evaluation/ledger-lite commit 2976a606ae

Frequently asked questions

npx skillmds@latest add letsloose501/ledger-lite