-
-
Notifications
You must be signed in to change notification settings - Fork 83
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(wechat): support matching accounts via all rules (#5)
* fix(wechat): add order & tx types fixes #3 Signed-off-by: Triple-Z <me@triplez.cn> * feat(wechat): support matching accounts via all rules * Rename minusAccount/pusAccount to methoudAccount/targetAccount for WeChat billing. Signed-off-by: Triple-Z <me@triplez.cn> * update(example): wechat example
- Loading branch information
Showing
9 changed files
with
207 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,37 @@ | ||
defaultMinusAccount: Liabilities:CreditCard:Test | ||
defaultPlusAccount: Expenses:Test | ||
defaultMinusAccount: Assets:FIXME | ||
defaultPlusAccount: Expenses:FIXME | ||
defaultCurrency: CNY | ||
title: 测试 | ||
wechat: | ||
rules: | ||
# type (additional condition) | ||
- type: 收入 # 微信红包 | ||
method: / | ||
item: / | ||
targetAccount: Income:Wechat:RedPacket | ||
- type: / # 转入零钱通 | ||
peer: / | ||
item: / | ||
targetAccount: Assets:Digital:WeChat:Cash | ||
|
||
- peer: 云膳过桥米线 | ||
method: 中国银行 | ||
plusAccount: Expenses:Food | ||
minusAccount: Assets:BOC | ||
- type: 收入 | ||
plusAccount: Assets:Wechat | ||
minusAccount: Income:Earnings | ||
targetAccount: Expenses:Food:Meal | ||
- peer: 餐厅 | ||
targetAccount: Expenses:Food:Meal | ||
|
||
- peer: 房东 | ||
type: 支出 | ||
targetAccount: Expenses:Housing:Rent | ||
|
||
- peer: 用户 | ||
type: 收入 | ||
targetAccount: Income:Service | ||
|
||
- method: / # 一般为收入,存入零钱 | ||
methodAccount: Assets:Digital:Wechat:Cash | ||
- method: 零钱 # 零钱/零钱通 | ||
methodAccount: Assets:Digital:Wechat:Cash | ||
- method: 工商银行 | ||
methodAccount: Assets:Bank:CN:ICBC:Savings | ||
- method: 中国银行 | ||
methodAccount: Assets:Bank:CN:BOC:Savings |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
option "title" "测试" | ||
option "operating_currency" "CNY" | ||
|
||
1970-01-01 open Income:Wechat:RedPacket | ||
1970-01-01 open Assets:Digital:WeChat:Cash | ||
1970-01-01 open Income:Service | ||
1970-01-01 open Assets:Bank:CN:ICBC:Savings | ||
1970-01-01 open Expenses:Food:Meal | ||
1970-01-01 open Expenses:Housing:Rent | ||
1970-01-01 open Assets:Digital:Wechat:Cash | ||
1970-01-01 open Assets:Bank:CN:BOC:Savings | ||
1970-01-01 open Expenses:FIXME | ||
1970-01-01 open Assets:FIXME | ||
|
||
2019-09-26 * "云膳过桥米线(传奇广场店)" "总共消费:28.16" | ||
Expenses:Food:Meal 28.16 CNY | ||
Assets:Bank:CN:BOC:Savings -28.16 CNY | ||
|
||
2019-09-24 * "同性好友" "/" | ||
Assets:Digital:Wechat:Cash 0.35 CNY | ||
Income:Wechat:RedPacket -0.35 CNY | ||
|
||
2021-01-17 * "某餐厅" "收款方备注:二维码收款" | ||
Expenses:Food:Meal 12.00 CNY | ||
Assets:Digital:Wechat:Cash -12.00 CNY | ||
|
||
2021-01-22 * "房东" "转账备注:微信转账" | ||
Expenses:Housing:Rent 500.00 CNY | ||
Assets:Digital:Wechat:Cash -500.00 CNY | ||
|
||
2020-11-27 * "用户A" "收款方备注:二维码收款" | ||
Assets:Digital:Wechat:Cash 23.00 CNY | ||
Income:Service -23.00 CNY | ||
|
||
2021-01-17 * "/" "/" | ||
Assets:Digital:WeChat:Cash 2000.00 CNY | ||
Assets:Bank:CN:ICBC:Savings -2000.00 CNY | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,23 @@ | ||
微信支付账单明细,,,,,,,, | ||
微信昵称:[测试],,,,,,,, | ||
起始时间:[2019-08-01 00:00:00] 终止时间:[2019-09-30 23:59:59],,,,,,,, | ||
导出类型:[全部],,,,,,,, | ||
导出时间:[2019-10-09 16:05:22],,,,,,,, | ||
,,,,,,,, | ||
共43笔记录,,,,,,,, | ||
收入:1笔 0.35元,,,,,,,, | ||
支出:1笔 28.16元,,,,,,,, | ||
中性交易:0笔 0.00元,,,,,,,, | ||
注:,,,,,,,, | ||
1. 充值/提现/理财通购买/零钱通存取/信用卡还款等交易,将计入中性交易,,,,,,,, | ||
2. 本明细仅展示当前账单中的交易,不包括已删除的记录,,,,,,,, | ||
3. 本明细仅供个人对账使用,,,,,,,, | ||
,,,,,,,, | ||
----------------------微信支付账单明细列表--------------------,,,,,,,, | ||
微信支付账单明细,,,,,,,,,, | ||
微信昵称:[测试],,,,,,,,,, | ||
起始时间:[2019-08-01 00:00:00] 终止时间:[2019-09-30 23:59:59],,,,,,,,,, | ||
导出类型:[全部],,,,,,,,,, | ||
导出时间:[2019-10-09 16:05:22],,,,,,,,,, | ||
,,,,,,,,,, | ||
共43笔记录,,,,,,,,,, | ||
收入:1笔 0.35元,,,,,,,,,, | ||
支出:1笔 28.16元,,,,,,,,,, | ||
中性交易:0笔 0.00元,,,,,,,,,, | ||
注:,,,,,,,,,, | ||
1. 充值/提现/理财通购买/零钱通存取/信用卡还款等交易,将计入中性交易,,,,,,,,,, | ||
2. 本明细仅展示当前账单中的交易,不包括已删除的记录,,,,,,,,,, | ||
3. 本明细仅供个人对账使用,,,,,,,,,, | ||
,,,,,,,,,, | ||
----------------------微信支付账单明细列表--------------------,,,,,,,,,, | ||
交易时间,交易类型,交易对方,商品,收/支,金额(元),支付方式,当前状态,交易单号,商户单号,备注 | ||
2019-09-26 12:45:27,商户消费,云膳过桥米线(传奇广场店),"总共消费:28.16",支出,¥28.16,中国银行(1234),支付成功,3985734 ,129847129 ,"/" | ||
2019-09-24 10:10:11,微信红包,同性好友,"/",收入,¥0.35,/,已存入零钱,3985734 ,129847129 ,"/" | ||
2019-09-26 12:45:27,商户消费,云膳过桥米线(传奇广场店),总共消费:28.16,支出,¥28.16,中国银行(1234),支付成功,3985734 ,129847129 ,/ | ||
2019-09-24 10:10:11,微信红包,同性好友,/,收入,¥0.35,/,已存入零钱,3985734 ,129847129 ,/ | ||
2021-01-17 18:03:35,扫二维码付款,某餐厅,收款方备注:二维码收款,支出,¥12.00,零钱通,已转账,3985734,129847129,/ | ||
2021-01-22 12:34:56,转账,房东,转账备注:微信转账,支出,¥500.00,零钱通,朋友已收钱,3985734,129847129,/ | ||
2020-11-27 19:29:00,二维码收款,用户A,收款方备注:二维码收款,收入,¥23.00,零钱,已收钱,3985734,/ ,/ | ||
2021-01-17 10:07:31,转入零钱通-来自工商银行(9876),/,/,/,¥2000.00,工商银行(9876),支付成功,3985734,129847129,/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters