Scan Bar Code -> Insert Sales Orde Lines

haroldharold Member Posts: 8
edited 2003-01-22 in Navision Attain
I am trying to automate data entry to the Sales Order screen.
I have a Box on the Sales header area where the Serial # of an item gets scanned. I then insert a row into the Sales Lines Table. the Subform updates properly except that some information is not properly updated.

Invoice Discount and VAT do not get properly calculated. If I edit the Quantity on the sales line subform (manually) then the OnValidate trigger seems to recalculate everything properly.

I cannot get the Quantity (Sales Line table 37) to properly insert via code.

What am I missing. I think the OnValidate trigger is not properly executed?

Thanks,
Harold

Attain version 3.60

Comments

  • Luc_VanDyckLuc_VanDyck Member, Moderator, Administrator Posts: 3,633
    Try recSalesLine.VALIDATE(Quantity,decQty)
    No support using PM or e-mail - Please use this forum. BC TechDays 2024: 13 & 14 June 2024, Antwerp (Belgium)
  • haroldharold Member Posts: 8
    that did the trick..

    Thanks.
Sign In or Register to comment.