anchor.diff:  							&nbsp; <a href="/getAsset?id=${asset.id}"> <span
   								class="glyphicon glyphicon-pencil" aria-hidden="true"></span></a></td>
   								<td> <input type = "text" name ="subquantity" id = "subquantity${asset.serialnumber}" value = "" />&nbsp;
  -				 <button type = "submit" name = "assignbutton" id = "assignbutton" onclick = 'return temporary(${asset.serialnumber})'>ASSIGN</button></td>
  +				 <button type = "submit" name = "assignbutton" id = "assignbutton" onclick = 'return calculateQuantity(${asset.serialnumber})'>ASSIGN</button></td>
   				
   				</c:forEach>
                   
  
positive.code:  	   </script>
   	   <script> 
   	   
   	   function temporary(serialnumber) {
   		  var temp;
   		  var quantityDynamic = { <c:forEach items="${listAssets}" var="item2"> ${item2.serialnumber}: '${item2.quantity}' ${not loop.last ? ',' : ''} </c:forEach>};
   		 var subquantity = document.getElementById("subquantity"+serialnumber).value;
  
negative.code:  			 temp = quantity - subquantity;
   			 if(key == serialnumber) {
   				 quantityDynamic[key] = temp;
   				 updateAssignedData(quantityDynamic[key],key,subquantity);
   				 document.getElementById("subquantity"+serialnumber).value = temp;
   		     }
   		    }
   		 }
   	  }
   	   
   	  function updateAssignedData(quantity,serialnumber,subquantity) {
   		 $.ajax({
  