if i put button and use ng-click event for show(data) function its only calculate the answer for one product but i want answer for all products so,what can i do.here is my ng-repeat part which display the data of product.
<tr ng-repeat="data in data" ng-init="show(data)">
         <td>{{data.product_name}}</td>    
         <td>{{data.type}}</td>
         <td>{{data.quantity}}</td>
         <td>{{data.sale_prize}}</td>
         <td>{{data.sale_prize*data.quantity}}</td>
         <td>{{data.discount}}</td>
</tr>
Now i want to calculate total price,discount price,tax price,And all total which is display by follow part.
<div id="invoice" hidden="hidden">
    <label>Sub Total:</label>
          <input type="text"  placeholder="sale price"  ng-value="data.sale_prize * data.quantity" readonly="true"/><br />
          <label >Tax(2%):</label>
          <input type="text" readonly="true"  ng-value="((data.sale_prize * data.quantity)*2)/100" placeholder="tax"/>
          <label >Discount(%):</label>
          <input type="text" readonly="true"  ng-value="((data.sale_prize * data.quantity)*data.discount)/100"  placeholder="discount(%)" /><br />
          <label>Total Price:</label>
          <input type="text"  ng-value="(((data.sale_prize * data.quantity)+((data.sale_prize * data.quantity)*2)/100)-((data.sale_prize * data.quantity)*data.discount)/100) "readonly="true" placeholder="Total price"/>
</div>
js part
$scope.show = function(data)
{
      $("#invoice").fadeIn(2000);
      //what to do here for calculate answer for multiple product
}
Now if i want to use this answers in my show(data) function for all product then what to do? so,what would be my show(data) function??