lib/offer_order_totals.rb
# Given an offer, it calculate totals on the order
Given an offer, it calculate totals on the order
Given an offer it calculate totals on the order
def seller_total_cents
    return unless buyer_total_cents && commission_fee_cents && transaction_fee_cents
    @seller_total_cents ||= buyer_total_cents - commission_fee_cents - transaction_fee_cents - calculate_remittable_sales_tax
  end
def seller_total_cents return unless buyer_total_cents && commission_fee_cents && transaction_fee_cents @seller_total_cents ||= buyer_total_cents - commission_fee_cents - transaction_fee_cents - calculate_remittable_sales_tax end
Given an offer, it calculate totals on the order
Given an offer it calculate totals on the order