mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-13 04:00:21 +00:00
Record the tax included in shipping.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user