mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-12 03:50:22 +00:00
Merge pull request #9575 from apricot12/9487-Dimensions-Packing-Reports
Added HEIGHT, WEIGHT, WIDTH, DEPTH columns to packing reports by customer.
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
class AddDimensionsToLineItems < ActiveRecord::Migration[6.1]
|
||||
def change
|
||||
add_column :spree_line_items, :weight, :decimal, precision: 8, scale: 2
|
||||
add_column :spree_line_items, :height, :decimal, precision: 8, scale: 2
|
||||
add_column :spree_line_items, :width, :decimal, precision: 8, scale: 2
|
||||
add_column :spree_line_items, :depth, :decimal, precision: 8, scale: 2
|
||||
end
|
||||
end
|
||||
@@ -523,6 +523,10 @@ ActiveRecord::Schema.define(version: 2022_10_07_105052) do
|
||||
t.decimal "distribution_fee", precision: 10, scale: 2
|
||||
t.decimal "final_weight_volume", precision: 10, scale: 2
|
||||
t.integer "tax_category_id"
|
||||
t.decimal "weight", precision: 8, scale: 2
|
||||
t.decimal "height", precision: 8, scale: 2
|
||||
t.decimal "width", precision: 8, scale: 2
|
||||
t.decimal "depth", precision: 8, scale: 2
|
||||
t.index ["order_id"], name: "index_line_items_on_order_id"
|
||||
t.index ["variant_id"], name: "index_line_items_on_variant_id"
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user