Invoise bank update, Registrar migration

This commit is contained in:
Priit Tark 2015-04-14 18:31:50 +03:00
parent 6b555d8db7
commit 604505c21b
4 changed files with 23 additions and 2 deletions

View file

@ -42,3 +42,6 @@ hr
background: image_url('bg.jpg')
color: white !important
background-size: 100%
.semifooter
padding: 42px 0 80px 0

View file

@ -7,10 +7,11 @@
= link_to(t('back_to_billing'), registrar_invoices_path, class: 'btn btn-default')
%hr
.row
.col-md-6= render 'registrar/invoices/partials/banklinks'
.col-md-6= render 'registrar/invoices/partials/details'
.row
.col-md-6= render 'registrar/invoices/partials/seller'
.col-md-6= render 'registrar/invoices/partials/buyer'
.row
.col-md-12= render 'registrar/invoices/partials/items'
.row.semifooter
.col-md-12.text-right= render 'registrar/invoices/partials/banklinks'

View file

@ -0,0 +1,17 @@
class DataUpdate < ActiveRecord::Migration
def change
Registrar.where(
name: 'EIS',
reg_no: '90010019',
phone: '+372 727 1000',
country_code: 'EE',
vat_no: 'EE101286464',
email: 'info@internet.ee',
state: 'Harjumaa',
city: 'Tallinn',
street: 'Paldiski mnt 80',
zip: '10617',
url: 'www.internet.ee'
).first_or_create!
end
end

View file

@ -11,7 +11,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema.define(version: 20150414092249) do
ActiveRecord::Schema.define(version: 20150414151357) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"