TestOpenStatus Purchase Line BC14

SteveKnott
SteveKnott Member Posts: 50
Hi,

Looking for ideas to disable the OpenStatus check for Purchase docs that are released when the currency factor is changed.

Subscribing to the TestOpenStatus event fires during the "Line Discount" validation in "ValidateLineDiscountPercent" after curency factor change... but at that point, none of the amounts have changed yet.. so difficult to pick up if it was an edit of the Discount amount field or a currency. I dont see a way to get PurchaseHeader before update ? Any ideas ?

Steve

Answers

  • SanderDk
    SanderDk Member Posts: 507
    Have about to subscripe to: OnBeforeTestStatusOpen
    and change the option StatusCheckSuspended := true on PurchaseLine?
    For help, do not use PM, use forum instead, perhaps other people have the same question, or better answers.
  • SteveKnott
    SteveKnott Member Posts: 50
    Hi SanderDK,

    i am subscribed to that event.. but nothing has yet changed on the purchase line... I want to check that it was only the currency factor... not other fields ?