1
0
Files
plaintextaccounting/quickref/quickref-hledger.html
Simon Michael 5adfbb24c0 start converting the quickref to separate files
An experimental plan for easier maintenance. There will be one linear
quickref-NAME.md file per ledger-like, with similar headings and
content across all quickref files. A script will take the sections and
tabulate them nicely to give a layout like the current page. And
perhaps there'll be some javascript to show/hide each format.
2017-12-17 18:24:17 -08:00

118 lines
4.5 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Basic Page Needs
-->
<meta charset="utf-8">
<title>Plain Text Accounting, a guide to Ledger and friends</title>
<meta name="description" content="">
<meta name="author" content="">
<!-- Mobile Specific Metas
-->
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- FONT
-->
<link href="//fonts.googleapis.com/css?family=Raleway:400,300,600" rel="stylesheet" type="text/css">
<!-- CSS
-->
<link rel="stylesheet" href="css/normalize.css">
<link rel="stylesheet" href="css/skeleton.css">
<link rel="stylesheet" href="css/site.css">
<!-- Favicon
-->
<link rel="icon" type="image/png" href="images/favicon.png">
</head>
<body>
<!-- Primary Page Layout
-->
<div class="container">
<h1 id="hledger">hledger</h1>
<p><a href="http://hledger.org/journal.html" class="uri">http://hledger.org/journal.html</a></p>
<h2 id="basic-example">Basic example</h2>
<pre><code>; a comment
2016/1/1 set opening balance
assets:checking $500.00
equity:opening balances
2016/1/5 farmer&#39;s market
expenses:groceries $50.00
assets:checking</code></pre>
<h2 id="comments">Comments</h2>
<pre><code>; comment
# comment
* comment and org-mode outline node</code></pre>
<h2 id="basic-transactions">Basic transactions</h2>
<pre><code>DATE [DESCRIPTION]
ACCOUNT AMOUNT
ACCOUNT [AMOUNT]</code></pre>
<p>Non-comment lines may end with a comment. Indented comments are attached to the preceding transaction or posting.</p>
<h2 id="dates">Dates</h2>
<pre><code>YYYY-MM-DD
YYYY/MM/DD
YYYY.MM.DD
MM-DD
MM/DD
MM.DD</code></pre>
<h2 id="account-names">Account names</h2>
<pre><code>TOPACCT[:SUBACCT[:...]]
Revenues:Salary
liabilities:credit card:CITI 1234
other assets:house</code></pre>
<p>Account names begin with a letter. May contain single spaces. May contain subaccounts separated by : (colon).</p>
<h2 id="amounts">Amounts</h2>
<p>One of <code>COMMODITY QUANTITY</code>, <code>QUANTITY COMMODITY</code>, <code>QUANTITY</code>.</p>
<pre><code>10
$10.00
1,000.0001 USD
10 &quot;prepaid classes&quot;
1.000.000,01
12,34,567.89</code></pre>
<p>Decimal point is . or , (period or comma). Digit group separator is , or . (the one not used for decimal point). Any digit grouping can be used, not just thousands.</p>
<h2 id="more-transaction-features">More transaction features</h2>
<pre><code>DATE [FLAG] [(CODE)] DESCRIPTION
[FLAG] ACCOUNT AMOUNT [PRICE] [=BAL]
...
[FLAG] ACCOUNT AMOUNT [PRICE] [=BAL]</code></pre>
<h2 id="prices">Prices</h2>
<p>One of <code>@ FIXEDUNITPRICE</code> <code>@@ FIXEDTOTALPRICE</code> and/or <code>{=FIXEDLOTUNITPRICE}</code>.</p>
<p>These do not record market prices. The lot price syntax is ignored.</p>
<h2 id="balance-assertions">Balance assertions</h2>
<p><code>= AMOUNT</code> after posting amount &amp; price.</p>
<p>Asserts the balance in this commodity, in this account, excluding subaccounts, on this day. Same day events are processed in parse order.</p>
<h2 id="balance-assignments">Balance assignments</h2>
<h2 id="directives">Directives</h2>
<pre><code>KEYWORD ARGS...
account (alias for apply)
alias
apply
comment
D
end
include</code></pre>
<h2 id="account-open">account, open</h2>
<h2 id="close">close</h2>
<h2 id="commodity">commodity</h2>
<h2 id="market-price">market price</h2>
<pre><code>P DATE [TIME] COMMODITY UNITPRICE
P 2015/8/9 GBP $1.55</code></pre>
<p>Used by -V. A time is ignored.</p>
</div>
<!-- End Document
-->
</body>
</html>