|
@@ -162,9 +162,10 @@ namespace Efacto.Application.Services
|
|
taxRate = Utilities._util.ConvertToDecimal(gstTaxdef.GstRate);
|
|
taxRate = Utilities._util.ConvertToDecimal(gstTaxdef.GstRate);
|
|
}
|
|
}
|
|
|
|
|
|
-
|
|
|
|
|
|
+ decimal OldTaxableAmt = 0;
|
|
if (!string.IsNullOrEmpty(TaxType) && TaxType == "INCLUSIVE")
|
|
if (!string.IsNullOrEmpty(TaxType) && TaxType == "INCLUSIVE")
|
|
{
|
|
{
|
|
|
|
+ OldTaxableAmt = TaxableAmt;
|
|
TaxableAmt = (TaxableAmt * 100) / (100 + taxRate);
|
|
TaxableAmt = (TaxableAmt * 100) / (100 + taxRate);
|
|
}
|
|
}
|
|
|
|
|
|
@@ -186,6 +187,11 @@ namespace Efacto.Application.Services
|
|
cessAmt = Math.Round(cessAmt, 2);
|
|
cessAmt = Math.Round(cessAmt, 2);
|
|
TaxAmt = igstAmt + cgstAmt + sgstAmt + cessAmt;
|
|
TaxAmt = igstAmt + cgstAmt + sgstAmt + cessAmt;
|
|
TotalAmt = Utilities._util.ConvertToDecimal(TaxableAmt) + Utilities._util.ConvertToDecimal(TaxAmt);
|
|
TotalAmt = Utilities._util.ConvertToDecimal(TaxableAmt) + Utilities._util.ConvertToDecimal(TaxAmt);
|
|
|
|
+ if(Utilities._util.ConvertToDecimal(OldTaxableAmt) > 0 && Utilities._util.ConvertToDecimal(TotalAmt) != Utilities._util.ConvertToDecimal(OldTaxableAmt))
|
|
|
|
+ {
|
|
|
|
+ TaxableAmt = Utilities._util.ConvertToDecimal(OldTaxableAmt) - Utilities._util.ConvertToDecimal(TaxAmt);
|
|
|
|
+ TotalAmt = Utilities._util.ConvertToDecimal(TaxableAmt) + Utilities._util.ConvertToDecimal(TaxAmt);
|
|
|
|
+ }
|
|
}
|
|
}
|
|
_retval.Add("TAXABLEAMT", TaxableAmt);
|
|
_retval.Add("TAXABLEAMT", TaxableAmt);
|
|
_retval.Add("TAX_RATE", taxRate);
|
|
_retval.Add("TAX_RATE", taxRate);
|