mirror of
https://github.com/PanJiaChen/vue-element-admin.git
synced 2025-08-13 23:20:12 +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)"
|
v-if="!isEmptyValue(getOrder.documentStatus.value)"
|
||||||
:type="tagStatus(getOrder.documentStatus.value)"
|
:type="tagStatus(getOrder.documentStatus.value)"
|
||||||
>
|
>
|
||||||
<span v-if="isEmptyValue(getOrder.documentStatus.value)">
|
<span v-if="!isEmptyValue(getOrder.documentStatus.value)">
|
||||||
Borrador
|
|
||||||
</span>
|
|
||||||
{{ getOrder.documentStatus.name }}
|
{{ getOrder.documentStatus.name }}
|
||||||
|
</span>
|
||||||
</el-tag>
|
</el-tag>
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
|
@ -357,10 +357,7 @@ export default {
|
|||||||
// this.order = orderToPush
|
// this.order = orderToPush
|
||||||
},
|
},
|
||||||
getOrderTax(currency) {
|
getOrderTax(currency) {
|
||||||
if (this.isEmptyValue(this.order)) {
|
return this.formatPrice(this.getOrder.grandTotal - this.getOrder.totalLines, currency)
|
||||||
return undefined
|
|
||||||
}
|
|
||||||
return this.formatPrice(this.order.grandTotal - this.order.totalLines, currency)
|
|
||||||
},
|
},
|
||||||
subscribeChanges() {
|
subscribeChanges() {
|
||||||
return this.$store.subscribe((mutation, state) => {
|
return this.$store.subscribe((mutation, state) => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user