Skip to content

Commit

Permalink
Updated packing slip and invoice to not display company if not availa…
Browse files Browse the repository at this point in the history
…ble. Updated to newest database schema.
  • Loading branch information
Soleone committed Jun 5, 2009
1 parent 16be16d commit cb10ed4
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
4 changes: 3 additions & 1 deletion db/printing/invoice.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,9 @@

<div style="padding: 8px; border: 2px solid #ccc;">
{{ shipping_address.name }}<br/>
{{ shipping_address.company }}<br/>
{% if shipping_address.company %}
{{ shipping_address.company }}<br/>
{% endif %}
{{ shipping_address.street }}<br/>
{{ shipping_address.city }}
{{ shipping_address.province }}
Expand Down
4 changes: 3 additions & 1 deletion db/printing/packing_slip.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@
<div style="font-size: 120%; padding: 8px; border: 2px solid #ccc; margin: 20px">
<h3>Recipient</h3>
{{ shipping_address.name }}<br/>
{{ shipping_address.company }}<br/>
{% if shipping_address.company %}
{{ shipping_address.company }}<br/>
{% endif %}
{{ shipping_address.street }}<br/>
{{ shipping_address.city }}
{{ shipping_address.province }}
Expand Down
10 changes: 9 additions & 1 deletion db/schema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,15 @@
#
# It's strongly recommended to check this file into your version control system.

ActiveRecord::Schema.define(:version => 20090529202856) do
ActiveRecord::Schema.define(:version => 20090605160611) do

create_table "print_template_versions", :force => true do |t|
t.integer "print_template_id"
t.text "body"
t.datetime "created_at"
t.integer "version", :default => 0
t.string "snapshot"
end

create_table "print_templates", :force => true do |t|
t.integer "shop_id"
Expand Down

0 comments on commit cb10ed4

Please sign in to comment.