(self, source_credit)
Set the quantity
Set the quantity
Set the quantity
def setSourceCredit(self, source_credit):
    """
      Set the quantity
    """
    if source_credit in (None, ''):
      return
    try:
      source_credit = float(source_credit)
    except TypeError:
      source_credit = 0.0
    self.setCancellationAmount(source_credit < 0)
    self.setQuantity(source_credit)
def setSourceCredit ( self , source_credit ) : if source_credit in ( None , '' ) : return try : source_credit = float ( source_credit ) except TypeError : source_credit = 0.0 self . setCancellationAmount ( source_credit < 0 ) self . setQuantity ( source_credit )