Skip to content

KVSTRDSalesPrepaymentMgt#

Events#

KVSTRDOnPreCheckPrepaymentAndCombinedShipmentOnCustomer(Record Customer, Boolean) :#

Summary: This event is raised before checking if the customer has both "Combine Shipments" and "Prepayment %" set. It allows custom logic to be executed before the check is performed.

[IntegrationEvent(false, false)]
local procedure KVSTRDOnPreCheckPrepaymentAndCombinedShipmentOnCustomer(Customer: Record "Customer"; var isHandled: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSTRDSalesPrepaymentMgt", 'KVSTRDOnPreCheckPrepaymentAndCombinedShipmentOnCustomer', '', false, false)]
local procedure DoSomethingKVSTRDOnPreCheckPrepaymentAndCombinedShipmentOnCustomer(Customer: Record "Customer"; var isHandled: Boolean)
begin
end;

Parameters:

  • Customer: The Customer record being checked.
  • isHandled: Specifies if the event has been handled. If set to true, the default logic will not be executed.

KVSTRDOnPreCheckPrepaymentAndCombinedShipmentOnSalesHeader(Record Sales Header, Boolean) :#

Summary: This event is raised before checking if the sales header has both "Combine Shipments" and "Prepayment %" set.

[IntegrationEvent(false, false)]
local procedure KVSTRDOnPreCheckPrepaymentAndCombinedShipmentOnSalesHeader(SalesHeader: Record "Sales Header"; var isHandled: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSTRDSalesPrepaymentMgt", 'KVSTRDOnPreCheckPrepaymentAndCombinedShipmentOnSalesHeader', '', false, false)]
local procedure DoSomethingKVSTRDOnPreCheckPrepaymentAndCombinedShipmentOnSalesHeader(SalesHeader: Record "Sales Header"; var isHandled: Boolean)
begin
end;

Parameters:

  • SalesHeader: The Sales Header record being checked.
  • isHandled: Specifies if the event has been handled. If set to true, the default logic will not be executed.