1
0
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:
Elsio Sanchez 2021-03-02 00:17:23 -04:00 committed by GitHub
parent a52754af7f
commit eeba4c7b45
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 7 deletions

View File

@ -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>

View File

@ -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) => {