(domain)
return False
Whether the domain's consumption calculation should exclude invalid periods
    i.e. periods where the stock went up without a receipt being reported
Whether the domain's consumption calculation should exclude invalid periods
    i.e. periods where the stock went up without a receipt being reported
Whether the domain s consumption calculation should exclude invalid periods i . e . periods where the stock went up without a receipt being reported
def should_exclude_invalid_periods(domain):
    """
    Whether the domain's consumption calculation should exclude invalid periods
    i.e. periods where the stock went up without a receipt being reported
    """
    from corehq.apps.commtrack.models import CommtrackConfig
    if domain:
        config = CommtrackConfig.for_domain(domain)
        if config and hasattr(config, 'consumptionconfig'):
            return config.consumptionconfig.exclude_invalid_periods
    return False
def should_exclude_invalid_periods ( domain ) : from corehq . apps . commtrack . models import CommtrackConfig if domain : config = CommtrackConfig . for_domain ( domain ) if config and hasattr ( config , 'consumptionconfig' ) : return config . consumptionconfig . exclude_invalid_periods return False