Stocktake
Object
ExternalStocktake
Implements
List of interfaces this object implements
| Fields | Type | Description |
|---|---|---|
|
id |
The ID for the external stocktake |
|
|
outlet |
The Outlet that the stocktake was performed at |
|
|
user |
The user that created the stocktake |
|
|
zeroStock |
Boolean! |
Whether all stock was set to zero before the stocktake was applied |
|
overrideStock |
Boolean! |
If true, the stock in the stocktake overrides the stock on file, otherwise it adds to the stock on file |
|
status |
The current status of the stocktake |
|
|
timestamp |
The time the stocktake was imported into the system |
|
|
completed |
This is the stocktake that this completed external stocktake is converted into |
|
|
products |
The products imported into this stocktake |
ExternalStocktakeProductConnection
Object — ConnectionType of Product
Sortable Fields
Fields from Product that can be used to sort the connection items
- name
- createdAt
- updatedAt
| Arguments | Type | Description |
|---|---|---|
|
search |
String |
If supplied, searches for products that contain the search string in their name or barcode |
| Edge Fields | Type | Description |
|---|---|---|
|
barcode |
String! |
The barcode imported |
|
name |
String |
The imported name of the product |
|
cost |
Float |
The imported unit cost |
|
quantity |
Float! |
The quantity of products to import |
|
barcodeQuantity |
Float! |
The quantity of the barcode for the product |
|
tempProduct |
Boolean! |
Whether the product was imported as a temporary product |
Object
StocktakeApply
Object
StocktakeEvent
| Fields | Type | Description |
|---|---|---|
|
product |
The product that the event applies to |
|
|
type |
The type of the event |
|
|
count |
Float |
The current status for the stocktake |
|
user |
The user that created the event |
|
|
timestamp |
When the event occurred |
Object
StocktakeProduct
| Fields | Type | Description |
|---|---|---|
|
product |
The product data belongs too |
|
|
cost |
Float |
The cost of the product at the time of the stocktake |
|
caseQuantity |
Float |
The case quantity of the product at the time of the stocktake |
|
scanned |
Boolean |
Whether the product was scanned in the stocktake |
|
expectedCount |
Float |
The expected count of the product at the time of the stocktake |
|
expectedValue |
Float |
The expected cost value of the product |
|
actualCount |
Float |
The actual count of the product in the stocktake |
|
actualValue |
Float |
The actual cost value of the counted product |
Object
StocktakeStatistics
| Fields | Type | Description |
|---|---|---|
|
scans |
Float |
The count of all scan events in the stocktake |
|
products |
Float |
The count of all the unique products in the stocktake, will return zero if the stocktake hasn't been completed |
|
sales |
Float |
The count of all the sales that affected the stocktake |
|
firstEventTime |
The timestamp of the first stocktake event, returns null if the stocktake hasn't received any events |
|
|
users |
The Statistics of the users in the stocktake |
Object
StocktakeTotal
| Fields | Type | Description |
|---|---|---|
|
scannedExpectedCount |
Float |
The total expected count of the scanned products at the time of the stocktakes completion |
|
scannedExpectedValue |
Float |
The total expected cost value of the scanned products at the time of the stocktakes completion |
|
scannedActualCount |
Float |
The total actual count of the scanned products at the time of the stocktakes completion |
|
scannedActualValue |
Float |
The total actual cost value of the scanned products at the time of the stocktakes completion |
|
notScannedExpectedCount |
Float |
The total expected count of the not scanned products at the time of the stocktakes completion |
|
notScannedExpectedValue |
Float |
The total expected cost value of the not scanned products at the time of the stocktakes completion |
|
notScannedActualCount |
Float |
The total actual count of the not scanned products at the time of the stocktakes completion |
|
notScannedActualValue |
Float |
The total actual cost value of the not counted products at the time of the stocktakes completion |
|
allExpectedCount |
Float |
The total expected count of the all products at the time of the stocktakes completion |
|
allExpectedValue |
Float |
The total expected cost value of the all products at the time of the stocktakes completion |
|
allActualCount |
Float |
The total actual count of the all products at the time of the stocktakes completion |
|
allActualValue |
Float |
The total actual cost value of the all products at the time of the stocktakes completion |
Object
Stocktake
Implements
List of interfaces this object implements
| Fields | Type | Description |
|---|---|---|
|
id |
The ID of the stocktake |
|
|
name |
String! |
The name of the stocktake |
|
type |
The type of the stocktake, Determines what happens when the stocktake is applied. This will be defined when the stocktake is completed |
|
|
source |
The external stocktake that this stocktake is created from |
|
|
outlet |
The Outlet the stocktake is for |
|
|
status |
The current status for the stocktake |
|
|
displayExpected |
Boolean! |
Whether the expected quantity for products should be displayed (in the UI) |
|
applied |
Boolean! |
Whether the stocktake has been applied to the inventory yet |
|
events |
The events that occurred in the stocktake |
|
|
products |
The products at the end of the stocktake |
|
|
statistics |
The statistics of a completed stocktake |
|
|
users |
The users that have scanned anything in a "COMPLETED" stocktake |
|
|
categories |
The categories for the partial stocktake |
|
|
totals |
The totals for the completed stocktake |
|
|
completedBy |
The user that completed the stocktake |
|
|
createdAt |
The date and time that the stocktake was created |
|
|
completedAt |
The date and time that the stocktake was completed |
|
|
applications |
A list of all the times the stocktake has been applied to the store's stock file |
|
|
lastApplication |
The last time this stocktake was applied |
|
|
potentialVariances |
Any products that could have a potential variance that we're not able to automatically resolve |
StocktakeStocktakeEventConnection
Object — ConnectionType of StocktakeEvent
Sortable Fields
Fields from StocktakeEvent that can be used to sort the connection items
- timestamp
| Arguments | Type | Description |
|---|---|---|
|
eventsAfter |
This argument is used for preventing data duplication via pagination caused by the dynamic nature of this data |
|
|
product |
The id of the product to get the events for, this will filter the data |
|
|
user |
The id of the user to get the events for, this will filter the data |
StocktakeStocktakeProductConnection
Object — ConnectionType of StocktakeProduct
Sortable Fields
Fields from StocktakeProduct that can be used to sort the connection items
- product
- expected
- actual
- difference
| Arguments | Type | Description |
|---|---|---|
|
scanned |
||
|
search |
String |
The |
Object
StocktakeUserStatistics
| Fields | Type | Description |
|---|---|---|
|
user |
The user the statistics applies to |
|
|
scans |
Float |
The count of all the unique products in the stocktake |
|
products |
Float |
The count of all the sales that affected the stocktake |