Use Pantry to track staples like oil and flour. DinDin uses what you mark in stock to separate ingredients you already have from what you need to buy.
Track stock and restocks
Add staples and mark them out of stock when you run out. You can shop for those items along with ingredients from planned meals.