@Override public void saveAsExcel() { TableView<ItemPrice> itemTable = new ItemTable(this).getTable(); itemTable.setItems(item.list()); itemTable.setId(module + " List as of " + Util.formatDate(LocalDate.now())); new ExcelWriter( Arrays.asList(Arrays.asList(itemTable)), module, Util.dateToFileName(LocalDate.now())); }
@Override public void save() throws InvalidException { allowOnlyPricingUpdatesWhenSavingPreviouslyPostedItemElsePersistAll(); item.save(); }