1
0
mirror of https://github.com/fspc/bike-database.git synced 2025-02-23 01:23:24 -05:00

lk | improves client receipt format

This commit is contained in:
Louis Knapp 2016-12-18 10:16:56 -06:00
parent caf01518be
commit 109920f5ca
3 changed files with 71 additions and 67 deletions

View File

@ -1,6 +1,8 @@
.print-receipts, .freecyclery-receipt{ .print-receipts, .freecyclery-receipt{
h2 { h2 {
padding-left: 25px;
font-size: 18px; font-size: 18px;
font-weight: bold;
} }
.horizontal-line{ .horizontal-line{
width: 100%; width: 100%;
@ -10,6 +12,27 @@
page-break-inside: avoid; page-break-inside: avoid;
margin: 10px; margin: 10px;
border: 5px solid black; border: 5px solid black;
height: 400px; height: 425px;
}
.client-information {
padding: 5px;
margin-left: 25px;
}
.receipt-body {
font-size: 10px;
line-height: 120%;
margin-left: 5px;
p {
font-size: 10px;
border-bottom: 0;
padding-bottom: 0;
margin-bottom: 0;
}
} }
} }
.container.print-receipts {
margin-top: -50px;
width: 100%;
}

View File

@ -30,7 +30,7 @@ class Bike < ActiveRecord::Base
end end
def name def name
self.color + " " + self.brand + ' ' + self.model + " (" + self.log_number.to_s + ")" (self.color + " " + self.brand + ' ' + self.model + " (" + self.log_number.to_s + ")").titleize
end end
def client def client

View File

@ -1,78 +1,59 @@
.col-xs-6 .col-xs-6
.receipt .receipt
%h2 %h2= client.bike.name
%strong= client.bike.name
%br %br
.horizontal-line .horizontal-line
.client-information .client-information
= client.name %strong= "#{client.name}#{" - " + client.agency.name if client.agency}"
%br
= client.agency.name if client.agency
.horizontal-line .horizontal-line
%br .receipt-body
Includes: %p= "Includes Helmet" if client.helmet
%br %p= "Includes Lock" if client.lock
= 'Helmet' if client.helmet %p= "Owes $25" if client.will_pay
%br %br
= 'Lock' if client.lock %p Date ___________________
%br %br
%br %br
Date Received _______________________________________________
%br %br
_______________ Client Signature
%br %br
Client Signature %br
%br %br
%br ____________ Recyclery Initials
________________
%br
Recyclery Volunteer Initials
%br
%br
___
%br
CLIENT COPY
.col-xs-6 .col-xs-6
.receipt .receipt
%h2 %h2= client.bike.name
%strong= client.bike.name
%br %br
.horizontal-line .horizontal-line
.client-information .client-information
= client.name %strong= "#{client.name}#{" - " + client.agency.name if client.agency}"
%br
= client.agency.name if client.agency
.horizontal-line .horizontal-line
.row .receipt-body
.col-xs-6 %p= "Includes Helmet" if client.helmet
%br %p= "Includes Lock" if client.lock
= 'Will make 25$ payment for lock and helmet' if client.will_pay %p= "Owes $25" if client.will_pay
%br %br
Includes: %p Date ___________________
%br %br
= 'Helmet' if client.helmet %br
%br _______________________________________________
= 'Lock' if client.lock %br
%br Client Signature
%br %br
Date Received %br
%br ____________ Recyclery Initials
_______________ %br
%br %br
Client Signature %br
%br _______________________________________________
%br %br
________________ Contact Email
.col-xs-6 %br
.client-info-header CLIENT INFO %br
.client-email= "Contact Email: " + client.agency.email _________________________________ Contact Phone
.client-phone= "Contact Phone #: " + client.agency.phone %br
.client-photo-consent [ ] I grant consent to the Recyclery to use and publish photographs of me. %br
%br &#9634; Client grants The Recyclery Collective consent to use and publish photos.
Recyclery Volunteer Initials
%br
%br
___
%br
RECYCLERY COPY