// VMAX Store Manager — Receiving, Counts, Catalogue (functional bulk entry + correction/revert), People. (function () { const DS = window.VMAX365DesignSystem_0f78b2; const { Button, Badge, SegmentedControl, StockBadge } = DS; const { Icon, Sheet, Overline } = window.VMAXUI; const { Avatar, Field, TextInput, NumberInput, Select, Toggle, EmptyState, pushToast } = window.VMAXW; const { K, reasonCodes } = window.VMAXP; const { useVMAX, statusOf } = window.VMAXStore; const { Panel } = window.VMAXMGRUI; const qbtn = { width: 28, height: 28, borderRadius: 7, border: '1.5px solid var(--vmax-line)', background: 'var(--surface-card)', cursor: 'pointer', fontWeight: 700, color: 'var(--vmax-ink-soft)', display: 'grid', placeItems: 'center' }; // ============ Receiving (receive-and-note, not a PO match) ============ function Receiving({ mobile, who }) { const [s, a] = useVMAX(); const inv = s.ingredients; const name = (id) => (inv.find((x) => x.id === id) || {}).name; const [picked, setPicked] = React.useState([]); const [note, setNote] = React.useState(''); const [addId, setAddId] = React.useState(inv[0] && inv[0].id); const add = () => setPicked((p) => p.find((x) => x.id === addId) ? p : [...p, { id: addId, qty: 6 }]); const confirm = () => { a.receiveStock(picked, note, who); setPicked([]); setNote(''); pushToast('Received · added to back store'); }; return (
Back store}>

Enter what physically arrived from the warehouse — this isn't matched against an order. If something's off, note it.