
            //todo : nu pare in regula
//            int status = scv.getStatus();
//            if(status == TipContract.ACTIV_VALUE && scv.isPlataPartiala()) {
//                Timestamp lastPayment = scv.getLastPayment();
//                if(scv.getNrZilePlataPartiala() * DateUtils.dayMillis + lastPayment.getTime() < System.currentTimeMillis() ) {
//                    //trebuie sa cerem bani
//                    status = TipContract.RENEW_VALUE;
//                }
//            }
//
//            if(scv.getStatus() == TipContract.SUSPENDAT_VALUE) {
//                recordIntrare = false;
//            }
//
//            if(recordIntrare) {
//                if( l.getTime() + VpConfig.getInstance().abonamenteCheckInMinutes * DateUtils.minutesMillis < System.currentTimeMillis() ) {
//                    ContracteLogic.getInstance().addIntrareClient(scv.getId());
//                    PontajLogic.getInstance().punchClientIn(scv.getIdClient(), scv.getId(), scv.getNumeContract(), true);
//                }
//            }



//    private void updateColor(int status) {
//        switch(status) {
//            case TipContract.ACTIV_VALUE: expirare.setForeground(Color.GREEN); break;
//            case TipContract.RENEW_VALUE: expirare.setForeground(Color.BLUE); break;
//            case TipContract.GRACED_VALUE: expirare.setForeground(Color.YELLOW); break;
//            case TipContract.SUSPENDAT_VALUE: expirare.setForeground(Color.RED); break;
//        }
//    }


            //todo culori si numar intrari
//            Color color = Color.GREEN;
//            if(scv.getNrSedinte() > 0) {
//                //abonament cu numar limitat de sedinte
//                 if(intrariInt < 0) {
//                    //perioada curenta este null
//                    intrari.setText("-");
//                    color = Color.RED;
//                    recordIntrare = false;
//                 } else {
//                     if(countIntrareCurenta)
//                        intrariInt ++;
//                     intrari.setText("" + intrariInt);
//                     if(intrariInt < scv.getNrSedinte() ) {
//                         color = Color.GREEN;
//
//                     } else if (intrariInt > scv.getNrSedinte()) {
//                         color = Color.RED;
//                         recordIntrare = false;
//
//                     } else if(intrariInt == scv.getNrSedinte() ) {
//                         color = Color.ORANGE;
//                     }
//                 }
//            } else {
//                intrari.setText("");
//                color = Color.GREEN;
//            }

Logger.logDebug(this, "Gasit client: " + scv.getNumeClient() + " status: " + scv.getNumeStatus());

            ContracteLogic.getInstance().updateContractStatus(scv.getId(), scv.getIdTipContract());

            if(contracte.size() > 1) {
                AbonamentChooser chooser = new AbonamentChooser(4, contracte);
                scv = (StatusContractView)chooser.getSelected();
                if(scv == null) {
                    return;
                }
            } else {