mirror of
https://github.com/internetee/registry.git
synced 2025-07-20 17:55:55 +02:00
Improve invoice view
This commit is contained in:
parent
43e111add0
commit
6a47f38e80
14 changed files with 167 additions and 44 deletions
|
@ -4,9 +4,9 @@ class CreateInvoiceItems < ActiveRecord::Migration
|
|||
t.integer :invoice_id
|
||||
# t.string :product_code
|
||||
t.string :description, null: false
|
||||
t.string :item_unit
|
||||
t.integer :item_amount
|
||||
t.decimal :item_price
|
||||
t.string :unit
|
||||
t.integer :amount
|
||||
t.decimal :price
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
|
|
|
@ -209,9 +209,9 @@ ActiveRecord::Schema.define(version: 20150413140933) do
|
|||
create_table "invoice_items", force: :cascade do |t|
|
||||
t.integer "invoice_id"
|
||||
t.string "description", null: false
|
||||
t.string "item_unit"
|
||||
t.integer "item_amount"
|
||||
t.decimal "item_price"
|
||||
t.string "unit"
|
||||
t.integer "amount"
|
||||
t.decimal "price"
|
||||
t.datetime "created_at"
|
||||
t.datetime "updated_at"
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue