Skip to content

Instantly share code, notes, and snippets.

@adamgamble
Created November 2, 2010 20:36
Show Gist options
  • Save adamgamble/660251 to your computer and use it in GitHub Desktop.
Save adamgamble/660251 to your computer and use it in GitHub Desktop.
if transaction_feed.is_pin? && transaction_feed.card.card_account.fee_plan == "Monthly Fee"
pin_fee_amount = BigDecimal(transaction_feed.card.store.region.region_setting[:settings]["monthly_plan_pin_fee"])
current_balance -= pin_fee_amount
end
if transaction_feed.is_pin? && transaction_feed.card.card_account.fee_plan == "Pay as you go"
pin_fee_amount = BigDecimal(transaction_feed.card.store.region.region_setting[:settings]["pay_as_you_go_pin_fee"])
current_balance -= pin_fee_amount
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment