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)"
 | 
			
		||||
                :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…
	
		Reference in New Issue