Record the tax included in shipping.

This commit is contained in:
Rohan Mitchell
2015-03-02 15:17:14 +11:00
parent 9395f6c808
commit dfb855bd14
4 changed files with 68 additions and 7 deletions

View File

@@ -1,5 +1,5 @@
class AddIncludedTaxToAdjustments < ActiveRecord::Migration
def change
add_column :spree_adjustments, :included_tax, :decimal, precision: 10, scale: 2
add_column :spree_adjustments, :included_tax, :decimal, precision: 10, scale: 2, null: false, default: 0
end
end

View File

@@ -416,7 +416,7 @@ ActiveRecord::Schema.define(:version => 20150225232938) do
t.string "originator_type"
t.boolean "eligible", :default => true
t.string "adjustable_type"
t.decimal "included_tax", :precision => 10, :scale => 2
t.decimal "included_tax", :precision => 10, :scale => 2, :default => 0.0, :null => false
end
add_index "spree_adjustments", ["adjustable_id"], :name => "index_adjustments_on_order_id"