Skip to main content

Notifications

Announcements

No record found.

Small and medium business | Business Central, N...
Answered

Disable Shipment Date is before Work Date Notification

(0) ShareShare
ReportReport
Posted on by 147

Hi,

Is there any way to disable the notification "Shipment date xx/yy/zz is before work date xx/yy/zz"?

I couldn't find anything about it in My Notifications.

I saw in a previous question from 2017 that it was stated to not be possible but now it is 2023, perhaps any changes in 4-5 years?

Apperently you might be able to skip it by removing shipment date but it is a poor solution.

Perhaps using code like these people did in NAV, anyone tried it?

https://www.dynamicsuser.net/t/disable-message-shipment-date-is-before-work-date-nav-5-01/23887

It isn't a major problem but it would be cool if anyone had any input.

Thanks 

  • Rasmus B Profile Picture
    Rasmus B 147 on at
    RE: Disable Shipment Date is before Work Date Notification

    Thanks everyone. This seems like an easy fix for a developer so I will get to it right away :)

    Also good to know that there seems to be no way of doing it without code.

  • Verified answer
    Amit_Sharma Profile Picture
    Amit_Sharma 2,545 on at
    RE: Disable Shipment Date is before Work Date Notification

    Hi,

    Refer the below code

    codeunit 52001 "Events Trigger"
    {
        trigger OnRun()
        begin

        end;
        [EventSubscriber(ObjectType::Table, Database::"Sales Line", 'OnBeforeCheckShipmentDateBeforeWorkDate', '', False, False)]
        local procedure CheckShipmentDateBeforeWorkDate(var SalesLine: Record "Sales Line"; xSalesLine: Record "Sales Line"; var HasBeenShown: Boolean; var IsHandled: Boolean)
        begin
            IsHandled := True;
        end;
       
    }
  • Verified answer
    DAnny3211 Profile Picture
    DAnny3211 9,272 Super User 2024 Season 1 on at
    RE: Disable Shipment Date is before Work Date Notification

    CIao

    you can hook into this function in red and set the IsHandled parameter to true

    that way the control will be skipped

    pastedimage1672760453192v1.png

    check my answer if it helped you, thanks

    DAniele

  • Verified answer
    Mohana Yadav Profile Picture
    Mohana Yadav 59,194 Super User 2024 Season 2 on at
    RE: Disable Shipment Date is before Work Date Notification

    We have OnBeforeCheckShipmentDateBeforeWorkDate event available now so we can subscribe to this event and return IsHandled as true

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,391 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,445 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans