LS Retail POS terminal question

EugeneEugene Member Posts: 309
i have a very specific question about EPOS Main form (navision form object) of LS Retail
EPOS Main form is the main form representing POS terminal interface.
What puzzles me is how much code is put on the form. And what is even more troubling is the number of COMMIT statements there.

One particular that causes problems for me is in the function
WriteMgrStatus()
//WriteMgrStatus
IF MgrKey AND (Rec."Manager Key" = "Manager Key"::Off) THEN BEGIN
  Rec."Manager Key" := "Manager Key"::On;
//LS4.1-56  IF Rec."Manager ID" <> '' THEN
  IF ManagerRec.ID <> '' THEN
    Rec."Manager ID" := ManagerRec.ID;
  MODIFY;
END;
COMMIT;

this commit splits a transaction that i need to be executed as single transaction and not as two separate transactions.

Even if the commit is necessary why is it not above the END ?

Answers

  • ara3nara3n Member Posts: 9,256
    Asking specific question like this on what the developer was thinking that wrote that code, will only get assumptions.
    Yes the code on the form is ugly.
    I would comment it out and see if you get any runmodal or if the field gets populated and test it out.
    Ahmed Rashed Amini
    Independent Consultant/Developer


    blog: https://dynamicsuser.net/nav/b/ara3n
  • EugeneEugene Member Posts: 309
    oops, i haven't thought about possible runmodal issues, thanks for the tip ;)
Sign In or Register to comment.