项目作者: hulufei

项目描述 :
A collection of beancount importers
高级语言: Rust
项目地址: git://github.com/hulufei/bean-importer.git
创建时间: 2020-04-09T01:46:09Z
项目社区:https://github.com/hulufei/bean-importer

开源协议:

下载


bean-importer

Currently support:

Usage

  1. USAGE:
  2. bean-importer [FLAGS] [OPTIONS] <input> [output]
  3. FLAGS:
  4. -d, --debug Activate debug mode
  5. -e, --edit Activate edit mode
  6. -h, --help Prints help information
  7. -V, --version Prints version information
  8. OPTIONS:
  9. -s, --source <source> Set source(wechat or alipay) [default: wechat]
  10. ARGS:
  11. <input> Input file
  12. <output> Output file, stdout if not present

rules.toml

The importer will generate a rules.toml to let you specify transform rules for your transactions.

The rules like:

  1. [fund]
  2. "零钱" = "Assets:Wechat"
  3. "Some Bank Name" = "Assets:Bank:SomeBank"
  4. [payee]
  5. "Some Restaurant" = 'Expenses:Account'
  6. "Another name for some payee" = { alias = 'unified', account = 'Expenses:Unified' }

The fund section specify fund source accounts, generally it will be Assets accounts. The payee section
specify payee accounts, generally it will be Expenses accounts.

The payee section support additional alias rule to change the payee value, it’s good for unifing some payees
have multiple accounts produce different transactions.(eg. have both wechat and alipay accounts)