// receipt.js - Handles QR code generation and print layout for receipts
function generateReceiptQR(data) {
    if (typeof QRious === 'undefined') {
        console.error('QRious library not loaded');
        return;
    }
    
    new QRious({
        element: document.getElementById('receiptQR'),
        value: data,
        size: 100,
        level: 'H'
    });
}

function printReceipt() {
    window.print();
}
