Code Monkey home page Code Monkey logo

quickledger's People

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

quickledger's Issues

Category

Usage: ql -c "Liabilities:Salad"
Produces category as entered: Liabilities:Salad

See #13

Setup Merchant Bug

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

Error when running ql with no .qlrc file.

~ [brian@box]% 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'

Amount

Usage: `ql -t "nn.nn"
Bypasses the amount prompt. Uses same input sanitising as created in #3.

Cleanup

Option for accounts() and for merchants() instead of weird query thing.

Merchant

ql -m "Store Name"
ql --merchant "Store Name"

Uses the set merchant name instead of prompting for one interactively.

Expense category.

Example: ql -e "Bills:Electricity"
Prefaces entered category with 'Expenses:'
Produces Expenses:Bills:Electricity in the ledger entry.

See #10 for just category.

Merchant Nicknames

Merchant nicknames in qlrc.

ql -n SD
Merchant: Sundance
Category: Expenses:Groceries

Split payment

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

Fix tools

dollar_tool()
bool_tool()
query_tool()

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.