pantry-track/sql/updateItemLocation.sql
2025-02-08 12:00:50 -06:00

4 lines
155 B
SQL

UPDATE %%site_name%%_item_locations
SET cost_layers = array_append(cost_layers, %s), quantity_on_hand = %s
WHERE location_id=%s AND part_id=%s
RETURNING *;