For VAT-registered market stalls, craft fairs and farm shops in the UK and EU. Type the cart below and you get the exact 32-column receipt the Arduino Mega sketches print on a 58 mm thermal printer. VAT is worked out per rate in whole pence, and the page tells you whether a simplified invoice is still allowed.
Why not a free tutorial? On AVR boards, double is a 32-bit float. Add 0.10 a thousand times and (long)(total*100) gives 9999 pence, not 10000. Tutorials also restart the invoice counter at every reboot. Limits: UK VAT Regulations 1995 reg 16A (£250 incl VAT); EU Directive 2006/112/EC art 220a (100 euros). Above the limit, a full invoice needs a sequential number and the customer's name and address.