web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Pro forma packing slip

(0) ShareShare
ReportReport
Posted on by 100

Hello,

I've got a question concerning posting a pro forma sales packing slip. Our client has recently updated their invironment to CU8 and with this update there was a change in SalesFormLetter class. Specifically in the checkSales() method.

This is part of the method that has changed.

if (! this.checkHeading()      ||
        ! this.checkBlockedLevel() ||
        ! this.checkLines()        ||
        (isConfigurationkeyEnabled(configurationkeynum(CRSEItaly))       &&
         (salesParmTable.Ordering == DocumentStatus::PackingSlip         ||
          salesParmTable.Ordering == DocumentStatus::ProjectPackingSlip) &&
         ! this.checkLedgerPeriod()))
    {
        ok = false;
    }

The red code is what seems to be new for the invironment after the update. What we've noticed is that when we try to post a pro forma packing slip it checks if the ledger period is open or close.  "!this.checkLedgerPeriod()" part of the code. This seems to be a new method added in SalesFormLetter_PackingSlip class.

protected boolean checkLedgerPeriod()
{
    boolean ok;
    ;

    if(isConfigurationkeyEnabled(configurationkeynum(CRSEItaly)))
    {
        ok = LedgerPeriod::checkLedgerPeriodDateModule(salesParmTable.Transdate, SysModule::Sales);
    }

    return ok;
}

As seen above if the configurationkey CRSEItaly is enabled a check is made against the LedgerPeriod.

What this does is that since the configurationkey CRSEItaly is activated in our environment, other companies that have nothing to do with the Italian part also get this "check" when they try to post a pro forma packing slip.

My question is simple. Is this intended? Is this a bug? Or am I missing something obvious?

I've searched through partnersource and the web and I cannot seem to find anything about this issue.

Any ideas/solutions about this are appreciated.

Regards,

 

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Denis Macchinetti Profile Picture
    16,444 on at

    Hi

    I have also the AX 2009 CU8 but I don't have this codes.

    However, you can modify the checkLedgerPeriod method and put a condition for the Italy company.

    Regards

  • Zoran V Profile Picture
    100 on at

    Hello,

    Could it be that activating the italian configuration key "adds" that part of the code to the method?

    I am aware that I can modify the method to only check for italian company but why would microsoft add code from a specific configuration key that affects all proforma packingslips?

    Regards,

    Zoran V

  • Denis Macchinetti Profile Picture
    16,444 on at

    Hi Zoran

    The activation of the Configuration key doesn't modify the X++ code.

    So, I think you have to make a personalization if you want avoid that every company are affected by this code.

    I can understand your situation, but if you ask to Microsoft about that, the answer is "by design"

    Regards

  • Verified answer
    Community Member Profile Picture
    on at

    This is as per design of Dynamics AX 2009.

    using Dynamics AX 2009 you are suppose to implement one instance of Dynamics AX application in one country only.. Meaning if Configuration Key is enabled then it will be effective for all companies in the Instance.

    This drawback only got improved in Dynamics AX 2012 and now we can implement one instance of Dynamics AX in multiple country

    Consider some customization as per your requirement in method which is causing problem.

    Please verify.

  • Zoran V Profile Picture
    100 on at

    Ok, then it seems the customization option is the way to go.

    Thank you for clearing that up.

    Regards,

    Zoran V

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans