changing view for group_order_invoices
testing ui of goi restructuring
This commit is contained in:
parent
de6643722a
commit
90c5450525
52 changed files with 783 additions and 57 deletions
14
db/migrate/20231103110755_create_sepa_account_holders.rb
Normal file
14
db/migrate/20231103110755_create_sepa_account_holders.rb
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
class CreateSepaAccountHolders < ActiveRecord::Migration[7.0]
|
||||
def change
|
||||
create_table :sepa_account_holders do |t|
|
||||
t.references :user, null: false
|
||||
t.references :group, null: false
|
||||
|
||||
t.string :iban
|
||||
t.string :bic
|
||||
t.string :mandate_id
|
||||
t.date :mandate_date_of_signature
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
end
|
||||
5
db/migrate/20231109125021_add_bic_to_users.rb
Normal file
5
db/migrate/20231109125021_add_bic_to_users.rb
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
class AddBicToUsers < ActiveRecord::Migration[7.0]
|
||||
def change
|
||||
add_column :users, :bic, :string
|
||||
end
|
||||
end
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
class AddPayedToGroupOrderInvoices < ActiveRecord::Migration[7.0]
|
||||
def change
|
||||
add_column :group_order_invoices, :payed, :boolean, default: false
|
||||
add_column :group_order_invoices, :sepa_downloaded, :boolean, default: false
|
||||
add_column :group_order_invoices, :sepa_sequence_type, :string, default: 'RCUR'
|
||||
end
|
||||
end
|
||||
19
db/schema.rb
19
db/schema.rb
|
|
@ -10,7 +10,7 @@
|
|||
#
|
||||
# It's strongly recommended that you check this file into your version control system.
|
||||
|
||||
ActiveRecord::Schema[7.0].define(version: 2023_08_22_120005) do
|
||||
ActiveRecord::Schema[7.0].define(version: 2023_11_10_131415) do
|
||||
create_table "action_text_rich_texts", charset: "utf8mb4", force: :cascade do |t|
|
||||
t.string "name", null: false
|
||||
t.text "body", size: :long
|
||||
|
|
@ -199,6 +199,9 @@ ActiveRecord::Schema[7.0].define(version: 2023_08_22_120005) do
|
|||
t.string "payment_method"
|
||||
t.datetime "created_at", precision: nil, null: false
|
||||
t.datetime "updated_at", precision: nil, null: false
|
||||
t.boolean "payed", default: false
|
||||
t.boolean "sepa_downloaded", default: false
|
||||
t.string "sepa_sequence_type", default: "RCUR"
|
||||
t.index ["group_order_id"], name: "index_group_order_invoices_on_group_order_id", unique: true
|
||||
end
|
||||
|
||||
|
|
@ -475,6 +478,19 @@ ActiveRecord::Schema[7.0].define(version: 2023_08_22_120005) do
|
|||
t.index ["finished_at"], name: "index_printer_jobs_on_finished_at"
|
||||
end
|
||||
|
||||
create_table "sepa_account_holders", charset: "utf8mb4", force: :cascade do |t|
|
||||
t.bigint "user_id", null: false
|
||||
t.bigint "group_id", null: false
|
||||
t.string "iban"
|
||||
t.string "bic"
|
||||
t.string "mandate_id"
|
||||
t.date "mandate_date_of_signature"
|
||||
t.datetime "created_at", null: false
|
||||
t.datetime "updated_at", null: false
|
||||
t.index ["group_id"], name: "index_sepa_account_holders_on_group_id"
|
||||
t.index ["user_id"], name: "index_sepa_account_holders_on_user_id"
|
||||
end
|
||||
|
||||
create_table "settings", id: :integer, charset: "utf8mb4", force: :cascade do |t|
|
||||
t.string "var", null: false
|
||||
t.text "value"
|
||||
|
|
@ -566,6 +582,7 @@ ActiveRecord::Schema[7.0].define(version: 2023_08_22_120005) do
|
|||
t.datetime "last_activity", precision: nil
|
||||
t.datetime "deleted_at", precision: nil
|
||||
t.string "iban"
|
||||
t.string "bic"
|
||||
t.index ["email"], name: "index_users_on_email", unique: true
|
||||
t.index ["nick"], name: "index_users_on_nick", unique: true
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue