ASPForums.Net RSS Feedhttp://www.aspforums.net/Handlers/RSS.ashxLatest additions to the content that appears on ASPForums.Net(c) 2019 www.aspforums.com. All rights reserved.Perform Subtraction in HTML Table row using AngularJS in ASP.Net<p>It is just as same as the multiplication operation. The one thing we should notice here is the variable name. We have to carefully use the variable name accordingly.</p> <pre class="brush: js">$http.get(apiUrl + &#34;/api/Warehouse/GetDetails?invoiceno=&#34; + $scope.selectedInvoice.originalObject.InvoiceNo + &#34;&#34;) .then(function (response) { $scope.mydata = JSON.parse(response.data); $scope.calc = function (index) { $scope.mydata[index].mul = parseFloat($scope.mydata[index].PalletCapacity) * parseFloat($scope.mydata[index].num); //$scope.$apply(); $scope.mydata[index].Stock = $scope.mydata[index].Numbers - $scope.mydata[index].IssuedQty - $scope.mydata[index].mul; } });</pre> <p>&nbsp;</p> <pre class="brush: html"> &lt;div class=&#34;bg-white mb-1&#34;&gt; &lt;div class=&#34;row m-1 p-1&#34; ng-repeat=&#34;item in mydata&#34;&gt; &lt;div class=&#34;col-md-1 pull-left airways-info-sect&#34;&gt; &lt;span class=&#34;fli-code&#34;&gt;Serial No&lt;/span&gt; &lt;span class=&#34;airways-name&#34; style=&#34;text-align:center;&#34;&gt;{{$index + 1}}&lt;/span&gt; &lt;/div&gt; &lt;div class=&#34;col-md-3 pull-left airways-info-sect&#34;&gt; &lt;span class=&#34;fli-code&#34;&gt;Part Name&lt;/span&gt; &lt;span class=&#34;airways-name&#34; style=&#34;text-align: left;&#34;&gt;{{item.PartName}}&lt;/span&gt; &lt;/div&gt; &lt;!--&lt;div class=&#34;col-md-1 pull-left airways-info-sect&#34;&gt; &lt;span class=&#34;fli-code&#34;&gt;Part No&lt;/span&gt; &lt;span class=&#34;airways-name &#34;&gt;{{item.PartNo}}&lt;/span&gt; &lt;/div&gt;--&gt; &lt;div class=&#34;col-md-2 pull-left airways-info-sect&#34;&gt; &lt;span class=&#34;fli-code&#34;&gt;No Of Pallets&lt;/span&gt; &lt;span class=&#34;airways-name &#34;&gt; &lt;input type=&#34;number&#34; min=&#34;0&#34; class=&#34;&#34; placeholder=&#34;&#34; ng-model=&#34;item.num&#34; ng-init=&#34;item.num=0&#34; ng-change=&#34;calc($index)&#34; required=&#34;&#34; style=&#34;border:1px solid #333; width:20%; text-align:right&#34; /&gt;&lt;i class=&#34;mr-3 fa fa-plus-square-o&#34; style=&#34;font-size:22px; padding-left:5px; position:absolute;&#34;&gt;&lt;/i&gt; &lt;/span&gt; &lt;/div&gt; &lt;div class=&#34;col-md-1 pull-left airways-info-sect&#34;&gt; &lt;span class=&#34;fli-code&#34;&gt;Pallet Qty&lt;/span&gt; &lt;span class=&#34;airways-name&#34; style=&#34;text-align:right;&#34;&gt;{{item.PalletCapacity}}&lt;/span&gt; &lt;/div&gt; &lt;div class=&#34;col-md-1 pull-left airways-info-sect&#34;&gt; &lt;span class=&#34;fli-code&#34;&gt;Accept Qty&lt;/span&gt; &lt;span class=&#34;airways-name&#34;&gt;{{item.Numbers}}&lt;/span&gt; &lt;/div&gt; &lt;div class=&#34;col-md-1 pull-left airways-info-sect&#34;&gt; &lt;span class=&#34;fli-code&#34;&gt;Issued Qty&lt;/span&gt; &lt;span class=&#34;airways-name&#34; style=&#34;text-align:right;&#34;&gt;{{item.IssuedQty}}&lt;/span&gt; &lt;/div&gt; &lt;div class=&#34;col-md-1 pull-left airways-info-sect&#34;&gt; &lt;span class=&#34;fli-code&#34;&gt;Issue Qty&lt;/span&gt; &lt;input type=&#34;number&#34; class=&#34;&#34; placeholder=&#34;&#34; ng-model=&#34;item.mul&#34; ng-init=&#34;item.mul=0&#34; required=&#34;&#34; style=&#34;border: 1px solid #333; width: 90%; text-align: right&#34; /&gt; &lt;/div&gt; &lt;div class=&#34;col-md-1 pull-left airways-info-sect&#34;&gt; &lt;span class=&#34;fli-code&#34;&gt;Stock&lt;/span&gt; &lt;span class=&#34;airways-name&#34; style=&#34;text-align:right;&#34;&gt;{{item.Stock}}&lt;/span&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt;</pre> <p>&nbsp;</p>https://www.aspforums.net:443/Threads/161808/Perform-Subtraction-in-HTML-Table-row-using-AngularJS-in-ASPNet/https://www.aspforums.net:443/Threads/161808/Perform-Subtraction-in-HTML-Table-row-using-AngularJS-in-ASPNet/Thu, 11 Jul 2019 23:26:05 GMT