ALAppExtensions icon indicating copy to clipboard operation
ALAppExtensions copied to clipboard

Report 402: Purchase Document - Test ~ direct posting check for system created entry

Open neverbeam opened this issue 4 years ago • 5 comments

There is a difference in the check on direct posting between the validation of the No. field on the purchase line and the function "CheckPurchLine" in the report 402 Purchase Document - Test.

For the purchase line: In case the document type = "G/L Account" and when i validate the No. field on the purchase line with a GL Account. The direct posting is only checked in case the Purchase lines is not a System-Created Entry.

local procedure CopyFromGLAccount()
begin
    GLAcc.Get("No.");
    GLAcc.CheckGLAcc;
    if not "System-Created Entry" then
        GLAcc.TestField("Direct Posting", true);

However in the report Purchase Document - Test in the function "CheckPurchLine" the direct posting is always checked no matter if it is a system-created entry or not.

    with PurchaseLine do
        case Type of
            Type::"G/L Account":
                begin
                    if ("No." = '') and (Amount = 0) then
                        exit;

                    if "No." <> '' then
                        if GLAcc.Get("No.") then begin
                            if GLAcc.Blocked then
                                AddError(xxx)										
                        ****if not GLAcc."Direct Posting" and ("Line No." <= OrigMaxLineNo) then****
                                  AddError(
                                  StrSubstNo(
                                    MustBeForErr,
                                    GLAcc.FieldCaption("Direct Posting"), true, GLAcc.TableCaption, "No."));

It would make sense that during the checking of the purchase line, direct posting is only checked if the entry is not a "System created Entry". We would like to request to change the check in the report 402 to:

   if not GLAcc."Direct Posting" and (not "System-Created Entry") and ("Line No." <= OrigMaxLineNo) then

neverbeam avatar May 10 '22 10:05 neverbeam

Do you want use to make an event request instead on this check?

neverbeam avatar May 20 '22 08:05 neverbeam

Hello. Is there any update on this issue?

alinat2022 avatar Sep 06 '22 16:09 alinat2022

@AlexanderYakunin Can we get a reply on this issue? it is alreayd open from may.

neverbeam avatar Oct 04 '22 09:10 neverbeam

We currently have no capacity to process requests not related to extensibility

AlexanderYakunin avatar Oct 04 '22 09:10 AlexanderYakunin

Hi! Please take a minute to read the guidelines for this repository https://github.com/microsoft/AL and our collection of frequently asked questions https://github.com/Microsoft/AL/wiki/frequently-Asked-Questions . This repository is only for extensibility requests for Dynamics 365 Business Central. We suggest that you open a support case or file a bug to ensure that all Business Central users benefit from your catch as soon as possible: • On premises - https://support.microsoft.com/en-us/supportforbusiness/productselection?sapId=93d37907-ad94-d591-22e9-593cfa09dd3f • On line – contact your partner, or if you are a partner open a support incident through Partner Center - https://partner.microsoft.com/en-us/pcv/dashboard/overview

AlexanderYakunin avatar Oct 07 '22 05:10 AlexanderYakunin