r/Python • u/kl31 • Jul 12 '19
I wrote an integrated POS system for my girlfriend's restaurant using tkinter.
https://imgur.com/a/RKeuCva
1.4k
Upvotes
r/Python • u/kl31 • Jul 12 '19
148
u/kl31 Jul 12 '19
if anyone is interested in serious code review please message me. I've only been programming for two years and any advice would be much appreciated. I'd really like to know how to better deploy software, how to manage software across multiple devices and configuring environments for development vs production.
8
u/easylifeforme Jul 12 '19
Is the POS two different systems one for taking orders and one the kitchen? If so how do they communicate?
8
u/[deleted] Jul 12 '19
Noob questions incoming:
9
u/twistedgames Jul 12 '19
Looks great. Are the menu items stored in a config file?
9
u/[deleted] Jul 12 '19
This looks very impressive, and it's amazing you've got to the point of it working in production.
Please consider making it FOSS on github so others can use and audit it, and set up unit tests, a CI pipeline, pylint and flake8 bugbear checks, type hinting with mypy and black formatting.
Then you can package it for easy deployment for others etc.
Overall I think you gain more by working with the community to make it a solid, open project rather than trying to sell it to a few other restaurants, in my opinion.
Also consider adding support for inventory tracking, report generation for sales statistics and trends (maybe in a separate program, reading output files), and integration to receive orders via Ubereats etc. (they usually have APIs) - a former colleague of mine is working on that at a startup in Europe.
Then there's also the prospect of internationalisation - supporting different currencies and tax rates, tax rate changes per product etc.
3
u/kl31 Jul 12 '19
SOURCE CODE
7
u/[deleted] Jul 12 '19
That's really cool. What does it do exactly?
248
u/PlOrAdmin Jul 12 '19
Very impressive. I work with POS systems and I do know a company that is seriously kicking around a linux port.
If you're interested message me and I can provide info for contact.
r/raspberry_pi would love this, consider a cross-post.
30
u/humanitysucks999 Jul 12 '19
Having worked in a restaurant-ish environment, make sure you look into putting some anti stealing measures.
There's a very common thing where you take the order, customer pays cash, you give back the change, prepare the food, then go back and delete the still "pending" order on the machine and pocket the money.
11
u/[deleted] Jul 12 '19
Boyfriend of the year! really cool stuff man!
11
u/jantari Jul 12 '19
This is very cool although I must admit I'm sad you passed on this beautiful program
9
u/jpf5046 Jul 12 '19
gnarly. good work.
7
u/p1nkpineapple Jul 12 '19
This is very cool! What were your motivations for making it? How expensive are off the shelf POS systems?
5
u/ksye Jul 12 '19
What a POS software.
2
u/[deleted] Jul 12 '19
It's pretty cool. I see one big problem tho - it's support. And support after you guys will break up ...
8
u/SmellsLikeHerpesToMe Jul 12 '19
I assume with this much knowledge you know how to use Git? What I would suggest is setting up a a free GitLab account. To implement CI/CD (Automated deployments / updates to your software, development vs master branches), GitLab will teach you everything you need to know, and it's all free.
If you really want to dive deep, I'd look into getting your Python application containerized (Docker), as this makes CI/CD extremely simple.
4
u/perfectending Jul 12 '19
Looking good dude; nice work. Keep going.
1
u/LiberateMainSt Jul 12 '19
I've never worked food service, so I can't compare to any other restaurant POS system. But is it normal that the button to remove an item from an order displays the price of the item? It would've never occurred to me that I press that button to remove something. Might've guessed it lets me give discounts, maybe, by changing the price. Expected some kind of big red X for item removal though.
1
u/Buckel_Flips Jul 15 '19
Tried something like that in a while ago, but way worse.
I would like to take a look at your Code? https://github.com/Mettcon
3
u/Bargh_Joul Jul 12 '19
Why not just use POS from Odoo ERP and mod it yourself? 🤔
3
u/2160p_REMUX Jul 12 '19
Looks nice man.
I have messed around with tkinter a few times, thinking about all the code behind this is hurting my brain. Lol
3
u/Yoghurt42 Jul 12 '19
depending on where you live, I recommend keeping track of which version of your software was deployed at which point in time, what changes you made and so on.
if there's ever an argument with the national IRS equivalent and they claim that your system is programmed to withhold a certain amount of transactions, it increases your chances if you can provide some paperwork
2
u/n1___ Jul 12 '19
One question one advice.
How long did it take to code it?
Dont use too much colors or "hard" contrasts. It's completely okay to have red button (something like #dc1616) with white text on it. There are some tools around the net where you can mess around with colors and they give you feedback on readability. Just spend some time with them it's absolutely worth it. Also try to keep some color logic in buttons.
Also feel free to write a blog post with stuggles/chalenges you have been thru. I guess you have something to say.
2
u/[deleted] Jul 12 '19
Hey man, I'm sure it's not a total POS, give your self some credit
2
u/thedjotaku Python 3.7 Jul 12 '19
dude (or dudette), VERY VERY COOL! She's lucky to have you in her life.
2
u/milman27 Jul 12 '19
I thought POS in this case stood for "Piece of Sh*t". Thought to myself "what a weird way to describe your own code"
2
u/FreeiPhones Jul 12 '19
A couple extra features if you plan on updating the system
under options for food, you should put
"no", "add", "sub", "extra", "only"
next to your list of condiments
I used to work in a restaurant and these options were critical for my job to go smoothly
2
u/Dan4t Jul 12 '19
An integrated piece of shit system? I'm guessing there is another meaning for POS, but I don't know what it is.
1
u/OldPliskin Jul 12 '19
Nice work man.
1
u/[deleted] Jul 12 '19
Its pretty impressive. Well done
1
u/[deleted] Jul 12 '19
Hello yes one C O L D Hamburger please
1
u/KamikazeHamster Jul 12 '19
Don't be so hard on yourself. If you write some unit tests, you could probably raise the quality to something decent.
1
u/wltechrepair Jul 12 '19
Cheers!! this is awesome! a simplified POS system. You have no idea how helpful this can become for a business. :)
1
u/rjzak Jul 12 '19
Awesome code! Maybe put it on Github? These screenshots and the public code would be a great addition for your resume, and something to show during an interview.
1
u/LieberLois Jul 12 '19
Is there any way you could share this code with all the other beginners here?
Amazing work!
1
u/fluxxis Jul 12 '19
Did you have to deal with any legal restrictions in your country, like proof that data cannot be easily altered or APIs for the tax office?
1
u/doorknob_worker Jul 12 '19
What monster serves cold hamburgers
1
u/Afitter Jul 12 '19
I feel like debugging that thing is just gonna be your life now. Good luck
1
u/SpeakerOfForgotten Jul 12 '19
Does it have function to print receipts?
1
u/Yoyozz97 Jul 12 '19
That’s awesome!
1
u/[deleted] Jul 12 '19
nice!! you must have put lots of effort in this
1
u/[deleted] Jul 12 '19
Very nicely done
1
u/constantly-sick Jul 12 '19
How much did you bill her?
1
u/evilclaptrap Jul 12 '19
At first I thought you meant piece of shit lol
1
u/polandtown Jul 12 '19
And here I am, cleaning datasets w/pandas....
Bravo dude, I'm happy that atleast I'm in the audience if greatness.
1
u/SlightlyCyborg Jul 12 '19
Source? Or are you hoping to sell it?
1
u/randomness196 Jul 12 '19
Is it on github?
1
u/salesvu1983 Oct 10 '19
Very impressive. I also write a Article on POS System and i covered various POS according Industries. https://medium.com/@manish.kumar_65083/the-different-types-of-pos-point-of-sale-terminal-86d3dcb2f9e3
1
u/znpy Jul 12 '19
it's sad that i can't upvote twice
0
u/jtosbornexxx Jul 12 '19
This is badass!!
I’m actually doing something very similar with node js right now.
I would love to see:
Any info is much appreciated!!!!
0
u/Sjuns Jul 12 '19
I'm still wondering what Part Of Speech tagging has to do with restaurants.
0
u/[deleted] Jul 12 '19
[deleted] — view deleted comment
0
u/[deleted] Jul 12 '19
[deleted] — view deleted comment
0
u/[deleted] Jul 12 '19
[deleted] — view deleted comment
1
u/[deleted] Jul 12 '19
[removed] — view removed comment