Codeunit 18122376 EOS CWS Return Mgmt
Codeunit 18122376 EOS CWS Return Mgmt
Methods
ClearTemp
procedure ClearTemp()
CreateShipmentHeaderForSourceReturnOrder
procedure CreateShipmentHeaderForSourceReturnOrder(PostedWhseShipmentLine: Record "Posted Whse. Shipment Line"; PostingGroupNo: Integer)
Parameters / Return Value
PostedWhseShipmentLine
Record "Posted Whse. Shipment Line"
PostingGroupNo
Integer
CreateShipmentHeaderNotFromWhseDocument
procedure CreateShipmentHeaderNotFromWhseDocument(ReturnShipmentHeader: Record "Return Shipment Header"; PostingGroupNo: Integer; UseShipmentNoFromSource: Boolean)
Parameters / Return Value
ReturnShipmentHeader
Record "Return Shipment Header"
PostingGroupNo
Integer
UseShipmentNoFromSource
Boolean
SetReturnHeaderInfo
procedure SetReturnHeaderInfo(WarehouseShipmentHeader: Record "Warehouse Shipment Header"; var ReturnHeader: Record "Purchase Header"): Boolean
Parameters / Return Value
WarehouseShipmentHeader
Record "Warehouse Shipment Header"
ReturnHeader
Record "Purchase Header"
Returns
Boolean
TransferReturnShipmentLineToShipmentLine
procedure TransferReturnShipmentLineToShipmentLine(ReturnShipmentLine: Record "Return Shipment Line"; ShipmentHeader: Record "EOS CWS Shipment Header"; Correction: Boolean): Integer
Parameters / Return Value
ReturnShipmentLine
Record "Return Shipment Line"
ShipmentHeader
Record "EOS CWS Shipment Header"
Correction
Boolean
Returns
Integer
SynchReturnShipmentLineToShipmentLine
procedure SynchReturnShipmentLineToShipmentLine(ReturnShipmentLine: Record "Return Shipment Line"; var ShipmentLine: Record "EOS CWS Shipment Line")
Parameters / Return Value
ReturnShipmentLine
Record "Return Shipment Line"
ShipmentLine
Record "EOS CWS Shipment Line"
InsertEntriesRelationFromReturnShipmentLine
procedure InsertEntriesRelationFromReturnShipmentLine(ReturnShipmentLine: Record "Return Shipment Line"; ShipmentLine: record "EOS CWS Shipment Line")
Parameters / Return Value
ReturnShipmentLine
Record "Return Shipment Line"
ShipmentLine
record "EOS CWS Shipment Line"
TransferFieldsFromSourceHeader
procedure TransferFieldsFromSourceHeader(ReturnShipmentHeader: Record "Return Shipment Header"; var ShipmentHeader: Record "EOS CWS Shipment Header")
Parameters / Return Value
ReturnShipmentHeader
Record "Return Shipment Header"
ShipmentHeader
Record "EOS CWS Shipment Header"
TransferFieldsFromSourceLine
procedure TransferFieldsFromSourceLine(ReturnShipmentLine: Record "Return Shipment Line"; var ShipmentLine: Record "EOS CWS Shipment Line")
Parameters / Return Value
ReturnShipmentLine
Record "Return Shipment Line"
ShipmentLine
Record "EOS CWS Shipment Line"
UndoReturnShipmentLine
procedure UndoReturnShipmentLine(ReturnShipmentLine: Record "Return Shipment Line")
Parameters / Return Value
- ReturnShipmentLine
Record "Return Shipment Line"
InsertInvLineDescriptionFromReturn
procedure InsertInvLineDescriptionFromReturn(var ReturnShptLine: Record "Return Shipment Line"; var ReturnLine: Record "Purchase Line"; var NextLineNo: Integer; var Handled: Boolean)
Parameters / Return Value
ReturnShptLine
Record "Return Shipment Line"
ReturnLine
Record "Purchase Line"
NextLineNo
Integer
Handled
Boolean
CreateInvLinesDescriptionFromReturn
procedure CreateInvLinesDescriptionFromReturn(ReturnInvHeader: Record "Purchase Header")
Parameters / Return Value
- ReturnInvHeader
Record "Purchase Header"
GetOrderDescriptionForInvLineDescriptionFromReturn
procedure GetOrderDescriptionForInvLineDescriptionFromReturn(ReturnShptLine: Record "Return Shipment Line"): Text[100]
Parameters / Return Value
ReturnShptLine
Record "Return Shipment Line"
Returns
Text[100]
PrintFromReturnPostDocument
procedure PrintFromReturnPostDocument(LastShipmentNo: Code[20]; SendReportAsEmail: Boolean)
Parameters / Return Value
LastShipmentNo
Code[20]
SendReportAsEmail
Boolean
UpdateCertificateOfSupply
procedure UpdateCertificateOfSupply(ReturnShipmentHeader: Record "Return Shipment Header")
Parameters / Return Value
- ReturnShipmentHeader
Record "Return Shipment Header"
TransferAddressFieldsToSourceHeader
procedure TransferAddressFieldsToSourceHeader(ShipmentHeader: Record "EOS CWS Shipment Header"; var ReturnShipmentHeader: Record "Return Shipment Header")
Parameters / Return Value
ShipmentHeader
Record "EOS CWS Shipment Header"
ReturnShipmentHeader
Record "Return Shipment Header"
InsertOrderRefLines
procedure InsertOrderRefLines(ShipmentHeader: Record "EOS CWS Shipment Header")
Parameters / Return Value
- ShipmentHeader
Record "EOS CWS Shipment Header"
Events
OnAfterCreateShipmentHeaderForSourceReturnOrder
local procedure OnAfterCreateShipmentHeaderForSourceReturnOrder(var ShipmentHeader: Record "EOS CWS Shipment Header"; PostingGroupNo: Integer; PostedWhseShipmentLine: Record "Posted Whse. Shipment Line")
This event is raised after CWS shipment creation from Return Order.
Parameters / Return Value
ShipmentHeader
Record "EOS CWS Shipment Header"
CWS Shipment Header created.
PostingGroupNo
Integer
EOS Posting Group No. on CWS shipment header
PostedWhseShipmentLine
Record "Posted Whse. Shipment Line"
Source Posted Whse Shipment Line.
OnAfterCreateCWSShipment
local procedure OnAfterCreateCWSShipment(ReturnShipmentHeader: Record "Return Shipment Header"; PostingGroupNo: Integer; var ShipmentHeader: Record "EOS CWS Shipment Header")
This event is raised after CWS shipment creation from not whse. posting.
Parameters / Return Value
ReturnShipmentHeader
Record "Return Shipment Header"
Source Document Header
PostingGroupNo
Integer
EOS Posting Group No. on CWS shipment header
ShipmentHeader
Record "EOS CWS Shipment Header"
OnAfterSetReturnHeaderInfo
local procedure OnAfterSetReturnHeaderInfo(var ReturnHeader: Record "Purchase Header"; DocGroupingEntry: Record "EOS CWS Doc. Grouping Entry"; var ModifyHeader: Boolean)
This event is raised after Group Shipment Info are set on Source Document in whse. posting process.
Parameters / Return Value
ReturnHeader
Record "Purchase Header"
Source Document
DocGroupingEntry
Record "EOS CWS Doc. Grouping Entry"
Document Grouping Entry
ModifyHeader
Boolean
Set true to modify value on Source Document
OnAfterInsertEntryRelationFromReturnShipmentLine
local procedure OnAfterInsertEntryRelationFromReturnShipmentLine(ReturnShipmentLine: Record "Return Shipment Line"; DocNoFilter: Code[20]; PostingDateFilter: Date; ShipmentLine: record "EOS CWS Shipment Line")
This event is raised after insert Entry Relations for Posted Source Document Line. You can use to create Entry Relation for custom tables.
Parameters / Return Value
ReturnShipmentLine
Record "Return Shipment Line"
Posted Source Document Line
DocNoFilter
Code[20]
Document No.
PostingDateFilter
Date
Posting Date
ShipmentLine
record "EOS CWS Shipment Line"
Shipment Line
OnAfterTransferFieldsFromSourceHeader
local procedure OnAfterTransferFieldsFromSourceHeader(ReturnShipmentHeader: Record "Return Shipment Header"; var ShipmentHeader: Record "EOS CWS Shipment Header")
This event is raised after transferfields from Posted Source Document Header to Shipment Header. You can use to transfer custom fields.
Parameters / Return Value
ReturnShipmentHeader
Record "Return Shipment Header"
Posted Source Document Header
ShipmentHeader
Record "EOS CWS Shipment Header"
Shipment Header
OnAfterTransferFieldsFromSourceLine
local procedure OnAfterTransferFieldsFromSourceLine(ReturnShipmentLine: Record "Return Shipment Line"; var ShipmentLine: Record "EOS CWS Shipment Line")
This event is raised after transferfields from Posted Source Document Line to Shipment Line. You can use to transfer custom fields.
Parameters / Return Value
ReturnShipmentLine
Record "Return Shipment Line"
Posted Source Document Line
ShipmentLine
Record "EOS CWS Shipment Line"
Shipment Line
OnAfterTransferAddressFieldsToSourceHeader
local procedure OnAfterTransferAddressFieldsToSourceHeader(ShipmentHeader: Record "EOS CWS Shipment Header"; var ReturnShipmentHeader: Record "Return Shipment Header")
This event is raised after transferfields from Shipment Header to Posted Source Document Header and before use Format Address codeunit to format addresses in report print.
Parameters / Return Value
ShipmentHeader
Record "EOS CWS Shipment Header"
Shipment Header
ReturnShipmentHeader
Record "Return Shipment Header"
Posted Source Document Header
OnGetOrderDescriptionForInvLineDescriptionFromReturn
local procedure OnGetOrderDescriptionForInvLineDescriptionFromReturn(var ReturnLine: Record "Purchase Line";ReturnHeader: Record "Purchase Header";ReturnShptLine: Record "Return Shipment Line";ReturnLineDescription: Enum "EOS006 CWS Purchase Order Line Description")
Raised when inserting order description lines in a sales invoice, after getting shipment lines. Subscribe to this event if you have extended the corresponding enum.
Parameters / Return Value
ReturnLine
Record "Purchase Line"
The Purchase Line record with the description.
ReturnHeader
Record "Purchase Header"
The header record.
ReturnShptLine
Record "Return Shipment Line"
The Return Shipment Line.
ReturnLineDescription
Enum "EOS006 CWS Purchase Order Line Description"
The value of the Return Order Line Description enum in the CWS setup.
OnInsertOrderRefLines
local procedure OnInsertOrderRefLines(ShipmentLine: Record "EOS CWS Shipment Line";ReturnLineDescription: Enum "EOS006 CWS Purchase Order Line Description")
Raised when inserting order description lines in a return shipment, after inserting all the lines. Subscribe to this event if you have extended the corresponding enum.
Parameters / Return Value
ShipmentLine
Record "EOS CWS Shipment Line"
The first shipment line for the return order.
ReturnLineDescription
Enum "EOS006 CWS Purchase Order Line Description"
OnBeforeGetHeaderNoFromWhse
local procedure OnBeforeGetHeaderNoFromWhse(PostedWhseShptLine: Record "Posted Whse. Shipment Line"; var ShipmentNo: Code[20])
Raised before assigning the No. to the CWS Header after posting a warehouse shipment.
Parameters / Return Value
PostedWhseShptLine
Record "Posted Whse. Shipment Line"
The first Posted Whse. Shipment Line in the CWS.
ShipmentNo
Code[20]
The no. you want to assign to the CWS.
OnBeforeInsertInvLineDescription
local procedure OnBeforeInsertInvLineDescription(var ReturnLine: Record "Purchase Line"; ShipmentHeaderNo: Code[20])
Raised before inserting the invoice line with the shipment description.
Parameters / Return Value
ReturnLine
Record "Purchase Line"
The purchase line.
ShipmentHeaderNo
Code[20]
The CWS shipment header.
OnAfterInsertInvLineDescription
local procedure OnAfterInsertInvLineDescription(var ReturnLine: Record "Purchase Line"; ShipmentHeaderNo: Code[20])
Raised after inserting the invoice line with the shipment description.
Parameters / Return Value
ReturnLine
Record "Purchase Line"
The purchase line.
ShipmentHeaderNo
Code[20]
The CWS shipment header.
OnBeforeGetShptDescription
local procedure OnBeforeGetShptDescription(ReturnShptLine: Record "Return Shipment Line"; var ShipText: Text[100])
Raised before setting the shipment description.
Parameters / Return Value
ReturnShptLine
Record "Return Shipment Line"
The return shipment line.
ShipText
Text[100]
The text for the shipment description line. If left blank, it gets automatically generated.
OnBeforeTransferReturnShipmentLineToShipmentLine
local procedure OnBeforeTransferReturnShipmentLineToShipmentLine(ReturnShipmentLine: Record "Return Shipment Line"; ShipmentHeader: Record "EOS CWS Shipment Header"; Correction: Boolean)
Raised before copying Return Shipment Line to Shipment Line.
Parameters / Return Value
ReturnShipmentLine
Record "Return Shipment Line"
ShipmentHeader
Record "EOS CWS Shipment Header"
Correction
Boolean
OnAfterTransferReturnShipmentLineToShipmentLine
local procedure OnAfterTransferReturnShipmentLineToShipmentLine(ReturnShipmentLine: Record "Return Shipment Line"; ShipmentHeader: Record "EOS CWS Shipment Header"; Correction: Boolean; var ShipmentLine: Record "EOS CWS Shipment Line")
Raised after copying Return Shipment Line to Shipment Line.
Parameters / Return Value
ReturnShipmentLine
Record "Return Shipment Line"
ShipmentHeader
Record "EOS CWS Shipment Header"
Correction
Boolean
ShipmentLine
Record "EOS CWS Shipment Line"
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.