/// <summary> /// This is a straight port from gpCFL windows application /// </summary> public decimal CalculateGstOnAdminFee() { decimal gstOnOverdueFeeAdmin = 0; if (fee > 0) { // decimal overdueFeeGstExclusive = charges / (1 + (adminFee / fee * (decimal)0.125)); old implementation decimal overdueFeeGstExclusive; if (gstRate > 0) { overdueFeeGstExclusive = charges / (1 + (adminFee / fee * gstRate)); } else { overdueFeeGstExclusive = charges; } decimal overdueFeeAdminGstExclusive = overdueFeeGstExclusive * adminFee / fee; gstOnOverdueFeeAdmin = GstHelper.CalculateChargeableGst(overdueFeeAdminGstExclusive, gstRate); } return(gstOnOverdueFeeAdmin); }
public decimal CalculateGst() { return(GstHelper.CalculateGstCharged(PostAmount, gstRate) + GstHelper.CalculateGstCharged(Tolls, gstRate) + GstHelper.CalculateGstCharged(LettersSent, gstRate)); }