Codeunit 18123250 EOS Purch. Request Management
Codeunit 18123250 EOS Purch. Request Management
Methods
CreatePurchRequisitionLines
procedure CreatePurchRequisitionLines(PurchRequisitionHeader: Record "EOS Purch. Request Header"; var RequisitionLine: Record "EOS Purch. Request Line")
Parameters / Return Value
PurchRequisitionHeader
Record "EOS Purch. Request Header"
RequisitionLine
Record "EOS Purch. Request Line"
ArchiveAllPurchRequestsYesNo
procedure ArchiveAllPurchRequestsYesNo(var PurchReqHeader: Record "EOS Purch. Request Header")
Ask for user interaction before archive all the purchase requests given in input
Parameters / Return Value
PurchReqHeader
Record "EOS Purch. Request Header"
Record “EOS Purch. Request Header”: the record containing one or more Purchase requests
ArchiveAllPurchRequests
procedure ArchiveAllPurchRequests(var PurchReqHeader: Record "EOS Purch. Request Header")
Archive All Purch Requests
Parameters / Return Value
PurchReqHeader
Record "EOS Purch. Request Header"
Record “EOS Purch. Request Header”: the record containing one or more Purchase requests
ArchivePurchRequestYesNo
procedure ArchivePurchRequestYesNo(var PurchReqHeader: Record "EOS Purch. Request Header")
Ask for user interaction before archive a purchase request
Parameters / Return Value
PurchReqHeader
Record "EOS Purch. Request Header"
Record “EOS Purch. Request Header”: the record to archive
ArchivePurchRequest
procedure ArchivePurchRequest(var PurchReqHeader: Record "EOS Purch. Request Header")
Archive a purchase request
Parameters / Return Value
PurchReqHeader
Record "EOS Purch. Request Header"
Record “EOS Purch. Request Header”: the purchase request to archive
AutoArchivePurchRequest
procedure AutoArchivePurchRequest(var PurchReqHeader: Record "EOS Purch. Request Header")
Auto archive a purchase request based on setup
Parameters / Return Value
PurchReqHeader
Record "EOS Purch. Request Header"
Record “EOS Purch. Request Header”: the purchase request to archive
RestorePurchRequestYesNo
procedure RestorePurchRequestYesNo(var ArchPurchReqHeader: Record "EOS Purch. Req. Header Archive")
Parameters / Return Value
- ArchPurchReqHeader
Record "EOS Purch. Req. Header Archive"
RestorePurchRequest
procedure RestorePurchRequest(var ArchPurchReqHeader: Record "EOS Purch. Req. Header Archive")
Restore an archived purchase request to a purchase request
Parameters / Return Value
ArchPurchReqHeader
Record "EOS Purch. Req. Header Archive"
Record “EOS Purch. Req. Header Archive”: the record to restore
FindBlanketOrder
procedure FindBlanketOrder(RequisitionLine: Record "EOS Purch. Request Line"; OrderDate: Date; var PurchaseLine: Record "Purchase Line"): Boolean
Parameters / Return Value
RequisitionLine
Record "EOS Purch. Request Line"
OrderDate
Date
PurchaseLine
Record "Purchase Line"
Returns
Boolean
InsertStdVendPurchLinesYesNo
procedure InsertStdVendPurchLinesYesNo(PurchReqHeader: Record "EOS Purch. Request Header")
Parameters / Return Value
- PurchReqHeader
Record "EOS Purch. Request Header"
InsertStdVendPurchLines
procedure InsertStdVendPurchLines(PurchReqHeader: Record "EOS Purch. Request Header"; StdVendPurchCode: Record "Standard Vendor Purchase Code")
Parameters / Return Value
PurchReqHeader
Record "EOS Purch. Request Header"
StdVendPurchCode
Record "Standard Vendor Purchase Code"
CopyAttachments
procedure CopyAttachments(var PurchReqHeader: Record "EOS Purch. Request Header"; toRec: Variant)
Parameters / Return Value
PurchReqHeader
Record "EOS Purch. Request Header"
toRec
Variant
CreatePurchLineFromReqLine
procedure CreatePurchLineFromReqLine(var PurchReqLine: Record "EOS Purch. Request Line"; var PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; multiVendor: Boolean)
Create a purchase line from a purchase request line
Parameters / Return Value
PurchReqLine
Record "EOS Purch. Request Line"
Record “EOS Purch. Request Line”
PurchHeader
Record "Purchase Header"
Record “Purchase Header”
PurchLine
Record "Purchase Line"
Record “Purchase Line”
multiVendor
Boolean
Bool
DuplicatePurchReqYesNo
procedure DuplicatePurchReqYesNo(PurchReqHeader: Record "EOS Purch. Request Header"; var NewPurchReqHeader: Record "EOS Purch. Request Header"): Boolean
Ask for user interaction before duplicating a purchase request
Parameters / Return Value
PurchReqHeader
Record "EOS Purch. Request Header"
Record “EOS Purch. Request Header”: the Purchase request to copy
NewPurchReqHeader
Record "EOS Purch. Request Header"
Record “EOS Purch. Request Header”: the new purchase request
Returns
Boolean
Boolean
DuplicatePurchReq
procedure DuplicatePurchReq(PurchReqHeader: Record "EOS Purch. Request Header"; var NewPurchReqHeader: Record "EOS Purch. Request Header")
Given a pre-existing purchase request it will duplicate this to another one
Parameters / Return Value
PurchReqHeader
Record "EOS Purch. Request Header"
The pre-existing purchase request
NewPurchReqHeader
Record "EOS Purch. Request Header"
ShowGetPurchReqLine
procedure ShowGetPurchReqLine(DocVariant: Variant)
It will open a page in wich user can select some approved purchase requests
Parameters / Return Value
DocVariant
Variant
The record in wich it will be added the Purchase Requests
ChangeTypeAndNoWithResult
procedure ChangeTypeAndNoWithResult(var PurchReqLine: Record "EOS Purch. Request Line"): Boolean
Change the Type and the No. of a Purchase Request Line. For Example if a line has a “G/L Account” as Type, it will be changed to “Item”
Parameters / Return Value
PurchReqLine
Record "EOS Purch. Request Line"
A purchase Request Line, passed by reference, in wich it will be replaced the Type / No
Returns
Boolean
GotoPage
procedure GotoPage(Notif: Notification)
Parameters / Return Value
- Notif
Notification
NotificationHandler
procedure NotificationHandler(PageNoToOpen: Integer; Scope: NotificationScope; MessageText: Text; ActionText: Text; HasAction: Boolean)
Parameters / Return Value
PageNoToOpen
Integer
Scope
NotificationScope
MessageText
Text
ActionText
Text
HasAction
Boolean
Events
DSTChangeDirectStatus
procedure DSTChangeDirectStatus(PurchReqHeader: Record "EOS Purch. Request Header")
This event is used by function “Restore Purchase Request” in order to implement, in case of the extension “Data Security For Purchase Request” is installed, the Data Security Status Field.
Parameters / Return Value
PurchReqHeader
Record "EOS Purch. Request Header"
A record of Type: Purchase Request Header
OnBeforeInsertPurchaseLine
local procedure OnBeforeInsertPurchaseLine(var PurchReqLine: Record "EOS Purch. Request Line"; var PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line")
Parameters / Return Value
PurchReqLine
Record "EOS Purch. Request Line"
PurchHeader
Record "Purchase Header"
PurchLine
Record "Purchase Line"
OnBeforeAutoArchivePurchRequest
local procedure OnBeforeAutoArchivePurchRequest(var PurchReqHeader: Record "EOS Purch. Request Header"; var IsHandled: Boolean)
Fired before the code in the AutoArchivePurchRequest procedure is executed.
Parameters / Return Value
PurchReqHeader
Record "EOS Purch. Request Header"
Purchase Request Header to auto archive.
IsHandled
Boolean
If true, skips the business logic.
OnAfterAutoArchivePurchRequest
local procedure OnAfterAutoArchivePurchRequest(var PurchReqHeader: Record "EOS Purch. Request Header")
Fired after the code in the AutoArchivePurchRequest procedure is executed.
Parameters / Return Value
PurchReqHeader
Record "EOS Purch. Request Header"
Purchase Request Header to auto archive.
OnBeforeModifyPurchaseRequestLine
local procedure OnBeforeModifyPurchaseRequestLine(var PurchReqLine: Record "EOS Purch. Request Line")
Parameters / Return Value
- PurchReqLine
Record "EOS Purch. Request Line"
OnBeforeChangeTypeAndNo
local procedure OnBeforeChangeTypeAndNo(var PurchReqLine: Record "EOS Purch. Request Line"; Confirmed: Boolean; var Handled: Boolean)
Raised before the action “Change Type and No.” is performed.
Parameters / Return Value
PurchReqLine
Record "EOS Purch. Request Line"
The purchase request line.
Confirmed
Boolean
If you customize the selection, use this to comunicate if the user has confirmed or cancelled the selection. This only applies if you set
Handled
to true.Handled
Boolean
Gets or sets whether this event has been completely handled.
OnAfterChangeTypeAndNo
local procedure OnAfterChangeTypeAndNo(xPurchReqLine: Record "EOS Purch. Request Line"; var PurchReqLine: Record "EOS Purch. Request Line")
Raised before the action “Change Type and No.” was performed.
Parameters / Return Value
xPurchReqLine
Record "EOS Purch. Request Line"
The original purchase request line before it was modified.
PurchReqLine
Record "EOS Purch. Request Line"
The new purchase request line including any changes.
OnBeforeArchivePurchRequest
local procedure OnBeforeArchivePurchRequest(PurchReqHeader: Record "EOS Purch. Request Header"; var ArchivedPurchReqHeader: Record "EOS Purch. Req. Header Archive")
Raised before archiving the Purchase Request
Parameters / Return Value
PurchReqHeader
Record "EOS Purch. Request Header"
The current purchase request
ArchivedPurchReqHeader
Record "EOS Purch. Req. Header Archive"
The archived purchase request
OnAfterArchivePurchRequest
local procedure OnAfterArchivePurchRequest(var PurchReqHeader: Record "EOS Purch. Request Header"; var ArchivedPurchReqHeader: Record "EOS Purch. Req. Header Archive")
Raised after archiving purchase request
Parameters / Return Value
PurchReqHeader
Record "EOS Purch. Request Header"
The current purchase request
ArchivedPurchReqHeader
Record "EOS Purch. Req. Header Archive"
The archived purchase request
OnRestorePurchRequestOnBeforeInsertHeader
local procedure OnRestorePurchRequestOnBeforeInsertHeader(var PurchReqHeader: Record "EOS Purch. Request Header"; var ArchPurchReqHeader: Record "EOS Purch. Req. Header Archive")
Parameters / Return Value
PurchReqHeader
Record "EOS Purch. Request Header"
ArchPurchReqHeader
Record "EOS Purch. Req. Header Archive"
OnRestorePurchRequestOnAfterInsertHeader
local procedure OnRestorePurchRequestOnAfterInsertHeader(var PurchReqHeader: Record "EOS Purch. Request Header"; var ArchPurchReqHeader: Record "EOS Purch. Req. Header Archive")
Parameters / Return Value
PurchReqHeader
Record "EOS Purch. Request Header"
ArchPurchReqHeader
Record "EOS Purch. Req. Header Archive"
OnRestorePurchRequestOnBeforeInsertLine
local procedure OnRestorePurchRequestOnBeforeInsertLine(var PurchReqLine: Record "EOS Purch. Request Line"; var PurchReqHeader: Record "EOS Purch. Request Header"; var ArchPurchReqLine: Record "EOS Purch. Req. Line Archive"; var ArchPurchReqHeader: Record "EOS Purch. Req. Header Archive")
Parameters / Return Value
PurchReqLine
Record "EOS Purch. Request Line"
PurchReqHeader
Record "EOS Purch. Request Header"
ArchPurchReqLine
Record "EOS Purch. Req. Line Archive"
ArchPurchReqHeader
Record "EOS Purch. Req. Header Archive"
OnRestorePurchRequestOnAfterInsertLine
local procedure OnRestorePurchRequestOnAfterInsertLine(var PurchReqLine: Record "EOS Purch. Request Line"; var PurchReqHeader: Record "EOS Purch. Request Header"; var ArchPurchReqLine: Record "EOS Purch. Req. Line Archive"; var ArchPurchReqHeader: Record "EOS Purch. Req. Header Archive")
Parameters / Return Value
PurchReqLine
Record "EOS Purch. Request Line"
PurchReqHeader
Record "EOS Purch. Request Header"
ArchPurchReqLine
Record "EOS Purch. Req. Line Archive"
ArchPurchReqHeader
Record "EOS Purch. Req. Header Archive"
OnRestorePurchRequestOnBeforeDeleteArch
local procedure OnRestorePurchRequestOnBeforeDeleteArch(var ArchPurchReqHeader: Record "EOS Purch. Req. Header Archive"; var skipDelete: Boolean)
Parameters / Return Value
ArchPurchReqHeader
Record "EOS Purch. Req. Header Archive"
skipDelete
Boolean
OnRestorePurchRequestOnAfterDeleteArch
local procedure OnRestorePurchRequestOnAfterDeleteArch(var ArchPurchReqHeader: Record "EOS Purch. Req. Header Archive")
Parameters / Return Value
- ArchPurchReqHeader
Record "EOS Purch. Req. Header Archive"
OnDuplicatePurchReqOnBeforeInsertNewPurchReqHeader
local procedure OnDuplicatePurchReqOnBeforeInsertNewPurchReqHeader(PurchReqHeader: Record "EOS Purch. Request Header"; var NewPurchReqHeader: Record "EOS Purch. Request Header")
Raised before insert duplicate purchase request header
Parameters / Return Value
PurchReqHeader
Record "EOS Purch. Request Header"
The current purchase request header
NewPurchReqHeader
Record "EOS Purch. Request Header"
The new duplicate purchase request header
OnDuplicatePurchReqOnBeforeInsertNewPurchReqLine
local procedure OnDuplicatePurchReqOnBeforeInsertNewPurchReqLine(PurchReqLine: Record "EOS Purch. Request Line"; var NewPurchReqLine: Record "EOS Purch. Request Line")
Raised before insert duplicate purchase request line
Parameters / Return Value
PurchReqLine
Record "EOS Purch. Request Line"
The current purchase request line
NewPurchReqLine
Record "EOS Purch. Request Line"
The new duplicate purchase request line
OnBeforeCreatePurchLineFromReqLine
local procedure OnBeforeCreatePurchLineFromReqLine(var PurchReqLine: Record "EOS Purch. Request Line"; var PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; multiVendor: Boolean; var IsHandled: boolean)
Fired before the code in the CreatePurchLineFromReqLine procedure is executed.
Parameters / Return Value
PurchReqLine
Record "EOS Purch. Request Line"
The current purchase request line
PurchHeader
Record "Purchase Header"
The Purchase Header where the new line will be inserted
PurchLine
Record "Purchase Line"
The new Purchase Line inserted
multiVendor
Boolean
Bool
IsHandled
boolean
If true, skips the business logic.
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.