add tax to order (#615)
* add tax to order * fix tax Co-authored-by: Elsio Sanchez <elsiosanche@gmail.com>pull/3759/head
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
|
{{ getOrder.documentStatus.name }}
|
||||||
</span>
|
</span>
|
||||||
{{ getOrder.documentStatus.name }}
|
|
||||||
</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…
Reference in New Issue