scinote-web/app/views/repository_rows/simple_view_index.json.jbuilder

11 lines
349 B
Plaintext
Raw Normal View History

2020-05-12 22:26:44 +08:00
# frozen_string_literal: true
json.draw @draw
json.data do
json.array! prepare_simple_view_row_columns(
@repository_rows, @repository, @my_module, { include_stock_consumption: @repository.has_stock_management? }
)
2020-05-12 22:26:44 +08:00
end
json.recordsFiltered @repository_rows.first ? @repository_rows.first.filtered_count : 0
json.recordsTotal @all_rows_count