Skip to content

KVSPSAREFlatManagement#

Procedures#

CheckFlatAlreadyAssignedToJob(Record KVSPSAREFlat)#

procedure CheckFlatAlreadyAssignedToJob(Flat: Record "KVSPSAREFlat")

Events#

KVSPSAREOnBeforeCheckFlatIsSold(Code[20], Boolean, Boolean)#

Summary: Use this event if you want to add a sales status check for an flat.

[IntegrationEvent(false, false)]
procedure KVSPSAREOnBeforeCheckFlatIsSold(FlatNo: Code[20]; var IsSold: Boolean; var IsHandled: Boolean)
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSPSAREFlatManagement", 'KVSPSAREOnBeforeCheckFlatIsSold', '', false, false)]
local procedure DoSomethingKVSPSAREOnBeforeCheckFlatIsSold(FlatNo: Code[20]; var IsSold: Boolean; var IsHandled: Boolean)
begin
end;

Parameters:

  • FlatNo: No. for the flat.
  • IsSold: Should be set to true if the flat is sold.
  • IsHandled: Should be set to true if the case was handled.

KVSPSAREOnBeforeCheckStateOfSales(Code[20], Boolean, Boolean)#

Summary: Use this event to allow or disallow the change of the unit price for a job flat, even if the status is sold.

[IntegrationEvent(false, false)]
procedure KVSPSAREOnBeforeCheckStateOfSales(JobNo: Code[20]; var ChangeUnitPriceAllowed: Boolean; var IsHandled: Boolean)
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSPSAREFlatManagement", 'KVSPSAREOnBeforeCheckStateOfSales', '', false, false)]
local procedure DoSomethingKVSPSAREOnBeforeCheckStateOfSales(JobNo: Code[20]; var ChangeUnitPriceAllowed: Boolean; var IsHandled: Boolean)
begin
end;

Parameters:

  • JobNo: Job, where the flat is located.
  • ChangeUnitPriceAllowed: Should be set to true if the unit price must be changed.
  • IsHandled: Should be set to true if the case was handled.

Last update: August 11, 2023