Categorize ledger

This commit is contained in:
Rico Sta. Cruz 2015-12-01 13:41:43 +08:00
parent 3ff7c0e692
commit 7501bf9ed1
7 changed files with 9 additions and 0 deletions

View File

@ -47,6 +47,7 @@ category_names:
- HTML - HTML
- JavaScript - JavaScript
- JavaScript libraries - JavaScript libraries
- Ledger
- Markup - Markup
- Node.js - Node.js
- Rails - Rails

View File

@ -1,5 +1,6 @@
--- ---
title: Ledger CSV format title: Ledger CSV format
category: Ledger
--- ---
$ ledger csv $ ledger csv

View File

@ -1,5 +1,6 @@
--- ---
title: Ledger examples title: Ledger examples
category: Ledger
--- ---
Inspecting transactions: Inspecting transactions:

View File

@ -1,5 +1,6 @@
--- ---
title: Ledger periods title: Ledger periods
category: Ledger
--- ---
[INTERVAL] [BEGIN] [END] [INTERVAL] [BEGIN] [END]

View File

@ -1,5 +1,6 @@
--- ---
title: Ledger queries title: Ledger queries
category: Ledger
--- ---
- @`payee` - @`payee`

View File

@ -1,5 +1,6 @@
--- ---
title: Ledger CLI title: Ledger CLI
category: Ledger
--- ---
$ ledger bal $ ledger bal

View File

@ -58,4 +58,7 @@ Order
scope :recent, -> { order created_at: :desc } scope :recent, -> { order created_at: :desc }
Group by month
.group("to_char(created_at, 'YYYY-MM')")
.group("to_char(created_at, 'YYYY-MM')").count