Guest User

Untitled

a guest
Jul 16th, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. def credit_column
  2. base = cash_sales + accounting_credit + amex_total + newbook_total + usedbook_total + coursepack_total + reference_total + insignia_total + food_total + office_total + greek_total + medref_total + medsup_total + shipping_total + taxes_total + wholesales + advertisings + credit_bal_refunds + bad_check_redeposits + misc_cashes + settlements + commissions + eagle_checks + petty_cash_adj
  3. if positive_giftcards && negative_on_account
  4. base + giftcard_total + net_on_account
  5. elsif positive_giftcards
  6. base + giftcard_total
  7. elsif negative_on_account
  8. base + net_on_account
  9. else
  10. base
  11. end
  12. end
Add Comment
Please, Sign In to add comment