93143c28f2
see https://github.com/foodcoops/foodsoft/pull/907 for reference and original work by viehlieb Co-authored-by: viehlieb <pf@pragma-shift.net> fix PDF Pdf make explicit deposit in invoices work add ordergroupname to invoice file name mark bold sum for vat exempt foodcoops download multiple group order invoice as zip
13 lines
371 B
Ruby
13 lines
371 B
Ruby
class CreateGroupOrderInvoices < ActiveRecord::Migration[5.2]
|
|
def change
|
|
create_table :group_order_invoices do |t|
|
|
t.integer :group_order_id
|
|
t.bigint :invoice_number, unique: true, limit: 8
|
|
t.date :invoice_date
|
|
t.string :payment_method
|
|
|
|
t.timestamps
|
|
end
|
|
add_index :group_order_invoices, :group_order_id, unique: true
|
|
end
|
|
end
|