Newtoki@ It seems like your question is related to a technical or business process that involves a Warehouse Receipt and Item Ledger Entries. The customization of fields between these two entities might depend on the specific software or system you are using for warehouse management and inventory tracking.
In general, the customization of fields involves understanding the database schema, programming or configuring changes, and ensuring data consistency. Here's a generic guide on how you might approach this in a database or enterprise system scenario:
codeunit 50115 MyCodeunit2
{
[EventSubscriber(ObjectType::Codeunit, Codeunit::"Whse.-Post Receipt", OnBeforeValidateQtyToReceiveOnPurchaseLine, '', false, false)]
local procedure OnBeforeValidateQtyToReceiveOnPurchaseLine(var PurchaseLine: Record "Purchase Line"; WarehouseReceiptLine: Record "Warehouse Receipt Line"; var IsHandled: Boolean);
begin
PurchaseLine."ZY Document No." := WarehouseReceiptLine."ZY Document No.";
end;
[EventSubscriber(ObjectType::Codeunit, Codeunit::"Purch.-Post", OnPostItemJnlLineOnAfterCopyDocumentFields, '', false, false)]
local procedure OnPostItemJnlLineOnAfterCopyDocumentFields(var ItemJournalLine: Record "Item Journal Line"; PurchaseLine: Record "Purchase Line"; WarehouseReceiptHeader: Record "Warehouse Receipt Header"; WarehouseShipmentHeader: Record "Warehouse Shipment Header"; PurchRcptHeader: Record "Purch. Rcpt. Header");
begin
ItemJournalLine."ZY Document No." := PurchaseLine."ZY Document No.";
end;
[EventSubscriber(ObjectType::Codeunit, Codeunit::"Item Jnl.-Post Line", OnAfterInitItemLedgEntry, '', false, false)]
local procedure OnAfterInitItemLedgEntry(var NewItemLedgEntry: Record "Item Ledger Entry"; var ItemJournalLine: Record "Item Journal Line"; var ItemLedgEntryNo: Integer);
begin
NewItemLedgEntry."ZY Document No." := ItemJournalLine."ZY Document No.";
end;
}
tableextension 50115 WarehouseReceiptLineExt extends "Warehouse Receipt Line"
{
fields
{
field(50000; "ZY Document No."; Code[20])
{
Caption = 'ZY Document No.';
DataClassification = CustomerContent;
}
}
}
pageextension 50115 WhseReceiptSubformExt extends "Whse. Receipt Subform"
{
layout
{
addafter(Description)
{
field("ZY Document No."; Rec."ZY Document No.")
{
ApplicationArea = All;
}
}
}
}
tableextension 50114 PurchaseLineExt extends "Purchase Line"
{
fields
{
field(50000; "ZY Document No."; Code[20])
{
Caption = 'ZY Document No.';
DataClassification = CustomerContent;
}
}
}
tableextension 50112 ItemJournalLine extends "Item Journal Line"
{
fields
{
field(50000; "ZY Document No."; Code[20])
{
Caption = 'ZY Document No.';
DataClassification = CustomerContent;
}
}
}
tableextension 50113 ItemLedgerEntryExt extends "Item Ledger Entry"
{
fields
{
field(50000; "ZY Document No."; Code[20])
{
Caption = 'ZY Document No.';
DataClassification = CustomerContent;
}
}
}
pageextension 50113 MyExtension extends "Item Ledger Entries"
{
layout
{
addafter("Document No.")
{
field("Purch Document No."; Rec."ZY Document No.")
{
ApplicationArea = All;
}
}
}
}
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,253 Super User 2024 Season 2
Martin Dráb 230,188 Most Valuable Professional
nmaenpaa 101,156