r/opensource • • 1d ago

Discussion Receipt Scan/ Log solution for Self Hosted Server

So I recently opened a corporation and need a simple way to organize my receipts and send those off to my accountant at the end of the year for taxes. I don't got time to be manually logging my receipts for every purchase. I want to be able to snap a photo/ scan the receipt, and have the rest done in background with maybe my verification. I am looking for a simple self hosted and free tool to do this. Something like Dext but free.

The work flow I was thinking:

1.) Scan receipt with mobile app

2.) Then automatically do OCR and throw scan picture into a receipt folder by month of purchase

3.) It somehow extracts the date, vendor, category, cost, tax and throws it into an excel sheet line.

4.) At the end of the year, I can quickly extract all the receipt photos in monthly folders as well as the excel sheet of expense tracking to send to my accountant.

Is there a simple tool that will be able to do that and save me time? How can I do this?

Thank you in advance!

5 Upvotes

12 comments sorted by

3

u/cmm324 1d ago

I started building something like that as OSS but haven't quite fully tested what i have so far. If you want to try it out, happy to address issues.

Here is the link. https://github.com/openb00ks/openb00ks

2

u/RealSlavGod 1d ago

Hey thanks for the reply! So this is a program that lives in a container on the server. I need some tool to upload a picture of the receipt to that container and then your tool will extract data from it? Does it put all the expenses in a CSV with tax data and all?

2

u/cmm324 1d ago

It's designed to be the tool to upload it, it's a web app, you will be able to access it from your phone like any website once you deploy it to a server

1

u/RealSlavGod 1d ago

That sounds great! So I open the web app, scan receipt, app will upload the original to my server and extract text, will it be able to upload the data that was scanned into a excel file line?

1

u/cmm324 1d ago edited 1d ago

It stores it in a database which stores then in accounts using double entry journal entries. There are export options, I can always add more options

1

u/RealSlavGod 1d ago

Allowing user to store database and originals in their self hosted server would be big

1

u/user01401 1d ago

I'm using https://www.taggun.io/ just for the OCR and self host the rest

1

u/RealSlavGod 1d ago

So you need a way to upload/scan pictures of receipts into your server, and then this tool extracts the OCR data? How do you do the first part and how do you get this data to get thrown into a CSV automatically?

1

u/JohnsTech_dev 1d ago

paperless-ngx covers the scan and folder part pretty well. the phone apps (swift paperless on ios, paperless mobile on android) upload straight into it, ocr runs on its own. it wont fill a spreadsheet line for you though. receipt wrangler is the one i'd look at for that, it reads the vendor and total and exports csv. the ocr gets shaky on faded thermal paper from what i've read, so you'd still glance at each one. also ask your accountant what they actually want first, some are fine with photos plus one total per category.

1

u/Tasty-Celery 11h ago

TaxHacker with the LLM you want, self-hosted

https://taxhacker.app