Codeunit 70491962 EOS CWS Inv. Setup Calc. Mgmt.
Codeunit 70491962 EOS CWS Inv. Setup Calc. Mgmt.
Methods
GetInvoicingBufferForWhseShipmentNo
procedure GetInvoicingBufferForWhseShipmentNo(WarehouseShipmentHeader: Record "Warehouse Shipment Header"; var InvoicingCodeBuffer: Record "EOS CWS Invoicing Code Buffer")
Parameters / Return Value
WarehouseShipmentHeader
Record "Warehouse Shipment Header"
InvoicingCodeBuffer
Record "EOS CWS Invoicing Code Buffer"
GetInvSetupCodeForDestinationNo
procedure GetInvSetupCodeForDestinationNo(CombType: Option; LocationCode: Code[20]; SourceDocumentType: Enum "EOS CWS Source Document"; DestinationType: Enum "EOS CWS Destination Type"; DestinationNo: Code[20]; var InvoicingCode: Record "EOS CWS Invoicing Code"): boolean
Parameters / Return Value
CombType
Option
LocationCode
Code[20]
SourceDocumentType
Enum "EOS CWS Source Document"
DestinationType
Enum "EOS CWS Destination Type"
DestinationNo
Code[20]
InvoicingCode
Record "EOS CWS Invoicing Code"
Returns
boolean
FindInvoicingCode
procedure FindInvoicingCode(CombType: Option; LocationCode: Code[20]; SourceDocumentType: Enum "EOS CWS Source Document"; DestinationNo: Code[20]; var CombinationCode: Code[10]; CalledByFieldNo: Integer)
Parameters / Return Value
CombType
Option
LocationCode
Code[20]
SourceDocumentType
Enum "EOS CWS Source Document"
DestinationNo
Code[20]
CombinationCode
Code[10]
CalledByFieldNo
Integer
InvoicingSetupExists
procedure InvoicingSetupExists(CombType: Option; LocationCode: Code[20]; SourceDocumentType: Enum "EOS CWS Source Document"; DestinationNo: Code[20]; ShowAll: Boolean): Boolean
Parameters / Return Value
CombType
Option
LocationCode
Code[20]
SourceDocumentType
Enum "EOS CWS Source Document"
DestinationNo
Code[20]
ShowAll
Boolean
Returns
Boolean
FindInvoicingSetup
procedure FindInvoicingSetup(var ToInvoicingSetup: Record "EOS CWS Invoicing Setup"; CombType: Option; LocationCode: Code[20]; SourceDocumentType: Enum "EOS CWS Source Document"; DestinationNo: Code[20]; ShowAll: Boolean)
Parameters / Return Value
ToInvoicingSetup
Record "EOS CWS Invoicing Setup"
CombType
Option
LocationCode
Code[20]
SourceDocumentType
Enum "EOS CWS Source Document"
DestinationNo
Code[20]
ShowAll
Boolean
CalcBestCriteria
procedure CalcBestCriteria(var InvoicingSetup: Record "EOS CWS Invoicing Setup")
Parameters / Return Value
- InvoicingSetup
Record "EOS CWS Invoicing Setup"
Events
OnBeforeFindInvoicingCode
local procedure OnBeforeFindInvoicingCode(CombType: Option; LocationCode: Code[20]; SourceDocumentType: Enum "EOS CWS Source Document"; DestinationNo: Code[20]; var InvoicingCode: Code[10]; CalledByFieldNo: Integer; var IsHandled: Boolean)
This event is raised before calculate invoicing code. You can use to return your custom code.
Parameters / Return Value
CombType
Option
Type
LocationCode
Code[20]
Location Code
SourceDocumentType
Enum "EOS CWS Source Document"
Source Document
DestinationNo
Code[20]
Destination No.
InvoicingCode
Code[10]
Your custom code
CalledByFieldNo
Integer
IsHandled
Boolean
Set true to use your custom value
OnAfterFindInvoicingCode
local procedure OnAfterFindInvoicingCode(CombType: Option; LocationCode: Code[20]; SourceDocumentType: Enum "EOS CWS Source Document"; DestinationNo: Code[20]; var InvoicingSetup: Record "EOS CWS Invoicing Setup"; CalledByFieldNo: Integer)
This event is raised after invoicing criteria setup calculation.
Parameters / Return Value
CombType
Option
Type
LocationCode
Code[20]
Location Code
SourceDocumentType
Enum "EOS CWS Source Document"
Source Document
DestinationNo
Code[20]
Destination No.
InvoicingSetup
Record "EOS CWS Invoicing Setup"
Invoicing Criteria Setup
CalledByFieldNo
Integer
OnBeforeInvoicingCodeBufferInsertCheck
local procedure OnBeforeInvoicingCodeBufferInsertCheck(var InvoicingCodeBuffer: Record "EOS CWS Invoicing Code Buffer"; WhseShptLine: Record "Warehouse Shipment Line")
Raised before checking if the Invoicing Code would create and/or post an invoice. If neither of this are true, the line is not inserted in the buffer.
Parameters / Return Value
InvoicingCodeBuffer
Record "EOS CWS Invoicing Code Buffer"
The Invoicing Code Buffer line related to the current Warehouse Shipment Line.
WhseShptLine
Record "Warehouse Shipment Line"
The Warehouse Shipment Line which is going to be posted.
OnFilterWhseShptLineOnGetInvoicingBuffer
local procedure OnFilterWhseShptLineOnGetInvoicingBuffer(var WarehouseShipmentLine: Record "Warehouse Shipment Line")
Raised after filtering the Warehouse Shipment Lines and before inserting in the Invoicing Code Buffer.
Parameters / Return Value
WarehouseShipmentLine
Record "Warehouse Shipment Line"
Warehouse Shipment Line to filter
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.