Skip to content

KVSTRDActivationFixedAsset#

Procedures#

ActivationRentalItem(Record Service Item) :#

Obsolete

This Element will be removed or changed with a future Version of the App.

[Obsolete('Obsolete due to Rental Redesign: Use ActivationRentalItem(RentalItem: Record KVSTRDRentalItem) instead', '26.0')]
procedure ActivationRentalItem(ServiceItem: Record "Service Item"): 

SuppressMessages(Boolean) :#

Summary: Provides the possibiliy of suppressing the message that a fixed asset has been created by function "ActivationRentalItem".

procedure SuppressMessages(Suppress: Boolean): 

Parameters:

  • Suppress: If True, the message is suppressed, otherwise it is shown.

KVSTRDAfterCreatedFADeprBook(Record FA Depreciation Book, Record Item Category) :#

Obsolete

This Element will be removed or changed with a future Version of the App.

Summary: This event is raised after a "FA Depreciation Book" was created based on information in an Item Category.

[Obsolete('Event Publisher will only be locally available in the future. You can still subscribe to this event but you can't raise it anymore', '26.5')]
[IntegrationEvent(false, false)]
procedure KVSTRDAfterCreatedFADeprBook(var FADepreciationBook: Record "FA Depreciation Book"; ItemCategory: Record "Item Category"): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSTRDActivationFixedAsset", 'KVSTRDAfterCreatedFADeprBook', '', false, false)]
local procedure DoSomethingKVSTRDAfterCreatedFADeprBook(var FADepreciationBook: Record "FA Depreciation Book"; ItemCategory: Record "Item Category")
begin
end;

Parameters:

  • FADepreciationBook: The created "FA Depreciation Book" record.
  • ItemCategory: The "Item Category" record.

Events#

KVSTRDAfterCreatedFADeprBook(Record FA Depreciation Book, Record Item Category) :#

Obsolete

This Element will be removed or changed with a future Version of the App.

Summary: This event is raised after a "FA Depreciation Book" was created based on information in an Item Category.

[Obsolete('Event Publisher will only be locally available in the future. You can still subscribe to this event but you can't raise it anymore', '26.5')]
[IntegrationEvent(false, false)]
procedure KVSTRDAfterCreatedFADeprBook(var FADepreciationBook: Record "FA Depreciation Book"; ItemCategory: Record "Item Category"): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSTRDActivationFixedAsset", 'KVSTRDAfterCreatedFADeprBook', '', false, false)]
local procedure DoSomethingKVSTRDAfterCreatedFADeprBook(var FADepreciationBook: Record "FA Depreciation Book"; ItemCategory: Record "Item Category")
begin
end;

Parameters:

  • FADepreciationBook: The created "FA Depreciation Book" record.
  • ItemCategory: The "Item Category" record.

KVSTRDOnBeforeInitAndInsertFixedAsset(Record Fixed Asset, Record KVSTRDRentalItem, Boolean) :#

Summary: Event to allow customization before initializing and inserting a fixed asset.

[IntegrationEvent(false, false)]
local procedure KVSTRDOnBeforeInitAndInsertFixedAsset(var FixedAsset: Record "Fixed Asset"; RentalItem: Record "KVSTRDRentalItem"; var IsHandled: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSTRDActivationFixedAsset", 'KVSTRDOnBeforeInitAndInsertFixedAsset', '', false, false)]
local procedure DoSomethingKVSTRDOnBeforeInitAndInsertFixedAsset(var FixedAsset: Record "Fixed Asset"; RentalItem: Record "KVSTRDRentalItem"; var IsHandled: Boolean)
begin
end;

Parameters:

  • FixedAsset: The fixed asset record to be initialized and inserted.
  • RentalItem: The rental item being activated.
  • IsHandled: Set to true to indicate that the operation has been handled and should not continue with default processing.