robotmachine / quickledger Goto Github PK
View Code? Open in Web Editor NEWQuick Ledger entry
License: GNU General Public License v3.0
Quick Ledger entry
License: GNU General Public License v3.0
ql -m "Store Name"
ql --merchant "Store Name"
Uses the set merchant name instead of prompting for one interactively.
dollar_tool()
bool_tool()
query_tool()
Usage: `ql -t "nn.nn"
Bypasses the amount prompt. Uses same input sanitising as created in #3.
Example: ql -e "Bills:Electricity"
Prefaces entered category with 'Expenses:'
Produces Expenses:Bills:Electricity in the ledger entry.
See #10 for just category.
Option for accounts() and for merchants() instead of weird query thing.
Usage: ql -s
Default = NA
Example = ql -s
Amount: $10
Category for split 1: Expenses:Food:Cheese
Amount: $2
Category for split 2: Expenses:Tips
Amount $0 ; Amount of zero stops prompt for splitting.
Prints as:
2014-12-04 * Cheese Shoppe
Expenses:Food:Cheese $10
Expenses:Tips $2
Accounts:Bank:Chequing -$12
if amount is not None:
The -t is the total and the split amount entered interactively go to the default or specified category if it exists. If a 0 is entered then the remainder is put in to a second category.
Example: ql -m SD -t 50 -s
print(Split #1: $) [user enters 35]
print(Split #2: $) [user enters 0]
print(Category for split #2: ) [User enters Expenses:Supplements]
Prints as:
2014-12-04 * Sundance
Expenses:Groceries $35
Expenses:Supplements $15
Assets:Bank:Chequing -$50
Merchant nicknames in qlrc.
ql -n SD
Merchant: Sundance
Category: Expenses:Groceries
If N is entered when prompted to setup a default category:
Would you like to enter a default category for this merchant? [y/N] n
Traceback (most recent call last):
File "/home/brian/.bin/ql", line 364, in <module>
main()
File "/home/brian/.bin/ql", line 118, in main
merchants()
File "/home/brian/.bin/ql", line 265, in merchants
if merchcat:
UnboundLocalError: local variable 'merchcat' referenced before assignment
ql --not-cleared
|| ql -x
2014-11-15 ! Sundance
Expenses:Groceries $25.31
Assets:Brian:Money
--set-acct
--set-merch
--set-cat
Usage: ql -a NICK
Default: Prompt for account
NICK: Nickname of account from qlrc
Only allow 00[...]00.00 as an entry.
~ [[email protected]]% ql
Looks like your default ledger file is
/home/brian/Sync/Ledger/Ledger.dat
Use this file for ql? [y/n] y
Traceback (most recent call last):
File "/home/brian/.bin/ql", line 161, in
main()
File "/home/brian/.bin/ql", line 40, in main
read_config(ledger_file=args.ledger_file, account=args.account, nick=args.nickname)
File "/home/brian/.bin/ql", line 77, in read_config
set_config(account)
File "/home/brian/.bin/ql", line 116, in set_config
read_config(led_file, account)
TypeError: read_config() missing 1 required positional argument: 'nick'
Usage: ql -c "Liabilities:Salad"
Produces category as entered: Liabilities:Salad
See #13
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.