cambio segun si devoluciones esta activa
This commit is contained in:
		
							parent
							
								
									0c79d3b002
								
							
						
					
					
						commit
						057170118d
					
				
					 2 changed files with 5 additions and 5 deletions
				
			
		|  | @ -18,7 +18,7 @@ | |||
|                 <th></th> | ||||
|                 <th></th> | ||||
|             </tr> | ||||
|             <tr> | ||||
|             <tr v-if="this.$root.devoluciones"> | ||||
|                 <th><p :title="this.$root.pedido.devoluciones_notas">Devoluciones</p></th> | ||||
|                 <th class="has-text-right"></th> | ||||
|                 <th class="has-text-right">-{{ this.$root.pedido.devoluciones_total }}</th> | ||||
|  | @ -62,7 +62,7 @@ | |||
|                 return this.$limpiarInt(this.$root.pedido.subtotal_bonos_de_transporte) | ||||
|             }, | ||||
|             total: function() { | ||||
|                 return this.$limpiarInt(this.$root.pedido.total_menos_devoluciones) | ||||
|                 return this.$limpiarInt(this.$root.devoluciones ? this.$root.pedido.total_menos_devoluciones : this.$root.pedido.total) | ||||
|             } | ||||
|         }, | ||||
|         methods: { | ||||
|  | @ -79,4 +79,4 @@ | |||
|         max-width: 80vw; | ||||
|     } | ||||
| } | ||||
| </style> | ||||
| </style> | ||||
|  |  | |||
|  | @ -5,7 +5,7 @@ | |||
|             <span class="icon is-small mr-1"> | ||||
|                 <img src="/assets/chismosa.png"> | ||||
|             </span> | ||||
|             <span v-text="'$' + this.$limpiarInt(this.$root.pedido.total_menos_devoluciones)"></span> | ||||
|             <span v-text="'$' + this.$limpiarInt($root.devoluciones ? $root.pedido.total_menos_devoluciones : $root.pedido.total)"></span> | ||||
|             </a> | ||||
|         </div> | ||||
|         <div class="dropdown-menu chismosa-menu" :id="id" role="menu"> | ||||
|  | @ -61,4 +61,4 @@ export default { | |||
|         max-height: 75vh; | ||||
|     } | ||||
| } | ||||
| </style> | ||||
| </style> | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue