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 21... Line 21...
21
import org.openconcerto.erp.core.common.element.NumerotationAutoSQLElement;
21
import org.openconcerto.erp.core.common.element.NumerotationAutoSQLElement;
22
import org.openconcerto.erp.core.common.ui.DeviseField;
22
import org.openconcerto.erp.core.common.ui.DeviseField;
23
import org.openconcerto.erp.core.common.ui.TotalPanel;
23
import org.openconcerto.erp.core.common.ui.TotalPanel;
24
import org.openconcerto.erp.core.customerrelationship.customer.ui.AddressChoiceUI;
24
import org.openconcerto.erp.core.customerrelationship.customer.ui.AddressChoiceUI;
25
import org.openconcerto.erp.core.customerrelationship.customer.ui.AdresseType;
25
import org.openconcerto.erp.core.customerrelationship.customer.ui.AdresseType;
-
 
26
import org.openconcerto.erp.core.customerrelationship.customer.ui.CategorieComptableChoiceUI;
26
import org.openconcerto.erp.core.finance.tax.model.TaxeCache;
27
import org.openconcerto.erp.core.finance.tax.model.TaxeCache;
27
import org.openconcerto.erp.core.sales.order.report.CommandeClientXmlSheet;
28
import org.openconcerto.erp.core.sales.order.report.CommandeClientXmlSheet;
28
import org.openconcerto.erp.core.sales.order.ui.CommandeClientItemTable;
29
import org.openconcerto.erp.core.sales.order.ui.CommandeClientItemTable;
29
import org.openconcerto.erp.core.sales.order.ui.EtatCommandeClient;
30
import org.openconcerto.erp.core.sales.order.ui.EtatCommandeClient;
30
import org.openconcerto.erp.core.sales.order.ui.EtatCommandeClientComboBox;
31
import org.openconcerto.erp.core.sales.order.ui.EtatCommandeClientComboBox;
Line 253... Line 254...
253
                            // foreignRow = rowValsD;
254
                            // foreignRow = rowValsD;
254
                            //
255
                            //
255
                            // }
256
                            // }
256
                            // table.setTarif(foreignRow, true);
257
                            // table.setTarif(foreignRow, true);
257
                        }
258
                        }
-
 
259
                        if (!isFilling()) {
-
 
260
                            table.setClient(row, true);
-
 
261
                        }
-
 
262
 
-
 
263
                    } else {
-
 
264
                        if (!isFilling()) {
-
 
265
                            table.setClient(null, true);
-
 
266
                        }
258
                    }
267
                    }
259
                }
268
                }
260
 
269
 
261
            }
270
            }
262
        });
271
        });
Line 391... Line 400...
391
                    }
400
                    }
392
                }
401
                }
393
            });
402
            });
394
        }
403
        }
395
 
404
 
-
 
405
        if (prefs.getBoolean(GestionCommercialeGlobalPreferencePanel.CATEGORIE_COMPTABLE_SPEC, false)) {
-
 
406
            // cat spe
-
 
407
            final CategorieComptableChoiceUI catUI = new CategorieComptableChoiceUI();
-
 
408
            catUI.addToUI(this, c);
-
 
409
            catUI.getCombo().addModelListener("wantedID", new PropertyChangeListener() {
-
 
410
 
-
 
411
                @Override
-
 
412
                public void propertyChange(PropertyChangeEvent evt) {
-
 
413
                    int wantedID = catUI.getCombo().getWantedID();
-
 
414
                    if (wantedID != SQLRow.NONEXISTANT_ID && wantedID >= SQLRow.MIN_VALID_ID) {
-
 
415
                        table.setRowCatComptable(catUI.getCombo().getElement().getTable().getRow(wantedID));
-
 
416
                    } else {
-
 
417
                        table.setRowCatComptable(null);
-
 
418
                    }
-
 
419
                }
-
 
420
            });
-
 
421
        }
-
 
422
 
396
        if (prefs.getBoolean(GestionCommercialeGlobalPreferencePanel.ORDER_PACKAGING_MANAGEMENT, true)) {
423
        if (prefs.getBoolean(GestionCommercialeGlobalPreferencePanel.ORDER_PACKAGING_MANAGEMENT, true)) {
397
            // Emballage
424
            // Emballage
398
            c.gridy++;
425
            c.gridy++;
399
            c.gridx = 0;
426
            c.gridx = 0;
400
            c.weightx = 0;
427
            c.weightx = 0;