mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-16 22:25:30 +08:00
16 lines
465 B
Ruby
16 lines
465 B
Ruby
# frozen_string_literal: true
|
|
|
|
class RepositoryStockZipExportJob < ZipExportJob
|
|
private
|
|
|
|
# Overrride
|
|
def fill_content(dir, params)
|
|
data = RepositoryStockLedgerZipExport.to_csv(params[:repository_row_ids])
|
|
File.binwrite("#{dir}/export.csv", data)
|
|
end
|
|
|
|
def failed_notification_title
|
|
I18n.t('activejob.failure_notifiable_job.item_notification_title',
|
|
item: I18n.t('activejob.failure_notifiable_job.items.stock_consumption'))
|
|
end
|
|
end
|