BaoXuebin / beancount-gs

基于 beancount 提供个人记账财务管理的 RESTful API 服务(包含前端页面)
https://www.yuque.com/chuyi-ble7p/beancount-gs
MIT License
317 stars 42 forks source link

跨币种时的记账在fava上的显示 #66

Closed chenguixu2233 closed 8 months ago

chenguixu2233 commented 10 months ago
2024-01-30 * "三顿半" "咖啡"
 Assets:Fixed:三顿半咖啡 -1.00 SATURN_BIRD
 Expenses:Life:Food:Coffee:咖啡 5.61 CNY
 Equity:OpeningBalances

如果不加{} @ 5.61 CNY,存在币种转换的显示异常 1706608516596

BaoXuebin commented 10 months ago

感谢指出,目前的实现有问题,只能通过添加 Equity:OpeningBalances 来强制平衡账目。

下个版本考虑改成下面的格式:

2024-01-30 * "三顿半" "咖啡"
 Assets:Fixed:三顿半咖啡 -1.00 SATURN_BIRD {5.61 CNY}
 Expenses:Life:Food:Coffee:咖啡 5.61 CNY
chenguixu2233 commented 9 months ago

感谢,感觉Equity:OpeningBalances对单笔记账平衡有害,去掉挺好