deb-sig / double-entry-generator

Rule-based double-entry bookkeeping importer (from Alipay/WeChat/Huobi etc. to Beancount/Ledger).
https://github.com/deb-sig/double-entry-generator
Apache License 2.0
537 stars 79 forks source link

Fix alipay example of ShouKuanMa (收款码) and normalize outputs #24

Closed oxalica closed 3 years ago

oxalica commented 3 years ago
  1. Using the example config, income from ShouKuanMa are translated to expenses, which is incorrect. This PR add another rule in config to fix it.
  2. The order of open directives change every time, since go's map is unordered. This PR sort it to make it deterministic.
  3. Normal transactions output an empty line with only a tab. This PR remove it.
Triple-Z commented 3 years ago

@oxalica Thanks for your contribution!

oxalica commented 3 years ago

Fixed. Also added an example of normal transfer income.