-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make taxes work #86
Make taxes work #86
Conversation
add some UI sugar
add some UI sugar
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
await db.execute("ALTER TABLE tpos.pos ADD COLUMN withdrawtimeopt TEXT DEFAULT 'mins';") | ||
await db.execute("ALTER TABLE tpos.pos ADD COLUMN withdrawpindisabled BOOL NOT NULL DEFAULT false;") | ||
await db.execute( | ||
"ALTER TABLE tpos.pos ADD COLUMN withdrawtimeopt TEXT DEFAULT 'mins';" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why not use underscore for column names?
Is |
Apparently ... |
Can I merge this one, @motorina0 ? |
I approved, so yes. |
First implementation of making taxes work for the tpos.
It's only implemented for the Items stuff, needs integration with normal TPoS usage, with the default tax value.
Big code overhaul (separate js from html) as files were getting massive. Added some components aswell!
There's now a new dropdown for tax related stuff:
Taxes can be set per product, if not set, it will take the default value. Tax can be included on price or added on top (inclusive or exclusive).
When not using the TPoS with a product list, the tax is assumed included on price. The cart will display the values of the subtotal / tax amount / total:
tax exclusive:
tax inclusive:
Test:
Closes #69