Components/Cash Drawer

Cash Drawer

Counter for each banknote/coin denomination with auto-totalled sum. Compare against an expected total to highlight surplus or shortage.


Conferência de caixa

11 denominações
  • R$ 100,00
    R$ 300,00
  • R$ 50,00
    R$ 250,00
  • R$ 20,00
    R$ 160,00
  • R$ 10,00
    R$ 40,00
  • R$ 5,00
    R$ 30,00
  • R$ 2,00
    R$ 24,00
  • R$ 1,00
    R$ 7,00
  • R$ 0,50
    R$ 2,00
  • R$ 0,25
    -
  • R$ 0,10
    R$ 0,90
  • R$ 0,05
    R$ 0,25
Total contadoR$ 814,15
Sobra de R$ 1,75 sobre o esperado (R$ 812,40)

Installation

npx @ajax-ui/cli add cash-drawer

Props

  • defaultDenominations - list of { value, count, label? }. Omitted defaults to the standard BR set (R$200 → R$0.05).
  • onChange(next, total) - fires on every counter tick.
  • expected - when set, the variance vs counted total is highlighted at the bottom.
  • currency "BRL" · locale "pt-BR".