feat(manager): customers, throwaways, stock and notes on v2 (platform-v2 step 6.13b)
- CRM -> Customers: search ignoring case and Greek accents (and part of the phone), visits / spent / last visit, the card (contact, notes, open tab, every visit with what was on a tab), new/edit/remove - Inventory -> Throwaways: log (product, quantity with a comma, reason, note) with its cost, today's list (delete today only), a period's totals by reason and product, every entry; Inventory -> Stock: an honest 'not available yet' - Notes: notes (pinned first, edit in place) and to-dos (urgent first, done folded away, who did it kept) - backend: crm.manage / inventory.manage / notes.use (the customer search also with the dashboard key, for orders); spending counted by services/sales.py (refunds off, tab lines in); null clears a field; names/notes not blank, priorities checked; waste ?date_from=&date_to= venue dates; the Greek reason labels left the API; live customers.changed / waste.changed / notes.changed - the overview's notes card needs notes.use and refreshes live - tests: test_customers_waste_notes.py (4), crm.test.mjs (3), e2e manager.mjs (customers, throwaways, notes, stock, Greek) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -42,7 +42,7 @@ export const NAV = [
|
||||
group: 'crm', icon: BookUser, label: 'nav.crm',
|
||||
children: [
|
||||
{ to: '/crm/contacts', icon: BookUser, label: 'nav.contacts', module: 'expenses', perm: 'expenses.manage' },
|
||||
{ to: '/crm/customers', icon: Users, label: 'nav.customers', module: 'crm', perm: DASH },
|
||||
{ to: '/crm/customers', icon: Users, label: 'nav.customers', module: 'crm', perm: 'crm.manage' },
|
||||
],
|
||||
},
|
||||
{
|
||||
@@ -70,14 +70,14 @@ export const NAV = [
|
||||
{ to: '/management/schedule', icon: CalendarDays, label: 'nav.schedule', module: 'staff_planning', perm: 'core.staff.manage' },
|
||||
{ to: '/management/prep-zones', icon: CookingPot, label: 'nav.prepZones', module: 'catalog', perm: 'catalog.menu.manage' },
|
||||
{ to: '/management/pricing', icon: Percent, label: 'nav.pricing', module: 'pricing', perm: 'pricing.manage' },
|
||||
{ to: '/notes', icon: StickyNote, label: 'nav.notes', module: 'notes', perm: DASH },
|
||||
{ to: '/notes', icon: StickyNote, label: 'nav.notes', module: 'notes', perm: 'notes.use' },
|
||||
],
|
||||
},
|
||||
{
|
||||
group: 'inventory', icon: Boxes, label: 'nav.inventory',
|
||||
children: [
|
||||
{ to: '/inventory/throwaways', icon: Trash2, label: 'nav.waste', module: 'inventory', perm: DASH },
|
||||
{ to: '/inventory/stock', icon: Boxes, label: 'nav.stock', module: 'inventory', perm: DASH, placeholder: true },
|
||||
{ to: '/inventory/throwaways', icon: Trash2, label: 'nav.waste', module: 'inventory', perm: 'inventory.manage' },
|
||||
{ to: '/inventory/stock', icon: Boxes, label: 'nav.stock', module: 'inventory', perm: 'inventory.manage', placeholder: true },
|
||||
],
|
||||
},
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user