Example #1
0
 @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()));
 }
Example #2
0
 @Override
 public void save() throws InvalidException {
   allowOnlyPricingUpdatesWhenSavingPreviouslyPostedItemElsePersistAll();
   item.save();
 }