'get Stock Ledger Entries after a particular datetime, for reposting'

def get_sle_after_datetime(self):

    return get_stock_ledger_entries((self.previous_sle or frappe._dict({u'item_code': self.args.get(u'item_code'), u'warehouse': self.args.get(u'warehouse')})), u'>', u'asc', for_update=True)
