Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def auto_create_safe_balance
- if previous_business_day
- self.create_safe_balance(
- :begin_balance => previous_business_day.safe_balance.end_balance,
- :begin_pennies => previous_business_day.safe_balance.end_pennies,
- :begin_nickels => previous_business_day.safe_balance.end_nickels,
- :begin_dimes => previous_business_day.safe_balance.end_dimes,
- :begin_quarters => previous_business_day.safe_balance.end_quarters,
- :begin_ones => previous_business_day.safe_balance.end_ones,
- :begin_fives => previous_business_day.safe_balance.end_fives,
- :begin_tens => previous_business_day.safe_balance.end_tens,
- :begin_twenties => previous_business_day.safe_balance.end_twenties,
- :begin_fifties => previous_business_day.safe_balance.end_fifties,
- :begin_hundreds => previous_business_day.safe_balance.end_hundreds
- )
- end
- end
Add Comment
Please, Sign In to add comment