Skip to content

[W1][Codeunit][99000854][Inventory Profile Offsetting] - OnBeforeDeleteTracking #29537

@Duizy1971

Description

@Duizy1971

Why do you need this change?

A current customer wants a specific backorder planning in the requisition worksheet. A separate action next to the standard 'Calculate Plan' to do a Lot-for-Lot planning on only sales and assembly lines that are not reserved and have not been item tracked but need to. We need to be able to skip all the other demand and supply tables. Allas the most famous and cruel of them all procedure DeleteTracking is not giving me any support, because I cannot get it to work and leave the T337 reservation entries alone of the skipped demand and supply records.

Also for a future customer I need the possibility to only plan the forecast so they can find out what components need to be purchased for next year. This also means skipping ALL supply and demand and only look at the forecast entries.
For now I have copied 1500 lines of C99000854 to get the PTE app to work as the customer requests. Not ideal, but I manage

Describe the request

local procedure DeleteTracking(var SKU: Record "Stockkeeping Unit"; ToDate: Date; var SupplyInventoryProfile: Record "Inventory Profile")
var
    Item: Record Item;
    ReservEntry1: Record "Reservation Entry";
    ResEntryWasDeleted: Boolean;
    IsHandled : Boolean;
begin
    OnBeforeDeleteTracking(SKU,ToDate,SupplyInventoryProfile, IsHandled);
    if IsHandled then
        exit;

    ActionMsgEntry.SetCurrentKey("Reservation Entry");
....
end;

[IntegrationEvent(false, false)]
local procedure OnBeforeDeleteTracking(var SKU: Record "Stockkeeping Unit"; ToDate: Date; var SupplyInventoryProfile: Record "Inventory Profile"; var IsHandled: Boolean)
begin
end;

Metadata

Metadata

Assignees

No one assigned

    Labels

    missing-infoThe issue misses information that prevents it from completion.

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions