Agregado toast que avisa si el pedido fue aprobado
This commit is contained in:
		
							parent
							
								
									bf3b888e71
								
							
						
					
					
						commit
						f50d4b975d
					
				
					 1 changed files with 4 additions and 0 deletions
				
			
		
							
								
								
									
										4
									
								
								resources/js/app.js
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										4
									
								
								resources/js/app.js
									
										
									
									
										vendored
									
									
								
							|  | @ -69,6 +69,10 @@ const app = new Vue({ | |||
|           }) | ||||
|       }) | ||||
|       Event.$on('sync-subpedido', (cantidad, id) => { | ||||
|           if (this.pedido.aprobado) { | ||||
|             this.$toast('No se puede modificar un pedido ya aprobado'); | ||||
|             return; | ||||
|           } | ||||
|           axios.post("/api/subpedidos/" + this.pedido.id + "/sync", { | ||||
|             cantidad: cantidad, | ||||
|             producto_id: id | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 Rodrigo
						Rodrigo