27 lines
506 B
27 lines
506 B
module Forms |
|
module BulkUploadSales |
|
class CheckingFile |
|
include ActiveModel::Model |
|
include ActiveModel::Attributes |
|
include Rails.application.routes.url_helpers |
|
|
|
attribute :year, :integer |
|
|
|
def view_path |
|
"bulk_upload_sales_logs/forms/checking_file" |
|
end |
|
|
|
def back_path |
|
bulk_upload_sales_log_path(id: "start") |
|
end |
|
|
|
def year_combo |
|
"#{year}/#{year + 1 - 2000}" |
|
end |
|
|
|
def save! |
|
true |
|
end |
|
end |
|
end |
|
end
|
|
|