diff --git a/app/models/booking.rb b/app/models/booking.rb
index <HASH>..<HASH> 100644
--- a/app/models/booking.rb
+++ b/app/models/booking.rb
@@ -77,6 +77,9 @@ class Booking < ActiveRecord::Base
     end
   }
 
+  # Scope for code filter
+  scope :by_code, -> (code) { where(code: code) }
+
   # Scope for date filter
   #
   # @param from [Date]
feat(booking): allow filtering by code

Looking up a booking for a receipt code is a common tasks.

This patch adds Booking.by_code scope.