@Override
public Object getValueAt(int row, int col) {//загрузка
String s = null;
try {
ExpenditureItemData item = items.get(row);
if (col == COL_EXPEN_TYPE) {
s = item.getType().toString();
} else if (col == COL_QUANTITY) {
String volume = String.format("%.2f", (item.getQuantity()));
System.out.println(volume);
while (volume.charAt(volume.length() - 1) == '0') {
volume = volume.substring(0, volume.length() - 1);
}
char ch = volume.charAt(volume.length() - 1);
if (ch == ',' || ch == '.') {
volume = volume.substring(0, volume.length() - 1);
}
return volume;
} else if (col == COL_METRIC) {
return item.getMetric();
} else {
assert false;
}
} catch (ClipsException ex) {