Products must be filterable by n properties. Can we reuse what we already have?
The current POS.Product model is as simple as:
public struct POSProduct {
public let itemID: UUID
public let productID: Int64
public let name: String
public let price: String
We can add some dummy property that is also filterable in App.Product so we can start a filtering mechanism for the new logic/UI. For reference, these are currently filterable by: Stock status, product status, product type, and product category.
Stock status (any, in stock, out of stock) seems a good initial point since we'll need this to limit product quantities to be added to a cart in the dashboard.
Products must be filterable by n properties. Can we reuse what we already have?
The current
POS.Product
model is as simple as:We can add some dummy property that is also filterable in
App.Product
so we can start a filtering mechanism for the new logic/UI. For reference, these are currently filterable by: Stock status, product status, product type, and product category.Stock status
(any, in stock, out of stock) seems a good initial point since we'll need this to limit product quantities to be added to a cart in the dashboard.