Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • Add a method to Shift like this:
Panel
Wiki Markup
Code Block

public void close() throws ValidationException {
  
validateForSave();
  
cashBox().resetBalance();
}

and in your component

unmigrated-wiki-markup
Panel
Code Block

try {
  
shift().close();
  
ec().saveChanges();
}
 
catch (ValidationException v) {
  
// do the right thing
}
 
catch (EOGeneralAdaptorException e) {
    // do the right thing
}
  • I had another one, but it has slipped my mind. (smile)

...