Skip to content

Commit

Permalink
Merge branch 'informatici:develop' into OP-1304
Browse files Browse the repository at this point in the history
  • Loading branch information
ArnaudFofou authored Nov 22, 2024
2 parents 9fb1f94 + 1920be9 commit 5a2bff3
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
7 changes: 6 additions & 1 deletion src/main/java/org/isf/accounting/gui/PatientBillEdit.java
Original file line number Diff line number Diff line change
Expand Up @@ -845,11 +845,13 @@ private JButton getJButtonTrashPatient() {
jButtonTrashPatient.setPreferredSize(new Dimension(25, 25));
jButtonTrashPatient.setIcon(new ImageIcon("rsc/icons/remove_patient_button.png"));
jButtonTrashPatient.setToolTipText(MessageBundle.getMessage("angal.newbill.removethepatientassociatedwiththisbill.tooltip"));
if (thisBill.getBillPatient() == null) {
jButtonTrashPatient.setEnabled(false);
}
jButtonTrashPatient.addActionListener(actionEvent -> {
// BILL
thisBill.setBillPatient(null);
thisBill.setIsPatient(false);
thisBill.getBillPatient().setCode(0);
thisBill.setPatName(""); //$NON-NLS-1$
thisBill.setAdmission(null);
// INTERFACE
Expand Down Expand Up @@ -895,6 +897,9 @@ private void setJButtonPickPatient() {
jButtonPickPatient.setText(MessageBundle.getMessage("angal.newbill.changepatient.btn"));
jButtonPickPatient.setMnemonic(MessageBundle.getMnemonic("angal.newbill.changepatient.btn.key"));
jButtonPickPatient.setToolTipText(MessageBundle.getMessage("angal.newbill.changethepatientassociatedwiththisbill.tooltip"));
if (jButtonTrashPatient != null) {
jButtonTrashPatient.setEnabled(true);
}
}
}

Expand Down
4 changes: 2 additions & 2 deletions src/main/java/org/isf/medicalstockward/gui/WardPharmacy.java
Original file line number Diff line number Diff line change
Expand Up @@ -1461,8 +1461,8 @@ class DrugsModel extends DefaultTableModel {

public DrugsModel() {
try {
tableModel = movWardBrowserManager.getMedicalsWardTotalQuantity(wardSelected.getCode().charAt(0));
wardDrugs = movWardBrowserManager.getMedicalsWard(wardSelected.getCode().charAt(0), true);
tableModel = movWardBrowserManager.getMedicalsWardTotalQuantity(wardSelected.getCode());
wardDrugs = movWardBrowserManager.getMedicalsWard(wardSelected.getCode(), true);
} catch (OHServiceException e) {
OHServiceExceptionUtil.showMessages(e);
tableModel = new ArrayList<>();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ public WardPharmacyRectify(JFrame owner, Ward ward) {
super(owner, true);
selectedWard = ward;
try {
wardDrugs = movWardBrowserManager.getMedicalsWard(selectedWard.getCode().charAt(0), false);
wardDrugs = movWardBrowserManager.getMedicalsWard(selectedWard.getCode(), false);
} catch (OHServiceException e) {
OHServiceExceptionUtil.showMessages(e);
}
Expand All @@ -184,7 +184,7 @@ public WardPharmacyRectify(JFrame owner, Ward ward, Medical medical) {
super(owner, true);
selectedWard = ward;
try {
wardDrugs = movWardBrowserManager.getMedicalsWard(selectedWard.getCode().charAt(0), false);
wardDrugs = movWardBrowserManager.getMedicalsWard(selectedWard.getCode(), false);
} catch (OHServiceException e) {
OHServiceExceptionUtil.showMessages(e);
}
Expand Down

0 comments on commit 5a2bff3

Please sign in to comment.