Module: RailsTrade::PromoteCharge::FinalPromoteCharge

Extended by:
ActiveSupport::Concern
Included in:
FinalPromoteCharge
Defined in:
app/models/rails_trade/promote_charge/final_promote_charge.rb

Overview

一口价

Instance Method Summary collapse

Instance Method Details

#final_price(amount) ⇒ Object

返回原价与一口价之间的差,负数。



8
9
10
# File 'app/models/rails_trade/promote_charge/final_promote_charge.rb', line 8

def final_price(amount)
  -(amount - parameter)
end