OpenConcerto

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

svn://code.openconcerto.org/openconcerto

Rev

Rev 156 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 156 Rev 174
Line 25... Line 25...
25
import org.openconcerto.erp.core.common.ui.DeviseField;
25
import org.openconcerto.erp.core.common.ui.DeviseField;
26
import org.openconcerto.erp.core.common.ui.PanelFrame;
26
import org.openconcerto.erp.core.common.ui.PanelFrame;
27
import org.openconcerto.erp.core.common.ui.TotalPanel;
27
import org.openconcerto.erp.core.common.ui.TotalPanel;
28
import org.openconcerto.erp.core.customerrelationship.customer.ui.AddressChoiceUI;
28
import org.openconcerto.erp.core.customerrelationship.customer.ui.AddressChoiceUI;
29
import org.openconcerto.erp.core.customerrelationship.customer.ui.AdresseType;
29
import org.openconcerto.erp.core.customerrelationship.customer.ui.AdresseType;
-
 
30
import org.openconcerto.erp.core.customerrelationship.customer.ui.CategorieComptableChoiceUI;
30
import org.openconcerto.erp.core.finance.accounting.element.ComptePCESQLElement;
31
import org.openconcerto.erp.core.finance.accounting.element.ComptePCESQLElement;
31
import org.openconcerto.erp.core.finance.accounting.element.EcritureSQLElement;
32
import org.openconcerto.erp.core.finance.accounting.element.EcritureSQLElement;
32
import org.openconcerto.erp.core.finance.payment.component.ModeDeReglementSQLComponent;
33
import org.openconcerto.erp.core.finance.payment.component.ModeDeReglementSQLComponent;
33
import org.openconcerto.erp.core.sales.credit.ui.AvoirItemTable;
34
import org.openconcerto.erp.core.sales.credit.ui.AvoirItemTable;
34
import org.openconcerto.erp.core.supplychain.stock.element.StockItemsUpdater;
35
import org.openconcerto.erp.core.supplychain.stock.element.StockItemsUpdater;
Line 191... Line 192...
191
                        // true);
192
                        // true);
192
                    } else {
193
                    } else {
193
                        boxTarif.setValue(foreignRow.getID());
194
                        boxTarif.setValue(foreignRow.getID());
194
                    }
195
                    }
195
                }
196
                }
-
 
197
                if (!isFilling()) {
-
 
198
                    AvoirClientSQLComponent.this.table.setClient(row, true);
-
 
199
                }
196
 
200
 
197
            } else {
201
            } else {
198
                table.setRowCatComptable(null);
202
                table.setRowCatComptable(null);
199
                selectContact.getRequest().setWhere(Where.FALSE);
203
                selectContact.getRequest().setWhere(Where.FALSE);
200
            }
204
            }
Line 421... Line 425...
421
                            addressUI.getComboAdrL().getRequest().setWhere(Where.FALSE);
425
                            addressUI.getComboAdrL().getRequest().setWhere(Where.FALSE);
422
                        }
426
                        }
423
                    }
427
                    }
424
                });
428
                });
425
            }
429
            }
-
 
430
            if (prefs.getBoolean(GestionCommercialeGlobalPreferencePanel.CATEGORIE_COMPTABLE_SPEC, false)) {
-
 
431
                // cat spe
-
 
432
                final CategorieComptableChoiceUI catUI = new CategorieComptableChoiceUI();
-
 
433
                catUI.addToUI(this, c);
-
 
434
                catUI.getCombo().addModelListener("wantedID", new PropertyChangeListener() {
-
 
435
 
-
 
436
                    @Override
-
 
437
                    public void propertyChange(PropertyChangeEvent evt) {
-
 
438
                        int wantedID = catUI.getCombo().getWantedID();
-
 
439
                        if (wantedID != SQLRow.NONEXISTANT_ID && wantedID >= SQLRow.MIN_VALID_ID) {
-
 
440
                            table.setRowCatComptable(catUI.getCombo().getElement().getTable().getRow(wantedID));
-
 
441
                        } else {
-
 
442
                            table.setRowCatComptable(null);
-
 
443
                        }
-
 
444
                    }
-
 
445
                });
-
 
446
 
-
 
447
            }
426
 
448
 
427
        final ComptaPropsConfiguration comptaPropsConfiguration = ((ComptaPropsConfiguration) Configuration.getInstance());
449
        final ComptaPropsConfiguration comptaPropsConfiguration = ((ComptaPropsConfiguration) Configuration.getInstance());
428
 
450
 
429
        // Contact
451
        // Contact
430
        c.gridx = 0;
452
        c.gridx = 0;