lib/messcada/services/scan_carton_label_or_pallet.rb
# A pallet number was scanned on a carton (carton=pallet)
A pallet number was scanned on a carton (carton=pallet)
A pallet number was scanned on a carton ( carton = pallet )
def pallet_scanned_for_carton
      @pallet_was_scanned = false
      @carton_with_pallet_label = true
      @id = repo.get_id(:carton_labels, pallet_number: formatted_number)
      @carton_id = repo.get_id(:cartons, carton_label_id: @id)
      @carton_equals_pallet_id = repo.get_id(:pallets, pallet_number: formatted_number)
    end
def pallet_scanned_for_carton @pallet_was_scanned = false @carton_with_pallet_label = true @id = repo . get_id ( :carton_labels , pallet_number : formatted_number ) @carton_id = repo . get_id ( :cartons , carton_label_id : @id ) @carton_equals_pallet_id = repo . get_id ( :pallets , pallet_number : formatted_number ) end
A pallet number was scanned on a carton (carton=pallet)
A pallet number was scanned on a carton ( carton = pallet )