Skip to main content

Extending Advanced Landed Cost

Consignment Helper

Consignment Helper codeunit is designed as a public extension point for partners and ISVs working with the Advanced Landed Cost solution. It provides standardized procedures to help manage the consignments.

CreateAndAssignConsignment

Use the CreateAndAssignConsignment procedure to create and assign a consignment to a purchase or transfer order. It throws an error if a consignment already assigned or if there is no applicable consignment template.

OrderHasApplicableConsignmentTemplate

Use the OrderHasApplicableConsignmentTemplate procedure to check if there is an applicable consignment template for the specified purchase or transfer order.

Usage Example

Automatically Create and Assign Consignment to a Purchase Order if there is an applicable consignment template

var
ConsignmentHelper: Codeunit "Consignment Helper_LC_TSL";
PurchaseHeader: Record "Purchase Header";
ConsignmentHeader: Record ConsignmentHeader_LC_TSL;
begin
// ...initialize or retrieve Purchase Order...
if ConsignmentHelper.OrderHasApplicableConsignmentTemplate(PurchaseHeader) then
ConsignmentHeader := ConsignmentHelper.CreateAndAssignConsignment(PurchaseHeader);
end;

Would you like to request a new event or procedure?

Please email us a feature request. Make sure you describe the desired scenarios in full preferably with the expected behaviour of the app.