KVSPSAJobPSPHeader#
Fields#
| Name | Type | Note |
|---|---|---|
| Version No. | Code[20] | |
| Job No. | Code[20] | |
| Description | Text[100] | |
| Description (Job) | Text[100] | FlowField |
| Comment | Boolean | FlowField |
| Job Budget Name | Code[10] | |
| Person Responsible | Code[20] | FlowField |
| Applied At | Date | |
| Applied By | Code[50] | |
| Blocked | Boolean | |
| Active | Boolean | |
| Budgetstatus | Option | OptionMembers: ,in check,released,rejected |
| Released By | Code[50] | |
| Released At | Date | |
| Sales Budget Blocked | Boolean | |
| Invoice Currency Factor | Decimal | |
| Invoice Currency Date | Date | |
| Date Filter | Date | FlowFilter |
| Job Invoice Currency Code | Code[10] | FlowField |
| Total PSP | Boolean | FlowField |
| Distribution Template Code | Code[20] | |
| Distribution Active | Boolean | |
| Hide Hint | Boolean | |
| Origin Budget | Boolean | |
| Show Costs | Enum (KVSPSAForecastDisplayType) | |
| Show Profit | Enum (KVSPSAForecastDisplayType) | |
| PSP Deactivated at | Date |
Procedures#
AddNewPSPPartsFromTemplate() :#
Summary: This procedure copy psp and budget lines from project template.
procedure AddNewPSPPartsFromTemplate():
CalculatePrecursor() :#
Summary: This procedure calculates precursor for psp lines related with job psp header.
procedure CalculatePrecursor():
CopyFromPSPIntoThis() :#
Summary: This procedure run report that used for copy other psp line to this psp header.
procedure CopyFromPSPIntoThis():
CreateJobShipment() :#
Summary: This procedure creates a job shipment based on the budget lines related with job PSP header.
procedure CreateJobShipment():
CreateJobVendorShipment() :#
Summary: This procedure creates a vendor shipment based on the budget lines related with job PSP header.
procedure CreateJobVendorShipment():
CreateNew() :#
Summary: This procedure creates a new job PSP header and sets the version number.
procedure CreateNew():
CreatePurchaseDocument() :#
Summary: CreatePurchaseDocument starts the process to order the necessary items and resources for the job. A short overview over the steps: 1) calculate the quantitity to order (with a commit!) 2) shows the page "Create Purchase Document", where the user can mark and see all the budget lines 3) based on the target set by the user, a purchase quote, order or a requisition worksheet will be created.
procedure CreatePurchaseDocument():
CreateSalesDoc() :#
Summary: This procedure creates a sales document based on the psp and budget lines related with job PSP header.
procedure CreateSalesDoc():
CreateTransferDoc() :#
Summary: This procedure creates a transfer document based on the budget lines related with job PSP header.
procedure CreateTransferDoc():
DocumentNavigate() :#
Summary: This procedure show job documents related with job PSP header.
procedure DocumentNavigate():
FillTotallingAndPositionNumbering(Boolean) :#
Summary: This procedure fills the totalling field and position field for the job document.
procedure FillTotallingAndPositionNumbering(PositionNumbering: Boolean):
Parameters:
PositionNumbering: Boolean indicating whether to fill position numbering or totalling.
FindStandardBudget() : Code[10]#
Summary: This procedure finds the default budget name if not exist then creates it.
procedure FindStandardBudget(): Code[10]
Returns: Returns the default budget name.
GetLastLineNoUsedInPSP(Boolean) : Integer#
Summary: returns the highest line no. used in wbs lines for this wbs header
procedure GetLastLineNoUsedInPSP(WithLock: Boolean): Integer
Parameters:
WithLock: Allows the calling function to lock the record
Returns:
KVSPSACalculatePrecursor() :#
Summary: Calculates the precursors of the linked tasks.
procedure KVSPSACalculatePrecursor():
KVSPSAUpdatePSPLineCurrency() :#
Summary: Updates the Currency and Currency factors in all the wbs lines of this wbs header.
procedure KVSPSAUpdatePSPLineCurrency():
PrintPSP() :#
Summary: This procedure prints the PSP report for the current job PSP header.
procedure PrintPSP():
RenumberLinesErrorInfo(Integer, Integer, Integer) :#
Summary: This procedure show the error information when renumbering lines has an issue.
procedure RenumberLinesErrorInfo(TargetLineNo: Integer; LineQty: Integer; MaxLineNo: Integer):
Parameters:
TargetLineNo: Target line number where the lines should be inserted before or later.LineQty: Numer of lines to be inserted.MaxLineNo: Maximum line number available in the WBS lines.
RenumberWBSLines() :#
Summary: This procedure run report to renumbers the WBS lines of the current job PSP header.
procedure RenumberWBSLines():
SetICPartnerInPSPLines() :#
Summary: This procedure sets the IC partner code for all unassigned WBS lines of the current job PSP header.
procedure SetICPartnerInPSPLines():
ShowJobPaymentPlan(Record KVSPSAJobPSPLine) :#
Summary: This procedure shows the job payment plan for the current job or for a specific job PSP line depend on payment plan level.
procedure ShowJobPaymentPlan(KVSPSAJobPSPLine: Record "KVSPSAJobPSPLine"):
Parameters:
KVSPSAJobPSPLine: Specific job PSP line to show payment plan.
StartPSPPlanning() :#
Summary: This procedure open PSP scheduling page for the current job PSP header.
procedure StartPSPPlanning():
UpdateBudgetQuantityForWBSLines() : Boolean#
Summary: This procedure updates the budget quantity for all WBS lines related to the current job PSP header.
procedure UpdateBudgetQuantityForWBSLines(): Boolean
Returns: Returns true if the budget quantity was updated, otherwise false.
UpdateJobAccountEntry() :#
Summary: This procedure updates the job account entries for the current job PSP header.
procedure UpdateJobAccountEntry():
Events#
KVSPSAOnAfterUpdateLines(Record KVSPSAJobPSPHeader, Record KVSPSAJobPSPHeader) :#
[IntegrationEvent(false, false)]
local procedure KVSPSAOnAfterUpdateLines(JobPSPHeader: Record "KVSPSAJobPSPHeader"; OldActiveJobPSPHeader: Record "KVSPSAJobPSPHeader"):
[EventSubscriber(ObjectType::Table, Table::"KVSPSAJobPSPHeader", 'KVSPSAOnAfterUpdateLines', '', false, false)]
local procedure DoSomethingKVSPSAOnAfterUpdateLines(JobPSPHeader: Record "KVSPSAJobPSPHeader"; OldActiveJobPSPHeader: Record "KVSPSAJobPSPHeader")
begin
end;
KVSPSAOnBeforeAskForUpdateCurrencyFactor(Record KVSPSAJobPSPHeader, Boolean, Boolean) :#
[IntegrationEvent(false, false)]
local procedure KVSPSAOnBeforeAskForUpdateCurrencyFactor(var JobPSPHeader: Record "KVSPSAJobPSPHeader"; var UpdateCurrencyFactorFromJob: Boolean; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Table, Table::"KVSPSAJobPSPHeader", 'KVSPSAOnBeforeAskForUpdateCurrencyFactor', '', false, false)]
local procedure DoSomethingKVSPSAOnBeforeAskForUpdateCurrencyFactor(var JobPSPHeader: Record "KVSPSAJobPSPHeader"; var UpdateCurrencyFactorFromJob: Boolean; var IsHandled: Boolean)
begin
end;
KVSPSAOnBeforeCheckBlocked(Record KVSPSAJobPSPHeader, Boolean) :#
[IntegrationEvent(false, false)]
local procedure KVSPSAOnBeforeCheckBlocked(var JobPSPHeader: Record "KVSPSAJobPSPHeader"; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Table, Table::"KVSPSAJobPSPHeader", 'KVSPSAOnBeforeCheckBlocked', '', false, false)]
local procedure DoSomethingKVSPSAOnBeforeCheckBlocked(var JobPSPHeader: Record "KVSPSAJobPSPHeader"; var IsHandled: Boolean)
begin
end;
KVSPSAOnBeforeUpdateCurrencyFactorOnInsert(Record KVSPSAJobPSPHeader, Record Job, Boolean) :#
[IntegrationEvent(false, false)]
local procedure KVSPSAOnBeforeUpdateCurrencyFactorOnInsert(var JobPSPHeader: Record "KVSPSAJobPSPHeader"; Job: Record "Job"; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Table, Table::"KVSPSAJobPSPHeader", 'KVSPSAOnBeforeUpdateCurrencyFactorOnInsert', '', false, false)]
local procedure DoSomethingKVSPSAOnBeforeUpdateCurrencyFactorOnInsert(var JobPSPHeader: Record "KVSPSAJobPSPHeader"; Job: Record "Job"; var IsHandled: Boolean)
begin
end;