Git Product home page Git Product logo

beancount-gs's Introduction

Hi there 👋

My Skills My Skills

初意's github stats 初意's github stats

你可以通过邮件 [email protected] 和以下社区找到我:

先生不知何许人也,亦不详其姓字,宅边有五柳树,因以为号焉安一隅以避风雨,故无以为号。闲静少言,不慕荣利。好读书,不求甚解;每有会意,便欣然忘食。性嗜快乐水,家贫不能常得。亲旧知其如此,或置酒而招之每逢必问有女友乎;造饮辄尽,期在必醉。既醉而退,曾不吝情去留念体态重,克己少饮。环堵萧然,不蔽风日;短褐穿结,箪瓢屡空,晏如也。常著文章自娱,颇示己志。忘怀得失,以此自终。 —— 「五柳初意先生传」

如果提供的内容对你有帮助,欢迎赞助支持,非常感谢。赞助链接

龙年快乐! Happy Loong Year!

beancount-gs's People

Contributors

baoxuebin avatar renlangman avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

beancount-gs's Issues

不用的示例账簿可以添加一个删除按钮吗? 新建账簿时请添加判定是否为空密码账簿

我使用docker方式部署dockhub上的V1.1.3版本到腾讯云服务器,

我是单服务器ip地址 跑多个网站/服务,
为什么只能使用服务器ip地址+端口号10000访问此界面,不能使用域名beancount.XXXX.com访问docker容器中的这个网页?

另外我新建了多个账套,如果某个账套不需要显示在首页可以增加一个删除此账簿的按钮吗

为什么我初始化账簿时候,账簿空白密码也可以初始化成功,这是不安全的 希望能拒绝空密码初始化账簿

添加删除账簿功能 删除掉这个空密码的账簿

通过网页访问安全问题

通过网页访问时,如果不点退出,下次不输密码依然可以访问账户,不会提示输入密码。希望能够一段时间以后再次访问时提示输入密码,账户会更安全。

[FR]:支持记账的API

文档目前有下列API:
● 进入/创建账本:POST/api/ledger
● 月份列表:GET/api/stats/months
● 标签列表:GET/api/tags

如果有记账的API,可以集成到第三方应用中。我想开发一个obsidian的插件,以日记的形式记账(因为我每天不仅需要通过日记记账,还有习惯打卡,日程规划,任务归档之类的),然后通过访问API自动同步到云端beancount中。

或者您有什么其它的建议吗?谢谢你写的beancount-gs,对我的帮助很大!

能否支持记账时保留一个空金额账户

记账时支持保留一个空金额账户,可以beancount自动计算,虽然现在有提示,但是还得自己手动输入一次 :D

2022-09-18 * "店家" "购买xx"
 Liabilities:Life:Huabei:花呗
 Expenses:Life:Shopping:购物 10.0 CNY 

🚀 关于镜像太大,做了一点优化

image

#docker file

ARG BEANCOUNT_VERSION=2.3.5
ARG GOLANG_VERSION=1.17.3

FROM golang:${GOLANG_VERSION} AS go_build_env

ENV GO111MODULE=on \
    GOPROXY=https://goproxy.cn,direct \
    GIN_MODE=release \
    CGO_ENABLED=0 \
    PORT=80

WORKDIR /tmp/build
RUN git clone https://github.com/BaoXuebin/beancount-gs.git

