Skip to content

KVSMEDBillingScheduleLib#

Procedures#

OnRun#

procedure OnRun(Rec: Record "#437dbf0e84ff417a965ded2bb9650972#Job Queue Entry")

ReleaseBillingScheduleLine(Record KVSMEDBillingScheduleLine) :#

Summary: Handles the process of releasing billing schedule lines. It performs a series of validations and updates before changing the status to 'Released'. If the KVSMEDBillingScheduleLine.Status is Invoice, the procedure will be exited early. If invoice lines cannot be created, the status is set back to 'Open'.

procedure ReleaseBillingScheduleLine(KVSMEDBillingScheduleLine: Record "KVSMEDBillingScheduleLine"): 

Parameters:

  • KVSMEDBillingScheduleLine:

CheckBillingScheduleCallBlocked(Record KVSMEDBillingScheduleCall) : Boolean#

Summary: Checks if the Billing Schedule Call is blocked in fields "Billing Blocked", "Billing Blocked Process Period", "Billing Blocked Billing Period"

procedure CheckBillingScheduleCallBlocked(KVSMEDBillingScheduleCall: Record "KVSMEDBillingScheduleCall"): Boolean

Parameters:

  • KVSMEDBillingScheduleCall:

Returns:

Events#

OnCreateShipmentCallInsertBillingScheduleCall(Record KVSMEDBillingScheduleLine, Record KVSMEDDeliveryScheduleCall, Boolean) :#

[IntegrationEvent(false, false)]
local procedure OnCreateShipmentCallInsertBillingScheduleCall(BillingScheduleLine: Record "KVSMEDBillingScheduleLine"; DeliveryScheduleCall: Record "KVSMEDDeliveryScheduleCall"; IsHandled: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSMEDBillingScheduleLib", 'OnCreateShipmentCallInsertBillingScheduleCall', '', false, false)]
local procedure DoSomethingOnCreateShipmentCallInsertBillingScheduleCall(BillingScheduleLine: Record "KVSMEDBillingScheduleLine"; DeliveryScheduleCall: Record "KVSMEDDeliveryScheduleCall"; IsHandled: Boolean)
begin
end;