Загрузка данных


function updateConsumption() {
    const weightInput = document.getElementById('editWeight');
    const consumptionInput = document.getElementById('editConsumption');
    
    if (!weightInput || !consumptionInput) return;
    
    const weight = parseFloat(weightInput.value);
    
    if (!isNaN(weight) && weight > 0) {
        consumptionInput.value = (weight * 1.05).toFixed(2);
    } else {
        consumptionInput.value = '';
    }