import issue

This commit is contained in:
venbatechnologies@gmail.com 2017-08-08 12:52:21 +05:30
parent a806cee92a
commit a3f7bc8cd3
2 changed files with 8 additions and 4 deletions

View File

@ -2140,9 +2140,13 @@ function Ratechange(){
//ExceedQuantityCheck();
// if($('#Quantity').val() != '' && $('#Rate').val() != '')
// {
var txtQuantity = parseFloat( $('#Quantity').val());
var txtUnitPrice = parseFloat($('#Rate').val());
// {
var txtQuantity = $('#Quantity').val() == '' ? '0.00' : $('#Quantity').val();
//console.log(txtQuantity);
// var txtQuantity = parseFloat( $('#Quantity').val());
var txtUnitPrice = $('#Rate').val() == '' ? '0.00' : $('#Rate').val();
//var txtUnitPrice = parseFloat($('#Rate').val());
var Tot = txtQuantity * txtUnitPrice
//console.log(Tot);
$('#txtBasicValue').val(Math.round(Tot));

View File

@ -237,7 +237,7 @@
<tr>
<td align="center"><?php echo $index ; ?></td>
<td align="center"><?php echo $record->MaterialName ; ?></td>
<td align="center">000666</td><!--HSN code should come from DB-->
<td align="center"><?php echo $record->HSNCODE;?></td><!--HSN code should come from DB-->
<td align="center"><?php echo $record->Quantity ; ?></td>
<td align="center"><?php echo $record->UOM ; ?></td>