Skip to content

KVSPSACreatePurchaseDocFromPSP#

Procedures#

DefVendor(Code[20], Enum Purchase Document Type, Boolean) :#

Obsolete

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

[Obsolete('Use SetCreateJobPurchParameters with Parameter Table', '23.2')]
procedure DefVendor(DefJobNo: Code[20]; DefDocType: Enum "Purchase Document Type"; DefJobAdress: Boolean): 

SetCreateJobPurchParameters(Record KVSPSACreateJobPurchParameters) :#

Summary: Set some Parameters for call of the Report Create Purchase Doc. from WBS

procedure SetCreateJobPurchParameters(var CreateJobPurchParameters: Record "KVSPSACreateJobPurchParameters"): 

SetUseLocationAddress(Boolean) :#

Obsolete

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

Summary: Set value of "GlobalUseLocationAddress"

[Obsolete('Use SetCreateJobPurchParameters with Parameter Table', '23.2')]
procedure SetUseLocationAddress(NewUseLocationAddress: Boolean): 

Events#

KVSPSAOnAfterCopyPSAJobBudgetLineToPurchLine(Record Purchase Line, Record KVSPSA Job Budget Line, Record KVSPSACreateJobPurchParameters) :#

[IntegrationEvent(false, false)]
local procedure KVSPSAOnAfterCopyPSAJobBudgetLineToPurchLine(var PurchaseLine: Record "Purchase Line"; var JobBudgetLine: Record "KVSPSA Job Budget Line"; GlobalCreateJobPurchParameters: Record "KVSPSACreateJobPurchParameters"): 
[EventSubscriber(ObjectType::Report, Report::"KVSPSACreatePurchaseDocFromPSP", 'KVSPSAOnAfterCopyPSAJobBudgetLineToPurchLine', '', false, false)]
local procedure DoSomethingKVSPSAOnAfterCopyPSAJobBudgetLineToPurchLine(var PurchaseLine: Record "Purchase Line"; var JobBudgetLine: Record "KVSPSA Job Budget Line"; GlobalCreateJobPurchParameters: Record "KVSPSACreateJobPurchParameters")
begin
end;

KVSPSAOnBeforeModifyCreatedPurchaseHeader(Record Purchase Header, Record Job, Record KVSPSACreateJobPurchParameters) :#

[IntegrationEvent(false, false)]
local procedure KVSPSAOnBeforeModifyCreatedPurchaseHeader(var PurchaseHeader: Record "Purchase Header"; Job: Record "Job"; GlobalCreateJobPurchParameters: Record "KVSPSACreateJobPurchParameters"): 
[EventSubscriber(ObjectType::Report, Report::"KVSPSACreatePurchaseDocFromPSP", 'KVSPSAOnBeforeModifyCreatedPurchaseHeader', '', false, false)]
local procedure DoSomethingKVSPSAOnBeforeModifyCreatedPurchaseHeader(var PurchaseHeader: Record "Purchase Header"; Job: Record "Job"; GlobalCreateJobPurchParameters: Record "KVSPSACreateJobPurchParameters")
begin
end;

KVSPSAOnBeforeModifyPurchaseDocumentTextFromPSAJobText(Record KVSKBAPurchaseDocumentText, Record Purchase Line, Record KVSPSA Job Budget Line, Record KVSPSACreateJobPurchParameters) :#

[IntegrationEvent(false, false)]
local procedure KVSPSAOnBeforeModifyPurchaseDocumentTextFromPSAJobText(var KVSKBAPurchaseDocumentText: Record "KVSKBAPurchaseDocumentText"; PurchaseLine: Record "Purchase Line"; JobBudgetLine: Record "KVSPSA Job Budget Line"; GlobalCreateJobPurchParameters: Record "KVSPSACreateJobPurchParameters"): 
[EventSubscriber(ObjectType::Report, Report::"KVSPSACreatePurchaseDocFromPSP", 'KVSPSAOnBeforeModifyPurchaseDocumentTextFromPSAJobText', '', false, false)]
local procedure DoSomethingKVSPSAOnBeforeModifyPurchaseDocumentTextFromPSAJobText(var KVSKBAPurchaseDocumentText: Record "KVSKBAPurchaseDocumentText"; PurchaseLine: Record "Purchase Line"; JobBudgetLine: Record "KVSPSA Job Budget Line"; GlobalCreateJobPurchParameters: Record "KVSPSACreateJobPurchParameters")
begin
end;

KVSPSAOnBeforeOpenCreatedDocuments(Code[20], Code[20], Record KVSPSACreateJobPurchParameters, Boolean, Boolean) :#

[IntegrationEvent(false, false)]
local procedure KVSPSAOnBeforeOpenCreatedDocuments(GlobalFirstDocNo: Code[20]; GlobalLastDocNo: Code[20]; GlobalCreateJobPurchParameters: Record "KVSPSACreateJobPurchParameters"; var HideQuestion: Boolean; var IsHandled: Boolean): 
[EventSubscriber(ObjectType::Report, Report::"KVSPSACreatePurchaseDocFromPSP", 'KVSPSAOnBeforeOpenCreatedDocuments', '', false, false)]
local procedure DoSomethingKVSPSAOnBeforeOpenCreatedDocuments(GlobalFirstDocNo: Code[20]; GlobalLastDocNo: Code[20]; GlobalCreateJobPurchParameters: Record "KVSPSACreateJobPurchParameters"; var HideQuestion: Boolean; var IsHandled: Boolean)
begin
end;

Protected Variables#

GlobalCreateJobPurchParameters#

Type: Record (KVSPSACreateJobPurchParameters)