session[:items] = []
end
- def reciept
+ def receipt
# Save important data, since we're gonna wipe it out now
@customer = Customer.find_by_id(session[:customer_id])
@debt = @customer.debt
session[:total] = nil
session[:items] = nil
- # Show the reciept
- render :action => 'reciept'
+ # Show the receipt
+ render :action => 'receipt'
end
def customer_ok