(self)
return quantity
Return the debit part of the source total asset price.

      This is the same as getSourceDebit where quantity is replaced
      by source_total_asset_price.
      This method returns 0 if the total asset price is not set.
Return the debit part of the source total asset price.
Return the debit part of the source total asset price .
def getSourceAssetDebit(self):
    """
      Return the debit part of the source total asset price.

      This is the same as getSourceDebit where quantity is replaced
      by source_total_asset_price.
      This method returns 0 if the total asset price is not set.
    """
    quantity = self.getSourceTotalAssetPrice()
    try:
      quantity = float(quantity)
    except TypeError:
      quantity = 0.0
    if (quantity < 0) ^ bool(self.isCancellationAmount()):
      return 0.0
    return quantity
def getSourceAssetDebit ( self ) : quantity = self . getSourceTotalAssetPrice ( ) try : quantity = float ( quantity ) except TypeError : quantity = 0.0 if ( quantity < 0 ) ^ bool ( self . isCancellationAmount ( ) ) : return 0.0 return quantity