Supplier adding and arranging tables
This commit is contained in:
@@ -132,6 +132,7 @@ module Suppliers
|
||||
table = Table.new(number: table_number)
|
||||
table.supplier = current_supplier
|
||||
table.section = @section
|
||||
table.save
|
||||
end
|
||||
@section.arrange_tables_in_grid
|
||||
table_json = ActiveModel::ArraySerializer.new(@section.tables, each_serializer: SupplierTableSerializer, root: false).as_json
|
||||
|
||||
Reference in New Issue
Block a user