Is there a way to disable the option to 'not show messages'?
I always want this message to show up when inventory levels are too low, because there should be looked into the orders which one will get priority. When this message is not showing up, the trigger is gone and wrong delivery dates are communicated to the customer. Other solutions are welcome.
Hi Tom,
Thanks for explain, Now I understand what you are looking for. I am not too sure is their any action to remove "Don't show again" action button. but I suggest you can put some custom code, If user disable this notification then that custom code always run while adding Item on sales document and check Item qty. and if it's lower it's pass same notification or your custom notification.
Many Thanks,
Manan
Thank you. This message is showing in my Business Central too. But the users have the option to click on 'Don't show again'. When they do, this message is not showing up anymore. You have to enable this again within your own profile via My settings → change when i receive messages:
I want the users not be able to delete the message, so it never shows up again.
Hi Tom,
I used item which have quantity as "0". I create a Sales Order and pick same item as Quantity as "50". So system give me notification. For Lower Quantity.
Many Thanks,
Manan
Thank you Manan_Shah for your answer. It seems I already have this boolean enabled. Can you show me the output message of this warning? I tested but i have no idea what is should look like.
Thank you in advance!
Tom
You can do it with the below code customization.
[EventSubscriber(ObjectType::Codeunit, Codeunit::"Item-Check Avail.", 'OnBeforeCreateAndSendNotification', '', false, false)]
local procedure OnBeforeCreateAndSendNotification(ItemNo: Code[20]; UnitOfMeasureCode: Code[20]; InventoryQty: Decimal; GrossReq: Decimal; ReservedReq: Decimal; SchedRcpt: Decimal; ReservedRcpt: Decimal; CurrentQuantity: Decimal; CurrentReservedQty: Decimal; TotalQuantity: Decimal; EarliestAvailDate: Date; RecordId: RecordId; LocationCode: Code[10]; ContextInfo: Dictionary of [Text, Text]; var Rollback: Boolean; var IsHandled: Boolean);
var
ItemCheckAvail: Codeunit "Item-Check Avail.";
NotificationLifecycleMgt: Codeunit "Notification Lifecycle Mgt.";
ItemAvailabilityCheck: Page "Item Availability Check";
AvailabilityCheckNotification: Notification;
NotificationMsg: Label 'The available inventory for item %1 is lower than the entered quantity at this location.', Comment = '%1=Item No.';
DetailsTxt: Label 'Show details';
begin
AvailabilityCheckNotification.Id(CreateGuid());
AvailabilityCheckNotification.Message(StrSubstNo(NotificationMsg, ItemNo));
AvailabilityCheckNotification.Scope(NOTIFICATIONSCOPE::LocalScope);
AvailabilityCheckNotification.AddAction(DetailsTxt, CODEUNIT::"Item-Check Avail.", 'ShowNotificationDetails');
//AvailabilityCheckNotification.AddAction(DontShowAgainTxt, CODEUNIT::"Item-Check Avail.", 'DeactivateNotification');
ItemAvailabilityCheck.PopulateDataOnNotification(AvailabilityCheckNotification, ItemNo, UnitOfMeasureCode,
InventoryQty, GrossReq, ReservedReq, SchedRcpt, ReservedRcpt, CurrentQuantity, CurrentReservedQty,
TotalQuantity, EarliestAvailDate, LocationCode);
NotificationLifecycleMgt.SendNotificationWithAdditionalContext(
AvailabilityCheckNotification, RecordId, ItemCheckAvail.GetItemAvailabilityNotificationId());
Rollback := false;
IsHandled := true;
end;
Hi Tom,
As I understand you want notification message while creating any Sales Document if quantity lower then required.
You have enable Boolean for Stock out Warning from Sales & Receivable setup Page.
Hope this will help.
Many Thanks,
Manan
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,151 Super User 2024 Season 2
Martin Dráb 229,963 Most Valuable Professional
nmaenpaa 101,156