def clone_transaction(transaction, new_portfolio = None):
  
  out = Transaction()
  out.portfolio = (new_portfolio if new_portfolio != None else transaction.portfolio)
  out.type = transaction.type
  out.as_of_date = transaction.as_of_date
  out.symbol = transaction.symbol
  out.quantity = transaction.quantity
  out.price = transaction.price
  out.total = transaction.total
  out.linked_symbol = transaction.linked_symbol
  
  return out
Return HTML text for given URL. Simple wrapper for gethtml function.
dataset/ETHPy150Open fxdemolisher/frano/frano/transactions/models.py/clone_transaction--crossover with--dataset/ETHPy150Open miklevin/pipulate/common.py/archive