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 :
Finance | Project Operations, Human Resources, ...
Answered

How to trace Overdelivery of line is 100.00 percent, but the allowed overdelivery is only 0.00 percent.

(0) ShareShare
ReportReport
Posted on by 15

Hi All ,

how can i trace and debug put a breakpoint to check the data result ., 

[Hookable(false)]
protected boolean checkNotOverDeliveryForNotStockedWithMatchedPR(TradeNotStockedPostCheck _notStockedPostCheck)
{
boolean ret = true;

UnitQty qtyPre = abs(purchLine.PurchQty);
UnitQty qtyPost = abs(this.qtyReceivedInTotal() +
this.qtyPendingInvoiceMatchedPR() +
vendInvoiceInfoLine.ReceiveNow);

Percent overDeliveryPercent = (qtyPost - qtyPre) / (qtyPre ? qtyPre : 1) * 100;

if (overDeliveryPercent > purchLine.overDeliveryPct())
{
ret = checkFailed(strFmt("@SYS24920", overDeliveryPercent, purchLine.overDeliveryPct()));
}

return ret;
}

/Classes/PurchInvoiceJournalPost/Methods/checkNotOverDeliveryForNotStockedWithMatchedPR

  • Verified answer
    huijij Profile Picture
    19,801 on at
    RE: How to trace Overdelivery of line is 100.00 percent, but the allowed overdelivery is only 0.00 percent.

    Hi AMR,

    Did you encounter any problems while debugging? Please refer to the links about how you can debug X++ code by using the debugging feature in Microsoft Visual Studio.

    learn.microsoft.com/.../debug-xpp

    dynamics365musings.com/.../

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

Dynamics 365 Community Update – Sep 16th

Welcome to the next edition of the Community Platform Update. This is a weekly…

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Dynamics 365 Community Newsletter - September 2024

Check out the latest community news

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Jahanvi Profile Picture

Jahanvi 35

#2
PJ JohnPaul Profile Picture

PJ JohnPaul 5

#3
Anton Venter Profile Picture

Anton Venter 4 Moderator

Product updates

Dynamics 365 release plans