-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
29ee56d
commit ae0448a
Showing
7 changed files
with
689 additions
and
12 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,119 @@ | ||
<template> | ||
<v-row class="justify-center"> | ||
<v-col> | ||
<v-img | ||
class="mt-8" | ||
max-height="80" | ||
max-width="80" | ||
contain | ||
:src="`${STATIC_PATH}/icon.svg`" | ||
/> | ||
<v-card-title | ||
v-icon="`${STATIC_PATH}/icon.svg`" | ||
class="subheading font-weight-bold" | ||
> | ||
Bitcart AI | ||
</v-card-title> | ||
|
||
<v-divider></v-divider> | ||
|
||
<v-list dense> | ||
<v-list-item> | ||
<v-list-item-content class="grey--text text--darken" | ||
><strong>Invoice ID</strong></v-list-item-content | ||
> | ||
<v-list-item-content class="align-end"> | ||
{{ invoice.id }} | ||
</v-list-item-content> | ||
</v-list-item> | ||
|
||
<v-list-item> | ||
<v-list-item-content class="grey--text text--darken" | ||
><strong>Order ID</strong></v-list-item-content | ||
> | ||
<v-list-item-content class="align-end"> | ||
{{ invoice.order_id }} | ||
</v-list-item-content> | ||
</v-list-item> | ||
|
||
<v-list-item> | ||
<v-list-item-content class="grey--text text--darken" | ||
><strong>Store ID</strong></v-list-item-content | ||
> | ||
<v-list-item-content class="align-end"> | ||
{{ invoice.store_id }} | ||
</v-list-item-content> | ||
</v-list-item> | ||
|
||
<v-list-item> | ||
<v-list-item-content class="grey--text text--darken" | ||
><strong>Total Amount</strong></v-list-item-content | ||
> | ||
<v-list-item-content class="align-end"> | ||
{{ invoice.price }} | ||
{{ invoice.currency }} | ||
</v-list-item-content> | ||
</v-list-item> | ||
<v-list-item> | ||
<v-list-item-content class="grey--text text--darken" | ||
><strong>Sent Amount</strong></v-list-item-content | ||
> | ||
<v-list-item-content class="align-end"> | ||
{{ invoice.sent_amount + " " + invoice.currency }} | ||
</v-list-item-content> | ||
</v-list-item> | ||
<v-list-item> | ||
<v-list-item-content class="grey--text text--darken" | ||
><strong>Total Fiat</strong></v-list-item-content | ||
> | ||
<v-list-item-content class="align-end"> | ||
{{ payment.amount + " " + payment.currency.toUpperCase() }} | ||
</v-list-item-content> | ||
</v-list-item> | ||
<v-list-item> | ||
<v-list-item-content class="grey--text text--darken" | ||
><strong>Exchange Rate</strong></v-list-item-content | ||
> | ||
<v-list-item-content class="align-end"> | ||
{{ payment.rate_str }} | ||
</v-list-item-content> | ||
</v-list-item> | ||
<v-list-item> | ||
<v-list-item-content class="grey--text text--darken" | ||
><strong>Amount Due</strong></v-list-item-content | ||
> | ||
<v-list-item-content class="align-end"> | ||
{{ invoice.sent_amount }} {{ invoice.currency }} | ||
</v-list-item-content> | ||
</v-list-item> | ||
|
||
<v-list-item> | ||
<v-list-item-content class="grey--text text--darken" | ||
><strong>Date</strong></v-list-item-content | ||
> | ||
<v-list-item-content class="align-end"> | ||
{{ invoice.paid_date.substring(0, 19).replace("T", " ") }} | ||
</v-list-item-content> | ||
</v-list-item> | ||
</v-list> | ||
</v-col> | ||
</v-row> | ||
</template> | ||
|
||
<script> | ||
export default { | ||
props: { | ||
invoice: { | ||
type: Object, | ||
required: true, | ||
}, | ||
}, | ||
computed: { | ||
payment() { | ||
return this.invoice.payments.find( | ||
(obj) => obj.id === this.invoice.payment_id | ||
) | ||
}, | ||
}, | ||
} | ||
</script> |
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,6 @@ | ||
import Vue from "vue" | ||
|
||
if (process.browser) { | ||
const VueHtml2pdf = require("vue-html2pdf").default | ||
Vue.component("VueHtml2pdf", VueHtml2pdf) | ||
} |
Oops, something went wrong.