Skip to content

Commit

Permalink
add new store
Browse files Browse the repository at this point in the history
  • Loading branch information
puppe1990 committed Nov 5, 2024
1 parent c5c4bde commit 4ed9068
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/models/bling_order_item.rb
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ class BlingOrderItem < ApplicationRecord
'204061683' => 'Mercado Livre',
'204796870' => 'Nuvem Shop',
'204824954' => 'Feira da Madrugada',
'205002864' => 'Magazine Luiza',
'0' => 'Sem Loja'
}.freeze

Expand Down Expand Up @@ -138,6 +139,10 @@ class Status
where(store_id: '204796870')
}

scope :magazine_luiza, lambda {
where(store_id: '205002864')
}

scope :date_range, ->(start_date, end_date) {
start_date = start_date.to_date.beginning_of_day if start_date.present?
end_date = end_date.to_date.end_of_day if end_date.present?
Expand Down

0 comments on commit 4ed9068

Please sign in to comment.