This commit is contained in:
parent
119d6f02f5
commit
8f06ecb619
@ -204,8 +204,8 @@ define('ADDTNL_EXCISEDUTY', '(totaddtnlexcise*add
|
|||||||
define('GROSS_EXP', '(txtgrossdutypayable-txtmodvat)');
|
define('GROSS_EXP', '(txtgrossdutypayable-txtmodvat)');
|
||||||
define('AVL_MODVAT', 'txtexciseduty1+txtexciseedcess+txtexciseshcess+txtaddtnlexcise');
|
define('AVL_MODVAT', 'txtexciseduty1+txtexciseedcess+txtexciseshcess+txtaddtnlexcise');
|
||||||
define('GROSS_DUTY', 'landingcha+highsesssalless+customcha+excisecha+exciseedcha+exciseshcha+customed+customsh+txtaddtnexciseduty');
|
define('GROSS_DUTY', 'landingcha+highsesssalless+customcha+excisecha+exciseedcha+exciseshcha+customed+customsh+txtaddtnexciseduty');
|
||||||
define('PURCHASE_RATE', 'txtbasicinrprice/txtCtablequantity');
|
define('PURCHASE_RATE', 'txtbasicinrprice/quantity');
|
||||||
define('CUSTOMDUTY_EXP', 'txtgrossexp/txtCtablequantity');
|
define('CUSTOMDUTY_EXP', 'txtgrossexp/quantity');
|
||||||
define('RMC_CAL', 'txtpurchaserate+txtcustomdutyexp');
|
define('RMC_CAL', 'txtpurchaserate+txtcustomdutyexp');
|
||||||
define('CALCULATE_TOTAL', '(txtrmc*quantity)+basicprice');
|
define('CALCULATE_TOTAL', '(txtrmc*quantity)+basicprice');
|
||||||
/* Capital Po Calculations */
|
/* Capital Po Calculations */
|
||||||
|
|||||||
@ -3693,11 +3693,12 @@ function CalculateCtable()
|
|||||||
var total=0;
|
var total=0;
|
||||||
var basicamt=0;
|
var basicamt=0;
|
||||||
basicprice=parseFloat($('#txtBasicValue').val());
|
basicprice=parseFloat($('#txtBasicValue').val());
|
||||||
|
console.log(basicprice);
|
||||||
quantity=parseFloat($('#PurQuantity').val());
|
quantity=parseFloat($('#PurQuantity').val());
|
||||||
txtbasicinrprice=parseFloat($('#AfterBasicPriceTax').val());
|
txtbasicinrprice=parseFloat($('#AfterBasicPriceTax').val());
|
||||||
//txtpurchaserate=txtbasicinrprice/txtCtablequantity;
|
//txtpurchaserate=txtbasicinrprice/txtCtablequantity;
|
||||||
txtpurchaserate=<?php echo PURCHASE_RATE;?>;
|
txtpurchaserate=<?php echo PURCHASE_RATE;?>;
|
||||||
|
console.log(txtpurchaserate);
|
||||||
if(isNaN(txtpurchaserate))
|
if(isNaN(txtpurchaserate))
|
||||||
{
|
{
|
||||||
$('#purchaserate').val('');
|
$('#purchaserate').val('');
|
||||||
@ -3731,7 +3732,8 @@ function CalculateCtable()
|
|||||||
}
|
}
|
||||||
//total=<?php echo CALCULATE_TOTAL;?>;
|
//total=<?php echo CALCULATE_TOTAL;?>;
|
||||||
|
|
||||||
$('#TotalExp').val(Math.round(basicprice));
|
$('#TotalExp').val(Math.round(basicprice));
|
||||||
|
// $('#TotalExp').val(Math.round(basicprice));
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user