mirror of
https://github.com/fspc/bike-database.git
synced 2025-02-23 01:23:24 -05:00
Louis | Adds minimally styled client reciepts
This commit is contained in:
parent
67ae0bf04b
commit
e9ce1dd51f
15
app/assets/stylesheets/client_receipt.scss
Normal file
15
app/assets/stylesheets/client_receipt.scss
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
.freecyclery-receipt{
|
||||||
|
h2 {
|
||||||
|
font-size: 18px;
|
||||||
|
}
|
||||||
|
.horizontal-line{
|
||||||
|
width: 100%;
|
||||||
|
border-bottom: 5px solid black;
|
||||||
|
}
|
||||||
|
.receipt{
|
||||||
|
margin: 10px;
|
||||||
|
border: 5px solid black;
|
||||||
|
height: 400px;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -17,4 +17,8 @@ class Client < ActiveRecord::Base
|
|||||||
Client.all.select{|client| client.application_voided || client.completion_date}
|
Client.all.select{|client| client.application_voided || client.completion_date}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def bike
|
||||||
|
Bike.find(self.bike_id)
|
||||||
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
@ -1 +1,75 @@
|
|||||||
KITTENS
|
.containter.freecyclery-receipt
|
||||||
|
.col-xs-6
|
||||||
|
.receipt
|
||||||
|
%h2
|
||||||
|
%strong= @client.bike.name
|
||||||
|
%br
|
||||||
|
= 'Log Number: ' + @client.bike.log_number.to_s
|
||||||
|
%br
|
||||||
|
.horizontal-line
|
||||||
|
.client-information
|
||||||
|
= @client.name
|
||||||
|
%br
|
||||||
|
= @client.agency.agency_name
|
||||||
|
.horizontal-line
|
||||||
|
%br
|
||||||
|
= 'Paid $25 for lock and helmet' if @client.will_pay
|
||||||
|
%br
|
||||||
|
Includes:
|
||||||
|
%br
|
||||||
|
= 'Helmet' if @client.helmet
|
||||||
|
%br
|
||||||
|
= 'Lock' if @client.lock
|
||||||
|
%br
|
||||||
|
%br
|
||||||
|
Date Received
|
||||||
|
%br
|
||||||
|
_______________
|
||||||
|
%br
|
||||||
|
Client Signature
|
||||||
|
%br
|
||||||
|
________________
|
||||||
|
%br
|
||||||
|
Recyclery Volunteer Initials
|
||||||
|
%br
|
||||||
|
___
|
||||||
|
%br
|
||||||
|
CLIENT COPY
|
||||||
|
|
||||||
|
.col-xs-6
|
||||||
|
.receipt
|
||||||
|
%h2
|
||||||
|
%strong= @client.bike.name
|
||||||
|
%br
|
||||||
|
= 'Log Number: ' + @client.bike.log_number.to_s
|
||||||
|
%br
|
||||||
|
.horizontal-line
|
||||||
|
.client-information
|
||||||
|
= @client.name
|
||||||
|
%br
|
||||||
|
= @client.agency.agency_name
|
||||||
|
.horizontal-line
|
||||||
|
%br
|
||||||
|
= 'Paid $25 for lock and helmet' if @client.will_pay
|
||||||
|
%br
|
||||||
|
Includes:
|
||||||
|
%br
|
||||||
|
= 'Helmet' if @client.helmet
|
||||||
|
%br
|
||||||
|
= 'Lock' if @client.lock
|
||||||
|
%br
|
||||||
|
%br
|
||||||
|
Date Received
|
||||||
|
%br
|
||||||
|
_______________
|
||||||
|
%br
|
||||||
|
Client Signature
|
||||||
|
%br
|
||||||
|
________________
|
||||||
|
%br
|
||||||
|
Recyclery Volunteer Initials
|
||||||
|
%br
|
||||||
|
___
|
||||||
|
%br
|
||||||
|
RECYCLERY COPY
|
||||||
|
|
||||||
|
@ -1,7 +1,4 @@
|
|||||||
Freecyclery Receipts
|
Freecyclery Receipts
|
||||||
Prints two quarter sheet receipts -- one for client, one for Recyclery. Includes:
|
|
||||||
Client Name, Agency, Bike Log Number (make and model too?), Helmet Needed?, Lock Needed?, Will Pay $25 upon receipt of lock and helmet?
|
|
||||||
Also blanks for Client Signature, Date Received, and Recyclery Volunteer Initials.
|
|
||||||
|
|
||||||
Reports
|
Reports
|
||||||
Number of bikes sold by year or month. (Bar graph for extra points!)
|
Number of bikes sold by year or month. (Bar graph for extra points!)
|
||||||
@ -10,6 +7,8 @@ Reports
|
|||||||
Average bike price for year.
|
Average bike price for year.
|
||||||
|
|
||||||
|
|
||||||
|
get receipt from client
|
||||||
|
style client receipts
|
||||||
assign a bike from the available freecyclery bikes page
|
assign a bike from the available freecyclery bikes page
|
||||||
mark as picked up from the ready for pickup page
|
mark as picked up from the ready for pickup page
|
||||||
validations around parameters that break site if incomplete
|
validations around parameters that break site if incomplete
|
||||||
|
Loading…
x
Reference in New Issue
Block a user