Skip to content

KVSTRDFreightCostHeader#

Fields#

Name Type Note
Code Code[50]
Description Text[100]
Status Enum (KVSTRDFreightCostStatus)
Calculation Base Enum (KVSTRDFreightCostCalcBaseType)
Starting Date Date
Ending Date Date
Line-based Start + Ending Date Boolean
Currency Code Code[10]

Procedures#

TestStatus() :#

Summary: Tests the field "Status" of the current Freight Cost Header. Note: If the value is Activated or Disabled, an error is thrown.

procedure TestStatus(): 

Events#

KVSTRDOnBeforeFindDuplicateFreightCostLine(Record KVSTRDFreightCostLine, Boolean) :#

Summary: This event is raised before the duplicate freight cost line check is performed.

[IntegrationEvent(false, false)]
local procedure KVSTRDOnBeforeFindDuplicateFreightCostLine(FreightCostLine: Record "KVSTRDFreightCostLine"; var IsHandled: Boolean): 
[EventSubscriber(ObjectType::Table, Table::"KVSTRDFreightCostHeader", 'KVSTRDOnBeforeFindDuplicateFreightCostLine', '', false, false)]
local procedure DoSomethingKVSTRDOnBeforeFindDuplicateFreightCostLine(FreightCostLine: Record "KVSTRDFreightCostLine"; var IsHandled: Boolean)
begin
end;

Parameters:

  • FreightCostLine: The freight cost line being checked for duplicates.
  • isHandled: Specifies if the event has been handled. If set to true, the default logic will not be executed.