OpenConcerto

Dépôt officiel du code source de l'ERP OpenConcerto
sonarqube

svn://code.openconcerto.org/openconcerto

Rev

Rev 174 | Rev 182 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 174 Rev 180
Line 434... Line 434...
434
                        if (wantedID != SQLRow.NONEXISTANT_ID && wantedID >= SQLRow.MIN_VALID_ID) {
434
                        if (wantedID != SQLRow.NONEXISTANT_ID && wantedID >= SQLRow.MIN_VALID_ID) {
435
 
435
 
436
                            final SQLRow rowClient = getTable().getForeignTable("ID_CLIENT").getRow(wantedID);
436
                            final SQLRow rowClient = getTable().getForeignTable("ID_CLIENT").getRow(wantedID);
437
                            int idClient = rowClient.getID();
437
                            int idClient = rowClient.getID();
438
                            comboContact.getRequest().setWhere(new Where(contactElement.getTable().getField("ID_CLIENT"), "=", idClient));
438
                            comboContact.getRequest().setWhere(new Where(contactElement.getTable().getField("ID_CLIENT"), "=", idClient));
439
                            if (!isFilling()) {
-
 
-
 
439
 
440
                                table.setClient(rowClient, true);
440
                            table.setClient(rowClient, !isFilling());
441
                            }
-
 
442
 
441
 
443
                        } else {
442
                        } else {
444
                            comboContact.getRequest().setWhere(Where.FALSE);
443
                            comboContact.getRequest().setWhere(Where.FALSE);
445
                            if (!isFilling()) {
444
                            if (!isFilling()) {
446
                                table.setClient(null, true);
445
                                table.setClient(null, true);