KVSPSAJob Document Header#
Fields#
| Name | Type | Note |
|---|---|---|
| Document Type | Enum (KVSPSAJob Document Type) | |
| Sell-to Customer No. | Code[20] | |
| No. | Code[20] | |
| Your Reference | Text[35] | |
| Name | Text[100] | FlowField |
| Name 2 | Text[50] | FlowField |
| Address | Text[100] | FlowField |
| Address 2 | Text[50] | FlowField |
| City | Text[30] | FlowField |
| Contact | Text[100] | FlowField |
| Order Date | Date | |
| Posting Date | Date | |
| Shipment Date | Date | |
| Posting Description | Text[100] | |
| Shipment Method Code | Code[10] | |
| Location Code | Code[10] | |
| Shortcut Dimension 1 Code | Code[20] | |
| Shortcut Dimension 2 Code | Code[20] | |
| Customer Posting Group | Code[20] | |
| Dimension Set ID | Integer | |
| Language Code | Code[10] | |
| Salesperson Code | Code[20] | |
| Order Class | Code[10] | |
| Comment | Boolean | FlowField |
| No. Printed | Integer | |
| Comment DocType | Option | OptionMembers: Int. Job Order,,Job Shipment |
| Job No. | Code[20] | |
| Ship-to Code | Code[10] | |
| Ship-to Name | Text[100] | |
| Ship-to Name 2 | Text[50] | |
| Ship-to Address | Text[100] | |
| Ship-to Address 2 | Text[50] | |
| Ship-to City | Text[30] | |
| Ship-to Contact | Text[100] | |
| Ship-to Post Code | Code[20] | |
| Ship-to County | Text[30] | |
| Ship-to Country/Region Code | Code[10] | |
| Reason Code | Code[10] | |
| Gen. Bus. Posting Group | Code[20] | |
| Post Code | Code[20] | FlowField |
| County | Text[30] | FlowField |
| Country/Region Code | Code[10] | FlowField |
| Exit Point | Code[10] | |
| Document Date | Date | |
| KVSPSAArea | Code[10] | |
| Transaction Specification | Code[10] | |
| Payment Method Code | Code[10] | |
| Shipping Agent Code | Code[10] | |
| No. Series | Code[20] | |
| Shipping No. Series | Code[20] | |
| Shipment No. | Code[20] | |
| Job Description | Text[100] | FlowField |
| DepartmentCode Contractor | Code[20] | |
| Status | Enum (KVSPSAJobDocumentStatus) | |
| Receive Type | Enum (KVSPSAJobDocumentReceiveType) | |
| Ship-to Vendor No. | Code[20] | |
| Purchase Order No. | Code[20] | |
| Completely Shipped | Boolean | FlowField |
| Location Filter | Code[20] | FlowFilter |
| Price Calculation Method | Enum Price Calculation Method | |
| Cost Calculation Method | Enum Price Calculation Method | |
| Customer No. from Budget Line | Boolean |
Procedures#
AssistEdit(Record KVSPSAJob Document Header) : Boolean#
Summary: This procedure run when user assist edit field, It checking the no. series and updating the document number accordingly.
procedure AssistEdit(OldJobDocumentHeader: Record "KVSPSAJob Document Header"): Boolean
Parameters:
OldJobDocumentHeader: Record used for pass to function.
Returns: Return result of the operation, true if the document number was updated.
CreateDim(List) :#
procedure CreateDim(DefaultDimSource: List):
FillTotallingAndPositionNumberingForJobDocument(Boolean) :#
Summary: This procedure fills the totalling field and position field for the job document.
procedure FillTotallingAndPositionNumberingForJobDocument(PositionNumbering: Boolean):
Parameters:
PositionNumbering: Boolean indicating whether to fill position numbering or totalling.
ShowDimensions() :#
Summary: This procedure open dimension page and if user changes dimensions, it updates the dimension set ID and modifies the record.
procedure ShowDimensions():
ShowJobDocumentTextLines(Enum KVSKBATextPosition, Integer) :#
Summary: This procedure shows the job document text page based on the specified text position and job document line number.
procedure ShowJobDocumentTextLines(TextPosition: Enum "KVSKBATextPosition"; JobDocumentLineNo: Integer):
Parameters:
TextPosition: Text position to filter the job document text lines.JobDocumentLineNo: Line number of the job document to filter the text lines.
TestJobNo() :#
Summary: This procedure tests the "Job No." field for all job document lines associated with the current job document header.
procedure TestJobNo():
TestPSPLine() :#
Summary: This procedure tests if all project shipment lines type resource and G/L account have a valid WBS relation.
procedure TestPSPLine():
Events#
KVSPSAOnBeforeCreateDim(Record KVSPSAJob Document Header, Boolean, List) :#
[IntegrationEvent(false, false)]
local procedure KVSPSAOnBeforeCreateDim(var JobDocumentHeader: Record "KVSPSAJob Document Header"; var IsHandled: Boolean; var DefaultDimSource: List):
[EventSubscriber(ObjectType::Table, Table::"KVSPSAJob Document Header", 'KVSPSAOnBeforeCreateDim', '', false, false)]
local procedure DoSomethingKVSPSAOnBeforeCreateDim(var JobDocumentHeader: Record "KVSPSAJob Document Header"; var IsHandled: Boolean; var DefaultDimSource: List)
begin
end;
KVSPSAOnBeforePrintDocument(Record KVSPSAJob Document Header) :#
[IntegrationEvent(false, false)]
local procedure KVSPSAOnBeforePrintDocument(var JobDocumentHeader: Record "KVSPSAJob Document Header"):
[EventSubscriber(ObjectType::Table, Table::"KVSPSAJob Document Header", 'KVSPSAOnBeforePrintDocument', '', false, false)]
local procedure DoSomethingKVSPSAOnBeforePrintDocument(var JobDocumentHeader: Record "KVSPSAJob Document Header")
begin
end;