Skip to content

Commit

Permalink
Change columns headers
Browse files Browse the repository at this point in the history
  • Loading branch information
mwithi committed Dec 20, 2024
1 parent 590650f commit d8b04ad
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions bundle/language_en.properties
Original file line number Diff line number Diff line change
Expand Up @@ -749,8 +749,8 @@ angal.inventory.status.done.txt
angal.inventory.status.validated.txt = Validated
angal.inventory.specificproduct.txt = Specific product
angal.inventoryrow.theoreticqty.col = Theoretic Qty
angal.inventory.totalprice = Total price
angal.inventoryrow.unitprice.col = Unit price
angal.inventoryrow.totalcost.col = Total cost
angal.inventoryrow.unitcost.col = Unit cost
angal.inventory.pleasevalidateinventoryagainsbeforeconfirmation.msg = Please validate this inventory again before confirmation.
angal.invetory.tablehasbeenupdated.msg = Table has been updated.
angal.inventory.update.error.msg = Inventory not updated.
Expand Down
10 changes: 5 additions & 5 deletions src/main/java/org/isf/medicalinventory/gui/InventoryEdit.java
Original file line number Diff line number Diff line change
Expand Up @@ -200,12 +200,12 @@ private void fireInventoryUpdated() {
MessageBundle.getMessage("angal.medicalstock.duedate.col").toUpperCase(),
MessageBundle.getMessage("angal.inventoryrow.theoreticqty.col").toUpperCase(),
MessageBundle.getMessage("angal.inventoryrow.realqty.col").toUpperCase(),
MessageBundle.getMessage("angal.inventoryrow.unitprice.col").toUpperCase(),
MessageBundle.getMessage("angal.inventory.totalprice").toUpperCase() };
MessageBundle.getMessage("angal.inventoryrow.unitcost.col").toUpperCase(),
MessageBundle.getMessage("angal.inventoryrow.totalcost.col").toUpperCase() };
private int[] pColumwidth = { 50, 50, 200, 100, 100, 100, 100, 80, 80, 80 };
private boolean[] columnEditable = { false, false, false, false, false, false, false, true, false, false };
private boolean[] columnEditableView = { false, false, false, false, false, false, false, false, false, false };
private boolean[] pColumnVisible = { false, true, true, true, !GeneralData.AUTOMATICLOT_IN, true, true, true, GeneralData.LOTWITHCOST,
private boolean[] columnVisible = { false, true, true, true, !GeneralData.AUTOMATICLOT_IN, true, true, true, GeneralData.LOTWITHCOST,
GeneralData.LOTWITHCOST };
private boolean[] columnCentered = { false, false, false, true, true, true, true, true, true, true };
private boolean[] columnDecimalNumber = { false, false, false, false, false, false, false, false, true, true };
Expand Down Expand Up @@ -1126,9 +1126,9 @@ private JTable getJTableInventoryRow() throws OHServiceException {
model = new InventoryRowModel();
jTableInventoryRow.setModel(model);
jTableInventoryRow.setAutoCreateColumnsFromModel(false);
for (int i = 0; i < pColumnVisible.length; i++) {
for (int i = 0; i < columnVisible.length; i++) {
jTableInventoryRow.getColumnModel().getColumn(i).setPreferredWidth(pColumwidth[i]);
if (!pColumnVisible[i]) {
if (!columnVisible[i]) {
jTableInventoryRow.getColumnModel().getColumn(i).setMinWidth(0);
jTableInventoryRow.getColumnModel().getColumn(i).setMaxWidth(0);
jTableInventoryRow.getColumnModel().getColumn(i).setPreferredWidth(0);
Expand Down

0 comments on commit d8b04ad

Please sign in to comment.