Skip to content

Commit

Permalink
Allow filtering report by order adjustment
Browse files Browse the repository at this point in the history
  • Loading branch information
smellsblue committed Oct 8, 2024
1 parent a53e4ee commit 30fa6ca
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/models/reports/inventory_adjustments.rb
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
module Reports
class InventoryAdjustments
FILTERABLE_REASONS = %w[reconciliation spoilage transfer transfer_internal transfer_external purchase donation
adjustment].freeze
adjustment order_adjustment].freeze

def self.reason_label(reason)
case reason
when "adjustment"
"Other"
when "order_adjustment"
"Order"
when "transfer"
"Legacy transfer"
when "transfer_internal"
Expand Down

0 comments on commit 30fa6ca

Please sign in to comment.