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)

Reason code must and should only be provided for debit note and credit note in ax 2009.

(0) ShareShare
ReportReport
Posted on by 516

Hello,

i am getting error while i am putting credit not againt sales order.

"Reason code must and should only be provided for debit note and credit note."

this error is coming , when i check in edit of the error then there is code.

protected void checkBeforePosting()
{
if (salesParmLine.RemainBefore != (salesLine.RemainSalesFinancial + salesLine.RemainSalesPhysical)||
salesLine.RemainInventPhysical != salesParmLine.RemainBeforeInventPhysical)
throw error("@SYS23025");

// <GMY>
if (TaxGSTFeatureChecker_MY::isCountryRegionMY()
&& (creditNote || salesTable.hasLinesWithReference_MY())
&& !SalesTable.DebitCreditNoteReasonRefRecId_MY)
{
throw error("@SYP6163");
}
// </GMY>
}

Thanks in advance.

Akshay

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Ludwig Reinhard Profile Picture
    Microsoft Employee on at

    Hi Akshay,

    If you need to develop and test something, you can deactivate the AR-Parameters that require you entering a reason code. Simply take out the reason code requirement checkboxes.

    Best regards,

    Ludwig

  • akshaykupra Profile Picture
    516 on at

    Hello Ludwig,

    already all option is untick.

    Require reasons for payment cancellation

    Require reasons for return orders

    Require reasons for transctions reversals

    Thanks.

  • Suggested answer
    Ludwig Reinhard Profile Picture
    Microsoft Employee on at

    Hi,

    I checked the error text

    "Reason code must and should only be provided for debit note and credit note"

    and did not find this one in a standard application.

    Guess there have been some modifications made that cause those problems.

    Can you check that with your fellow development colleagues?

    Best regards,

    Ludwig

  • Rohin Profile Picture
    4,624 on at

    I do Agree with Ludwig. looks like, it merely the GST modification which cause the error( if it comes from "@SYP6163")

  • akshaykupra Profile Picture
    516 on at

    yes this is not in standard , this comes after gst hotfix update.

    Thanks

    Aksahy

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