Class: Lab::LabelsController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- ApplicationController
- Lab::LabelsController
- Defined in:
- app/controllers/lab/labels_controller.rb
Instance Method Summary collapse
Methods inherited from ApplicationController
Instance Method Details
#print_order_label ⇒ Object
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 |