- Added @point-of-sale/receipt-printer-encoder dependency to package.json. - Implemented useThermalPrinter hook for managing Bluetooth and USB printer connections. - Created encodeOrderReceipt function to format receipt data for printing. - Enhanced TransactionIndex component to include printer connection options and receipt printing functionality. - Added dropdown menu for selecting printer connection type (Bluetooth/USB) and printing receipt options (58mm/80mm). - Updated TransactionCardRow to include print receipt actions. - Defined TypeScript types for receipt printer encoder and web Bluetooth/USB APIs. - Configured Vite to optimize dependencies for receipt printer encoder. |
||
|---|---|---|
| .. | ||
| columns.tsx | ||
| create.tsx | ||
| edit.tsx | ||
| index.tsx | ||
| transaction-card.tsx | ||
| transaction-sub-row.tsx | ||
| transaction-summary-card.tsx | ||