This commit is contained in:
venbatechnologies@gmail.com 2017-07-13 10:43:54 +05:30
parent 119d6f02f5
commit 8f06ecb619
2 changed files with 6 additions and 4 deletions

View File

@ -204,8 +204,8 @@ define('ADDTNL_EXCISEDUTY', '(totaddtnlexcise*add
define('GROSS_EXP', '(txtgrossdutypayable-txtmodvat)');
define('AVL_MODVAT', 'txtexciseduty1+txtexciseedcess+txtexciseshcess+txtaddtnlexcise');
define('GROSS_DUTY', 'landingcha+highsesssalless+customcha+excisecha+exciseedcha+exciseshcha+customed+customsh+txtaddtnexciseduty');
define('PURCHASE_RATE', 'txtbasicinrprice/txtCtablequantity');
define('CUSTOMDUTY_EXP', 'txtgrossexp/txtCtablequantity');
define('PURCHASE_RATE', 'txtbasicinrprice/quantity');
define('CUSTOMDUTY_EXP', 'txtgrossexp/quantity');
define('RMC_CAL', 'txtpurchaserate+txtcustomdutyexp');
define('CALCULATE_TOTAL', '(txtrmc*quantity)+basicprice');
/* Capital Po Calculations */

View File

@ -3693,11 +3693,12 @@ function CalculateCtable()
var total=0;
var basicamt=0;
basicprice=parseFloat($('#txtBasicValue').val());
console.log(basicprice);
quantity=parseFloat($('#PurQuantity').val());
txtbasicinrprice=parseFloat($('#AfterBasicPriceTax').val());
//txtpurchaserate=txtbasicinrprice/txtCtablequantity;
txtpurchaserate=<?php echo PURCHASE_RATE;?>;
console.log(txtpurchaserate);
if(isNaN(txtpurchaserate))
{
$('#purchaserate').val('');
@ -3731,7 +3732,8 @@ function CalculateCtable()
}
//total=<?php echo CALCULATE_TOTAL;?>;
$('#TotalExp').val(Math.round(basicprice));
$('#TotalExp').val(Math.round(basicprice));
// $('#TotalExp').val(Math.round(basicprice));
}