@Override
        public void actionPerformed(ActionEvent ev) {
            if (ev.getSource() == btnAccept) {
                int alarmId = parent.getSelectedAlarmId();
                int carNr = parent.getselectedCarNr();
                ArrayList<Usage> usagesToUpdate = new ArrayList<>();
                for(ViewObject e: voeus){
                    EquipmentUsage eu = (EquipmentUsage) e.getViewObjectBE();
                    Usage use = null;
                    for(Usage u: usages){
                        if(eu.getEquipment().getId() == u.getEquipmentId()) {
                            use = u;
                            if(u.getAmount() != eu.getUsage().getAmount()){
                                use.setAmount(eu.getUsage().getAmount());
                                usagesToUpdate.add(use);
                            }
                        }
                    }
                    if(use == null && eu.getUsage().getAmount() != 0) {
                        use = new Usage(alarmId, carNr, eu.getEquipment().getId(), eu.getUsage().getAmount());
                        usages.add(use);
                        usagesToUpdate.add(use);
                    }
                }
                voes.setEquipmentHasData(!usages.isEmpty());
                parent.completeEquipmentUsage(usagesToUpdate); 
            } else if (ev.getSource() == btnDecline) {
                setAmountForUsages(usages);
                parent.goToApprovePanel();
            }
        }