Beispiel #1
0
        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);
        }
Beispiel #2
0
 public bool IsExternalTax(string taxZoneID)
 {
     return(ExternalTax.IsExternalTax(Base, taxZoneID));
 }