Code Unit 80 (Sales Return Order Posting Error)

fazlehasanfazlehasan Member Posts: 70
edited 2017-10-30 in NAV Three Tier
I had a posting problem when I tried to post a Sales Return Order, while I was testing an upgrade from 2013 to 2017, if SalesSetup."Return Receipt on Credit Memo" is false:
after some investigation, I found that the following code discrepancy between the versions is causing the problem, the highlighted
IF condition is not producing the same result. Has anyone seen it before? Is it a known bug?
Thanks
Fazle
7kf7xynuja1d.png

Answers

  • Slawek_GuzekSlawek_Guzek Member Posts: 1,690
    There is no difference in the logic

    Checking of Document type has been (rightly) encapsulated in a function called IsCreditDocType(), defined on table 36.

    up2ang7zzurc.png

    Keep searching :smiley:

    Slawek
    Slawek Guzek
    Dynamics NAV, MS SQL Server, Wherescape RED;
    PRINCE2 Practitioner - License GR657010572SG
    GDPR Certified Data Protection Officer - PECB License DPCDPO1025070-2018-03
  • fazlehasanfazlehasan Member Posts: 70
    edited 2017-10-17
    no...please read carefully...the code....in 2013 code Return Order does not AND with Sales Setup "Return Receipt on Credit Memo" as in 2017...would not have posted if it is only going a step farther down :)...seen that function in Sales header before posting and that made me realize the problem ...these 2 code would not produce same result...is it done for any reason or a mistake?
  • SilverXSilverX Member Posts: 134
    If the latest cu is still wrong, I would raise this with Microsoft.
    Cheers
    Carsten


    ==> How To Ask Questions The Smart Way

    This post is my own opinion and does not necessarily reflect the opinion or view of my employer.
  • guidorobbenguidorobben Member Posts: 157
    seems to be fine in rollup 11
  • Slawek_GuzekSlawek_Guzek Member Posts: 1,690
    edited 2017-10-17
    fazlehasan wrote: »
    no...please read carefully
    Yep, you're right, by bad :blush:

    Slawek Guzek
    Dynamics NAV, MS SQL Server, Wherescape RED;
    PRINCE2 Practitioner - License GR657010572SG
    GDPR Certified Data Protection Officer - PECB License DPCDPO1025070-2018-03
  • fazlehasanfazlehasan Member Posts: 70
    fazlehasan wrote: »
    no...please read carefully
    Yep, you're right, by bad :blush:

    Thanks for explaning the function IsCreditDocType()
Sign In or Register to comment.