Class: Lab::LabelsController

Inherits:
ApplicationController show all
Defined in:
app/controllers/lab/labels_controller.rb

Instance Method Summary collapse

Methods inherited from ApplicationController

#permit_parameters

Instance Method Details



7
8
9
10
11
12
13
14
15
# File 'app/controllers/lab/labels_controller.rb', line 7

def print_order_label
  order_id = params.require(:order_id)
  print_copies = params[:number_of_copies].to_i if params[:number_of_copies].present?
  render_zpl(LabellingService::OrderLabel.new(order_id).print(
      params[:use_small_specimen_label] == 'true', 
      print_copies        
    )
  )
end