v0.6.1 — Pantry: categories, price tracking, and autocomplete
This commit is contained in:
@@ -12,6 +12,7 @@ export default async function PantryPage() {
|
||||
select: {
|
||||
id: true, name: true, description: true, quantity: true, unit: true,
|
||||
storedAt: true, bestBefore: true, source: true, plantId: true, notes: true,
|
||||
pantryCategory: true, pantrySubcategory: true, pricePaid: true, priceUnit: true,
|
||||
location: { select: { id: true, name: true } },
|
||||
plant: { select: { id: true, commonName: true, variety: true } },
|
||||
},
|
||||
@@ -31,6 +32,10 @@ export default async function PantryPage() {
|
||||
bestBefore: i.bestBefore,
|
||||
source: i.source,
|
||||
notes: i.notes,
|
||||
pantryCategory: i.pantryCategory,
|
||||
pantrySubcategory: i.pantrySubcategory,
|
||||
pricePaid: i.pricePaid != null ? Number(i.pricePaid) : null,
|
||||
priceUnit: i.priceUnit,
|
||||
locationId: i.location?.id ?? null,
|
||||
locationName: i.location?.name ?? null,
|
||||
plantId: i.plant?.id ?? null,
|
||||
|
||||
Reference in New Issue
Block a user