Add Purchases Chart page — weekly table view of invoices by supplier
Backend endpoint /api/reports/purchases/weekly existed but had no frontend. Adds PurchasesCalendar page under Invoices > Purchases Chart: 7-day columns, one row per supplier, each cell lists invoice chips (number + total) linking to the invoice detail. Daily totals row in footer, prev/next week navigation. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
0d6ca9b979
commit
12aef0adb1
3 changed files with 340 additions and 1 deletions
|
|
@ -42,6 +42,7 @@ import MenuList from './components/MenuList'
|
|||
import MenuEditor from './components/MenuEditor'
|
||||
import BulkAllergens from './components/BulkAllergens'
|
||||
import PriceImpact from './components/PriceImpact'
|
||||
import PurchasesCalendar from './pages/PurchasesCalendar'
|
||||
|
||||
export default function App() {
|
||||
return (
|
||||
|
|
@ -59,6 +60,7 @@ export default function App() {
|
|||
<Route path="/upload" element={<Upload />} />
|
||||
<Route path="/invoices" element={<InvoiceList />} />
|
||||
<Route path="/invoice/:id" element={<Review />} />
|
||||
<Route path="/purchases-calendar" element={<PurchasesCalendar />} />
|
||||
<Route path="/disputes" element={<Disputes />} />
|
||||
<Route path="/search/invoices" element={<SearchInvoices />} />
|
||||
<Route path="/search/line-items" element={<SearchLineItems />} />
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue