From 1952100bbb24384dd7906d02638621c2329d407f Mon Sep 17 00:00:00 2001 From: Ramsay Date: Thu, 1 Jun 2023 20:49:15 -0700 Subject: [PATCH 1/2] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=94=99=E8=AF=AF?= =?UTF-8?q?=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkg/provider/icbc/config.go | 2 +- pkg/provider/icbc/icbc.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/provider/icbc/config.go b/pkg/provider/icbc/config.go index 85decea..63d874b 100644 --- a/pkg/provider/icbc/config.go +++ b/pkg/provider/icbc/config.go @@ -1,6 +1,6 @@ package icbc -// Config is the configuration for Alipay. +// Config is the configuration for ICBC. type Config struct { Rules []Rule `mapstructure:"rules,omitempty"` } diff --git a/pkg/provider/icbc/icbc.go b/pkg/provider/icbc/icbc.go index 31d537f..f13bf37 100644 --- a/pkg/provider/icbc/icbc.go +++ b/pkg/provider/icbc/icbc.go @@ -31,7 +31,7 @@ func New() *Icbc { } } -// Translate translates the alipay bill records to IR. +// Translate translates the icbc bill records to IR. func (icbc *Icbc) Translate(filename string) (*ir.IR, error) { log.SetPrefix("[Provider-ICBC] ") From bc25925790845bac9385bfd631083e580335d52a Mon Sep 17 00:00:00 2001 From: Ramsay Date: Sun, 11 Jun 2023 14:11:15 -0700 Subject: [PATCH 2/2] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20`targetAccount`=20?= =?UTF-8?q?=E4=B8=8E=20`defaultCashAccount`=20=E7=9A=84=E5=A2=9E=E5=87=8F?= =?UTF-8?q?=E8=B4=A6=E6=88=B7=E5=85=B3=E7=B3=BB=E6=98=A0=E5=B0=84=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/README.md b/README.md index 6b6938a..48bb367 100644 --- a/README.md +++ b/README.md @@ -361,13 +361,14 @@ alipay: `targetAccount` 与 `methodAccount` 的增减账户关系如下表: -| 收/支 | 交易分类 | methodAccount | targetAccount | + +| 收/支 | 交易分类 | minusAccount | plusAccount | | ----- | -------- | ------------- | ------------- | -| 收入 | * | plusAccount | minusAccount | -| 收入 | 退款 | plusAccount | minusAccount | -| 支出 | * | minusAccount | plusAccount | -| 其他 | * | minusAccount | plusAccount | -| 其他 | 退款 | plusAccount | minusAccount | +| 收入 | * | targetAccount | methodAccount | +| 收入 | 退款 | targetAccount | methodAccount | +| 支出 | * | methodAccount | targetAccount | +| 其他 | * | methodAccount | targetAccount | +| 其他 | 退款 | targetAccount | methodAccount | > 当交易类型为「其他」时,需要自行手动定义借贷账户。此时本软件会认为 `methodAccount` 是贷账户,`targetAccount` 是借账户。 @@ -489,10 +490,10 @@ wechat: `targetAccount` 与 `methodAccount` 的增减账户关系如下表: -| 收/支 | methodAccount | targetAccount | +| 收/支 | minusAccount | plusAccount | | ----- | ------------- | ------------- | -| 收入 | plusAccount | minusAccount | -| 支出 | minusAccount | plusAccount | +| 收入 | targetAccount | methodAccount | +| 支出 | methodAccount | targetAccount | ### Huobi Global (Crypto) @@ -661,11 +662,10 @@ icbc: `targetAccount` 与 `defaultCashAccount` 的增减账户关系如下表: -| 收/支 | defaultCashAccount | targetAccount | -| ----- | ------------------ | ------------- | -| 收入 | plusAccount | minusAccount | -| 支出 | minusAccount | plusAccount | - +| 收/支 | minusAccount | plusAccount | +| ----- | ------------------ | ------------------ | +| 收入 | targetAccount | defaultCashAccount | +| 支出 | defaultCashAccount | targetAccount | ## Special Thanks