Signed-off-by: Ira W. Snyder <devel@irasnyder.com>
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
<br/>
<br/>
<br/>
- <li><%=link_to 'End Purchase', :action => 'reciept' %></li>
+ <li><%=link_to 'End Purchase', :action => 'receipt' %></li>
</ul>
-<h1>Reciept</h1>
+<h1>Receipt</h1>
<p><b>Customer ID: </b><%= @customer.id.to_s %></p>
<p><b>Customer Name: </b><%= @customer.name.to_s %></p>