https://github.com/theluqmn/receiptgen
Simple receipt generator written in Go.
https://github.com/theluqmn/receiptgen
go golang receipt
Last synced: 4 months ago
JSON representation
Simple receipt generator written in Go.
- Host: GitHub
- URL: https://github.com/theluqmn/receiptgen
- Owner: theluqmn
- Created: 2024-07-04T06:58:27.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-07-30T16:15:55.000Z (about 1 year ago)
- Last Synced: 2024-08-26T19:55:15.429Z (about 1 year ago)
- Topics: go, golang, receipt
- Language: Go
- Homepage:
- Size: 10.7 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# RECEIPTGEN
> [!WARNING]
> This is my first project made using Go.## Purpose
Returns a receipt-like output on the terminal, which includes all the items you added, alongside its price and tax. The total is calculated at the bottom.
## How it works
If you want the .exe, its on [Releases](https://github.com/luq-mn/ReceiptGen/releases).
1. Enter your name
2. Enter the tax rate (0-100)%
3. Enter the amount of items that will be in this list
4. The list will loop until the amount of items in list meets the amount you set previously.
* Enter the item name
* Enter the item price
5. Enter your payment method. Choose between:
* Cash
* Credit Card
* Debit Card
* E-Wallet
* Pay later
6. Enter your discount (enter blank to skip, 0-100%)
7. The full list will be outputted to the terminal, formatted like a receipt. Includes the total due, total price, and tax.## To-do
* [x] it works
* [x] payment method
* [x] output with more details
* [x] pay later payment method
* [x] discounts on checkout
* [x] record purchases on a SQLite3 database
* [ ] store in user data folder
* [ ] call previous purchases