protected override void CalcTotals(object row, bool CalcTaxes) { string taxZondeID = CurrentDocument?.TaxZoneID; bool isExternalTax = ExternalTax.IsExternalTax(Base, taxZondeID); bool doCalc = _NoSumTotals == false && CalcTaxes && !isExternalTax; if (doCalc && CurrentDocument != null) { ResetDiscrepancy(Base); } base.CalcTotals(row, doCalc); }
public bool IsExternalTax(string taxZoneID) { return(ExternalTax.IsExternalTax(Base, taxZoneID)); }