Codeunit 5130115 M365 Job Sales Mgt.
Codeunit 5130115 M365 Job Sales Mgt.
Methods
SelectCreateSalesHeader
procedure SelectCreateSalesHeader() selection: Integer
Parameters / Return Value
- Returns
Integer
TestCreateSalesHeader
procedure TestCreateSalesHeader(jobStructHeader: Record "M365 Job Structure Header")
Parameters / Return Value
- jobStructHeader
Record "M365 Job Structure Header"
CreateJobFromSalesHeader
procedure CreateJobFromSalesHeader(var salesHeader: Record "Sales Header"): Code[20]
Parameters / Return Value
salesHeader
Record "Sales Header"
Returns
Code[20]
CreateSelectStructFromSales
procedure CreateSelectStructFromSales(salesHeader: Record "Sales Header")
Parameters / Return Value
- salesHeader
Record "Sales Header"
CreateStructLineFromSalesLine
procedure CreateStructLineFromSalesLine(jobStructHeader: Record "M365 Job Structure Header"; salesHeader: Record "Sales Header"; salesLine: Record "Sales Line")
Parameters / Return Value
jobStructHeader
Record "M365 Job Structure Header"
salesHeader
Record "Sales Header"
salesLine
Record "Sales Line"
UpdateJobs
procedure UpdateJobs(contactNo: Code[20]; custNo: Code[20])
Parameters / Return Value
contactNo
Code[20]
custNo
Code[20]
OpenStructureCard
procedure OpenStructureCard(var jobStructHeader: Record "M365 Job Structure Header")
Parameters / Return Value
- jobStructHeader
Record "M365 Job Structure Header"
OpenStructureCardFromSalesLine
procedure OpenStructureCardFromSalesLine(salesLine: Record "Sales Line")
Parameters / Return Value
- salesLine
Record "Sales Line"
CheckSalesJobQty
procedure CheckSalesJobQty(entryNo: Integer): Decimal
Parameters / Return Value
entryNo
Integer
Returns
Decimal
Combine2DimensionSetIDs
procedure Combine2DimensionSetIDs(dimensionSetIDArr: array[2] of Integer; tableId: array[2] of Integer; sourceCode: Code[20]; var globalDimOne: Code[20]; var globalDimSec: Code[20]): Integer
Parameters / Return Value
dimensionSetIDArr
Integer
tableId
Integer
sourceCode
Code[20]
globalDimOne
Code[20]
globalDimSec
Code[20]
Returns
Integer
Events
OnAfterSetJobStructLineStatus
local procedure OnAfterSetJobStructLineStatus(var jobStructHeader: Record "M365 Job Structure Header"; var salesHeader: Record "Sales Header"; var salesLine: Record "Sales Line"; var jobStructureLine: Record "M365 Job Structure Line")
Parameters / Return Value
jobStructHeader
Record "M365 Job Structure Header"
salesHeader
Record "Sales Header"
salesLine
Record "Sales Line"
jobStructureLine
Record "M365 Job Structure Line"
OnAfterCopyExtTextFromSalesLine2JobStructLine
local procedure OnAfterCopyExtTextFromSalesLine2JobStructLine(var salesLine: Record "Sales Line"; var jobStructureLine: Record "M365 Job Structure Line")
Parameters / Return Value
salesLine
Record "Sales Line"
jobStructureLine
Record "M365 Job Structure Line"
OnBeforeInsertJobFromSalesHeader
local procedure OnBeforeInsertJobFromSalesHeader(var FromSalesHeader: Record "Sales Header"; var ToJob: Record Job)
This event is raised on Job creation from Sales Header, before inserting Job Record
Parameters / Return Value
FromSalesHeader
Record "Sales Header"
Source Record
ToJob
Record "Job"
Destination Record
OnAfterInsertJobFromSalesHeader
local procedure OnAfterInsertJobFromSalesHeader(var FromSalesHeader: Record "Sales Header"; var ToJob: Record Job)
This event is raised on Job creation from Sales Header, after inserting Job Record
Parameters / Return Value
FromSalesHeader
Record "Sales Header"
Source Record
ToJob
Record "Job"
Destination Record
OnBeforeModifyJobFromSalesHeader
local procedure OnBeforeModifyJobFromSalesHeader(var FromSalesHeader: Record "Sales Header"; var ToJob: Record Job)
This event is raised on Job creation from Sales Header, before modifying Job Record
Parameters / Return Value
FromSalesHeader
Record "Sales Header"
Source Record
ToJob
Record "Job"
Destination Record
OnAfterModifyJobFromSalesHeader
local procedure OnAfterModifyJobFromSalesHeader(var FromSalesHeader: Record "Sales Header"; var ToJob: Record Job)
This event is raised on Job creation from Sales Header, after modifying Job Record
Parameters / Return Value
FromSalesHeader
Record "Sales Header"
Source Record
ToJob
Record "Job"
Destination Record
OnBeforeInsertJobStructureFromSalesHeader
local procedure OnBeforeInsertJobStructureFromSalesHeader(var FromSalesHeader: Record "Sales Header"; var ToJobStructHeader: Record "M365 Job Structure Header")
This event is raised on Job Structure creation from Sales Header, before inserting Job Structure Header Record
Parameters / Return Value
FromSalesHeader
Record "Sales Header"
Source Record
ToJobStructHeader
Record "M365 Job Structure Header"
Destination Record
OnAfterInsertJobStructureFromSalesHeader
local procedure OnAfterInsertJobStructureFromSalesHeader(var FromSalesHeader: Record "Sales Header"; var ToJobStructHeader: Record "M365 Job Structure Header")
This event is raised on Job Structure creation from Sales Header, after inserting Job Structure Header Record
Parameters / Return Value
FromSalesHeader
Record "Sales Header"
Source Record
ToJobStructHeader
Record "M365 Job Structure Header"
Destination Record
OnBeforeInsertJobStructureFromSalesLine
local procedure OnBeforeInsertJobStructureFromSalesLine(var FromSalesHeader: Record "Sales Header"; var FromSalesLine: Record "Sales Line"; var ToJobStructHeader: Record "M365 Job Structure Header")
This event is raised on Job Structure creation from Sales Line, before inserting Job Structure Header Record
Parameters / Return Value
FromSalesHeader
Record "Sales Header"
Header Source Record
FromSalesLine
Record "Sales Line"
Source Record
ToJobStructHeader
Record "M365 Job Structure Header"
Destination Record
OnAfterInsertJobStructureFromSalesLine
local procedure OnAfterInsertJobStructureFromSalesLine(var FromSalesHeader: Record "Sales Header"; var FromSalesLine: Record "Sales Line"; var ToJobStructHeader: Record "M365 Job Structure Header")
This event is raised on Job Structure creation from Sales Line, after inserting Job Structure Header Record
Parameters / Return Value
FromSalesHeader
Record "Sales Header"
Header Source Record
FromSalesLine
Record "Sales Line"
Source Record
ToJobStructHeader
Record "M365 Job Structure Header"
Destination Record
OnBeforeModifyJobStructureLineFromSalesLine
local procedure OnBeforeModifyJobStructureLineFromSalesLine(var FromSalesHeader: Record "Sales Header"; var FromSalesLine: Record "Sales Line"; var FromJobStructHeader: Record "M365 Job Structure Header"; var ToJobStructureLine: Record "M365 Job Structure Line")
This event is raised on Job Structure Line creation from Sales Line, before modifying Job Structure Line Record
Parameters / Return Value
FromSalesHeader
Record "Sales Header"
Header Source Record
FromSalesLine
Record "Sales Line"
Source Record
FromJobStructHeader
Record "M365 Job Structure Header"
Header Destination Record
ToJobStructureLine
Record "M365 Job Structure Line"
Destination Record
OnAfterModifyJobStructureLineFromSalesLine
local procedure OnAfterModifyJobStructureLineFromSalesLine(var FromSalesHeader: Record "Sales Header"; var FromSalesLine: Record "Sales Line"; var FromJobStructHeader: Record "M365 Job Structure Header"; var ToJobStructureLine: Record "M365 Job Structure Line")
This event is raised on Job Structure Line creation from Sales Line, after modifying Job Structure Line Record
Parameters / Return Value
FromSalesHeader
Record "Sales Header"
Header Source Record
FromSalesLine
Record "Sales Line"
Source Record
FromJobStructHeader
Record "M365 Job Structure Header"
Header Destination Record
ToJobStructureLine
Record "M365 Job Structure Line"
Destination Record
OnBeforeCreateStructLineFromSalesLine
local procedure OnBeforeCreateStructLineFromSalesLine(jobStructHeader: Record "M365 Job Structure Header"; salesHeader: Record "Sales Header"; salesLine: Record "Sales Line"; var IsHandled: Boolean)
This event is raised on Job Structure Line creation from Sales Line, before run creation Job Structure Line
Parameters / Return Value
jobStructHeader
Record "M365 Job Structure Header"
Header of new job structure created
salesHeader
Record "Sales Header"
Source Sales Header
salesLine
Record "Sales Line"
Source Sales line from which the job structure line is being created
IsHandled
Boolean
if true, no following app code will be executed
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.