@@ -212,13 +212,18 @@ model Product {
|
||||
productId String
|
||||
name String
|
||||
category String?
|
||||
// The sell price: what the terminals charge
|
||||
priceInCents Int
|
||||
// What the bar pays for one; null when not entered. Kept on the dashboard only, the terminals never get it
|
||||
buyPriceInCents Int?
|
||||
// Null when stock is not tracked for this product. Can be negative: a sale is never blocked.
|
||||
stock Int?
|
||||
// When the stock was last counted; line events that happened before it are already in the count
|
||||
countedAt DateTime?
|
||||
// Warn when the stock drops to this level
|
||||
lowStockThreshold Int?
|
||||
// How many the bar wants in stock; the dashboard shows what to order to get there. Not sent to the terminals
|
||||
desiredStock Int?
|
||||
// When it was created or last changed
|
||||
reportedAt DateTime
|
||||
// Deleted on the dashboard: hidden on the terminals, kept because tabs and history refer to it
|
||||
|
||||
Reference in New Issue
Block a user