Class: SpreeSquare::LocationMapping

Inherits:
Object
  • Object
show all
Defined in:
app/models/spree_square/location_mapping.rb

Overview

Maps a Square Location 1:1 to a Spree::StockLocation. Restaurant branches map onto Spree's existing multi-warehouse StockLocation model — StockItem's per-location inventory tracking is exactly what "86'd at this branch but not that one" needs, for free.