mirror of
https://github.com/PanJiaChen/vue-element-admin.git
synced 2025-08-10 20:39:48 +08:00
add tax to order (#615)
* add tax to order * fix tax Co-authored-by: Elsio Sanchez <elsiosanche@gmail.com>
This commit is contained in:
parent
a52754af7f
commit
eeba4c7b45
@ -37,10 +37,9 @@
|
||||
v-if="!isEmptyValue(getOrder.documentStatus.value)"
|
||||
:type="tagStatus(getOrder.documentStatus.value)"
|
||||
>
|
||||
<span v-if="isEmptyValue(getOrder.documentStatus.value)">
|
||||
Borrador
|
||||
<span v-if="!isEmptyValue(getOrder.documentStatus.value)">
|
||||
{{ getOrder.documentStatus.name }}
|
||||
</span>
|
||||
{{ getOrder.documentStatus.name }}
|
||||
</el-tag>
|
||||
</el-col>
|
||||
</el-row>
|
||||
|
@ -357,10 +357,7 @@ export default {
|
||||
// this.order = orderToPush
|
||||
},
|
||||
getOrderTax(currency) {
|
||||
if (this.isEmptyValue(this.order)) {
|
||||
return undefined
|
||||
}
|
||||
return this.formatPrice(this.order.grandTotal - this.order.totalLines, currency)
|
||||
return this.formatPrice(this.getOrder.grandTotal - this.getOrder.totalLines, currency)
|
||||
},
|
||||
subscribeChanges() {
|
||||
return this.$store.subscribe((mutation, state) => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user