const baseCurrencySymbol = "{{ base_currency.symbol }}";   
    document.addEventListener('DOMContentLoaded', function() {
        // Initialize today's date
        const today = new Date().toISOString().split('T')[0];
        document.getElementById('date').value = today;
    });
    
    function prepareSettlement(userId, userName, amount, youArePaying) {
        // Pre-fill the settlement form
        if (youArePaying) {
            // You are paying them
            document.getElementById('payer_id').