-
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
Merged
Merged
Make taxes work #86
Changes from all commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
9430bf1
admin setting
talvasconcelos a3a5041
tax display
talvasconcelos a3e00cc
include tax scheme on details
talvasconcelos 4af69df
big code overhaul
talvasconcelos e2dc5bd
admin setting
talvasconcelos 1316866
tax display
talvasconcelos eab5acf
include tax scheme on details
talvasconcelos c099182
big code overhaul
talvasconcelos c508bc2
Merge branch 'make_tax_work' of https://github.com/lnbits/tpos into m…
talvasconcelos 67388a7
yay
talvasconcelos d72ea5b
Merge remote-tracking branch 'origin/main' into make_tax_work
talvasconcelos 896bc96
...
talvasconcelos f65b5a9
add tax total value to tx details
talvasconcelos 7dc5e7d
Merge remote-tracking branch 'origin/main' into make_tax_work
arcbtc 3e046f4
fix null tax value
talvasconcelos 677168f
UI sugar and clean up
talvasconcelos 0baa27d
Merge branch 'make_tax_work' of https://github.com/lnbits/tpos into m…
talvasconcelos 431c103
update readme
talvasconcelos c0e77f6
remove dead code
talvasconcelos 8702aa4
tax_default is defaults to zero
talvasconcelos 7c7b7ae
Merge branch 'main' into make_tax_work
talvasconcelos b443b32
fix: lnurl imports
talvasconcelos ffc8135
remove strinfying of the data
talvasconcelos File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
<div style="margin-bottom: 200px"> | ||
<q-separator></q-separator> | ||
<q-list separator padding> | ||
<q-item v-for="item in items" :key="item.id" class="q-py-md"> | ||
<q-item-section avatar top> | ||
<q-avatar> | ||
<img v-if="item.image" class="responsive-img" :src="item.image" /> | ||
<q-icon v-else color="primary" name="sell"></q-icon> | ||
</q-avatar> | ||
</q-item-section> | ||
|
||
<q-item-section class="col-4"> | ||
<q-item-label class="ellipsis" | ||
><span | ||
class="text-body text-weight-bold text-uppercase" | ||
v-text="item.title" | ||
></span | ||
></q-item-label> | ||
<q-item-label lines="1"> | ||
<span | ||
class="text-weight-medium ellipsis" | ||
v-text="item.description" | ||
></span> | ||
</q-item-label> | ||
</q-item-section> | ||
|
||
<q-item-section top> | ||
<q-item-label lines="1"> | ||
<span class="text-weight-bold" v-text="item.formattedPrice"></span> | ||
</q-item-label> | ||
<q-item-label caption lines="1"> | ||
<i | ||
><span | ||
v-text="`tax ${inclusive ? 'incl.' : 'excl.'} ${item.tax ? item.tax + '%' : ''}`" | ||
></span | ||
></i> | ||
</q-item-label> | ||
<q-item-label v-if="!inclusive" lines="1" class="q-mt-xs"> | ||
<span | ||
v-text="`Price w/ tax: ${format(item.price * (1 + item.tax * 0.01), currency)}`" | ||
></span> | ||
</q-item-label> | ||
</q-item-section> | ||
|
||
<q-item-section side> | ||
<div class="text-grey-8 q-gutter-sm"> | ||
<q-btn round color="green" icon="add" @click="addToCart(item)" /> | ||
</div> | ||
</q-item-section> | ||
</q-item> | ||
</q-list> | ||
<q-separator></q-separator> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
async function itemList(path) { | ||
const template = await loadTemplateAsync(path) | ||
|
||
Vue.component('item-list', { | ||
name: 'item-list', | ||
props: ['items', 'inclusive', 'format', 'currency', 'add-product'], | ||
template, | ||
|
||
data: function () { | ||
return {} | ||
}, | ||
computed: {}, | ||
methods: { | ||
addToCart(item) { | ||
this.$emit('add-product', item) | ||
} | ||
}, | ||
created() {} | ||
}) | ||
} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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?