WORKDIR /tmp/build/beancount-gs
#COPY /tmp/build/beancount-gs/public/icons /tmp/build/beancount-gs/public/default_icons
RUN mkdir -p public/default_icons && cp -rn public/icons/* public/default_icons && ls -l public

RUN go build .

FROM python:latest as build_env

ENV PATH "/app/bin:$PATH"
RUN python3 -mvenv /app

WORKDIR /tmp/build
RUN git clone https://github.com/beancount/beancount

WORKDIR /tmp/build/beancount
ARG BEANCOUNT_VERSION
RUN git checkout ${BEANCOUNT_VERSION}

RUN CFLAGS=-s pip3 install -U /tmp/build/beancount

RUN pip3 uninstall -y pip

RUN find /app -name __pycache__ -exec rm -rf -v {} +

FROM python:3.10-alpine

COPY --from=build_env /app /app

WORKDIR /app
COPY --from=go_build_env /tmp/build/beancount-gs /app
RUN cp -rn /app/public/default_icons/* /app/public/icons

ENV PATH "/app/bin:$PATH"

EXPOSE 80

CMD ["/app/beancount-gs", "-p", "80"]

共同资产如何记录到自己账户中

请问我和对象共同管理一张借记卡,每个月各自往里面存500,用于共同生活开支。
比如用这个共同账户花费购买20元的外卖。请问这种该如何记录到我的账户资产里呢?

记账时选择账户,有的有汇率,有的无

记账时选择账户,有的有汇率,有的无, 是账户有余额就会触发吗?
1970-01-01 open Assets:Fixed:House:房产 CNY --无余额、不触发
1970-01-01 open Assets:Flow:Bank:CMB:招商银行 CNY --有余额、触发
1970-01-01 open Assets:Flow:EBank:AliPay:支付宝 CNY --有余额、触发
1970-01-01 open Assets:Flow:EBank:WxPay:微信支付 CNY --有余额、触发
1970-01-01 open Assets:Flow:Cash:现金 CNY --有余额、触发

而且若是不填写或者填写1,生成出的beancount解析有问题,不会出现在费用上

2022-09-25 * "支出" "测试"
Assets:Flow:Bank:CMB:招商银行 -1.00 258495.89 {} @ 1 CNY ; 填1
Expenses:Life:Food:Meal:午餐 1.00 CNY

2022-09-25 * "支出" "test"
Assets:Flow:Bank:CMB:招商银行 -1.00 258495.89 {} @ 0 CNY ; 不填
Expenses:Life:Food:Meal:午餐 1.00 CNY

核算账号,显示请求失败

我使用了docker和本地安装,进入软件后,核算账号,但都显示“请求失败”。
image

对应的权益账号存在
image

并且交易也可以正常记录
image

导入支付宝账单出现错误

最近导入支付宝账单(解压后的*.csv)文件,出现错误

runtime error: index out of range [15] with length 12
/usr/local/go/src/runtime/panic.go:90 (0x4324d4)
/builder/service/import.go:34 (0x8cb315)
/go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:165 (0x8da7f6)
/builder/server.go:37 (0x8da72a)
/go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:165 (0x8a6be1)
/go/pkg/mod/github.com/gin-gonic/[email protected]/recovery.go:99 (0x8a6bcc)
/go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:165 (0x8a5e46)
/go/pkg/mod/github.com/gin-gonic/[email protected]/logger.go:241 (0x8a5e29)
/go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:165 (0x8a537d)
/go/pkg/mod/github.com/gin-gonic/[email protected]/gin.go:489 (0x8a5005)
/go/pkg/mod/github.com/gin-gonic/[email protected]/gin.go:445 (0x8a4b64)
/usr/local/go/src/net/http/server.go:2878 (0x6931ba)
/usr/local/go/src/net/http/server.go:1929 (0x68e867)
/usr/local/go/src/runtime/asm_amd64.s:1581 (0x465100)

记账页面汇率/净值的转换错误

用docker部署成功后,在进行账户初始化后,单笔记账(部分资产账户)会出现汇率转换的情况,入账后的记录有误也无法显示。

  • 账户情况
    2000-01-01 open Assets:Cash:人民币 CNY
  • 账户初始化
    2023-03-01 pad Assets:Cash:人民币 Equity:Opening-Balances
    2023-03-31 balance Assets:Cash:人民币 2501 CNY
  • 记账页面

截屏2023-05-06 10 21 58

- 记账后的账本文件

prices.bean
include "./commodities.bean"

2023-03-01 price 2501 0 CNY

小数点后面精度错误

程序是在docker上运行,记账的时候输入金额是15.98。
记录完成后刷新网页右上角有错误提示:Transaction does not balance: (-0.01 CNY)
点击查看后金额变成了15.99。
这个经常出现,每次出现后我都必须手动修改原文件才行

2022-12.bean:144: Transaction does not balance: (-0.02 CNY)

2022-12-12 * "xxxxxxx" "xxxxxxxxxx "
Expenses:Life:Shopping:购物 1598.00 CNY
Assets:Flow:EBank:AliPay:支付宝 -1598.02 CNY

2022-12.bean:148: Transaction does not balance: (-0.01 CNY)

2022-12-12 * "xxxxxxx" "xxxxxxxxx"
Expenses:Life:Shopping:购物 15.98 CNY
Assets:Flow:EBank:AliPay:支付宝 -15.99 CNY

前端頁面翻譯

想動手翻譯一下前端頁面做英文 / 繁體中文, 但 Golang 我不熟習, code walkthrough 了一會找不到前端頁面相應字串, 想請教一下方法

windows版本遇到无法保存的问题

作者你好,我遇到了在【资产账户】中核算某个账户时,点击刷新或者前进后退,都会让账户变为默认,导致我无法录入数据

刷新前:
image

刷新后:
image

beancount-gs.exe 闪退

以管理员身份打开可以跳转到浏览器,但是无法建立到 localhost:3001 服务器的连接。

1.1.9版本页面加载空白

更新1.1.9版本后出现,重新进入账本,页面变成空白,看控制台报错。

this.state.error.map is not a function

image

每次清空localStorage后可重新输入账本密码正常进入,再次刷新就一样的报错了

商户消费排行某个月份返回无效值

[求助] 请问作者大大,在 统计-商户消费排行 出现下面的情况意味着什么?

image

部署环境: 阿里云主机 docker

问题描述: 筛选条件设为 2022 年 01 月 累计 时出现报错: 请求失败,请刷新页面重试 ,其他月份、频次、单笔均无问题

想要的效果: 2022 年 1 月的商户消费账单统计正常显示

附:报错日志

runtime error: index out of range [0] with length 0
/usr/local/go/src/runtime/panic.go:90 (0x4324d4)
/builder/service/stats.go:393 (0x8d3b04)
/go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:165 (0x8da7f6)
/builder/server.go:37 (0x8da72a)
/go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:165 (0x8a6be1)
/go/pkg/mod/github.com/gin-gonic/[email protected]/recovery.go:99 (0x8a6bcc)
/go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:165 (0x8a5e46)
/go/pkg/mod/github.com/gin-gonic/[email protected]/logger.go:241 (0x8a5e29)
/go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:165 (0x8a537d)
/go/pkg/mod/github.com/gin-gonic/[email protected]/gin.go:489 (0x8a5005)
/go/pkg/mod/github.com/gin-gonic/[email protected]/gin.go:445 (0x8a4b64)
/usr/local/go/src/net/http/server.go:2878 (0x6931ba)
/usr/local/go/src/net/http/server.go:1929 (0x68e867)
/usr/local/go/src/runtime/asm_amd64.s:1581 (0x465100)

beancount-web仓库能否同步一下

使用beancount-gs有几个月了,有些需求比较个性化,想要自己实现,发现web仓库还是1.0版本,能否同步一下仓库。

有關多外幣轉換的功能

作者您好:
最近嘗試轉換到beancount-gs,但發現beancount-gs並不支援 @、@@ 貨幣轉換運算
不知道有無考慮增加相關的功能呢?

无法修改过去账目

版本:v1.1.11
问题:1.能否支持相同账目的快捷添加。2.能否添加单项账目的备注。3.能否添加房贷利息的计算模块。

1.您好,我在记账时,有过一个账户多次支出的记录,为此我每次都要进行①点击添加账目②选择账户,这两步操作。请问您能否在已选择的账户的账目旁边添加一个功能键,即”复制当前账户“操作:自动执行添加账目同时选择相同账户?
2.您好,假设我卖出了一件家具,这个交易似乎只能通过”OpeningBalances“来平账,但我想对这一条账目进行备注,请问这一步操作要怎么进行呢?
3.您好,我在记账时,发现当记录还房贷时,涉及到房贷利息,导致从银行卡中扣除的金额会与房贷的扣除不一致。能否请您在房贷这一块添加利息设置,每当进行还款操作时,会自动抵消从银行卡扣除的金额,非常感谢您!

以上是我的问题,非常感谢您能解答!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.