Advertisement
Guest User

Untitled

a guest
Sep 16th, 2019
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. private boolean isGoodCustomer() {
  2. boolean doRecalc = false;
  3. boolean retCode;
  4. // set input empty to get rid of the suggestionProvider popup
  5. final SessionFX suggSession = SessionFX.getInstance();
  6. suggSession.getShopListCompletionBinding().setUserInput("");
  7. final double cstEntered = Double.parseDouble(setCustNum(cusNum, storeNum));
  8. if (CompareDoubles.isEqual(cstEntered, ZeroValues.ZERODOUBLE)) {
  9. return false;
  10. } else {
  11. if (checkRecalc(cstEntered)) {
  12. invSession.setSkipPartNoLostFocusEvents(true);
  13. Recalculate.doRecalculate();
  14. ItemClear.clear(true);
  15. invSession.setSkipPartNoLostFocusEvents(false);
  16. }
  17. return checkIfGoodCust(cstEntered);
  18. }
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement