Get stock by record ID

This commit is contained in:
SkyfallWasTaken 2024-07-06 15:59:52 +01:00
parent c8fe3dec66
commit 67d3f254c0

View file

@ -20,7 +20,7 @@ export const shopParts = async () => {
if (stock) {
stock -= (await ordersTable.read({
filterByFormula: `AND(
{Item} = "Test",
{Item} = "${record.id}",
OR(
{Status} = "Fulfilled",
{Status} = "Awaiting Fulfillment"