Replies: 1 comment
-
Please log this as an issue if you need this addressed, not as a discussion item. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
For the sales line table in field 6 "No." exists already an event called OnValidateNoOnBeforeCheckPostingSetups to prevent checking Posting Setups. Necessary if you haved extended the Type field enum "Sales Line Type" .
Same should be implemented in the purchase line:
Now:
if Type <> Type::" " then begin
PostingSetupMgt.CheckGenPostingSetupPurchAccount("Gen. Bus. Posting Group", "Gen. Prod. Posting Group");
PostingSetupMgt.CheckVATPostingSetupPurchAccount("VAT Bus. Posting Group", "VAT Prod. Posting Group");
end;
After:
OnValidateNoOnBeforeCheckPostingSetups(Rec, IsHandled);
if not IsHandled then
if Type <> Type::" " then begin
PostingSetupMgt.CheckGenPostingSetupPurchAccount("Gen. Bus. Posting Group", "Gen. Prod. Posting Group");
PostingSetupMgt.CheckVATPostingSetupPurchAccount("VAT Bus. Posting Group", "VAT Prod. Posting Group");
end;
This would avoid several Messages that arise with Enum "Purchase Line Type" where Posting Groups are not needed.
Beta Was this translation helpful? Give feedback.
All reactions