def get_wrapped_ledger_values(domain, case_ids, section_id, entry_ids=None): # todo: figure out why this causes circular import from corehq.apps.reports.commtrack.util import StockLedgerValueWrapper query = LedgerES().domain(domain).section(section_id).case(case_ids) if entry_ids: query = query.entry(entry_ids) return [StockLedgerValueWrapper.wrap(row) for row in query.run().hits]
def get_wrapped_ledger_values(domain, case_ids, section_id, entry_ids=None): # todo: figure out why this causes circular import from corehq.apps.reports.commtrack.util import StockLedgerValueWrapper query = LedgerES().domain(domain).section(section_id).case(case_ids) if entry_ids: query = query.entry(entry_ids) return [StockLedgerValueWrapper.wrap(row) for row in query.run().hits]