Codeunit 18090617 EOS041 CDW Test Library

Codeunit 18090617 EOS041 CDW Test Library

Methods

SetReasonCodeVerification

procedure SetReasonCodeVerification(NewValue: Enum EOS041ConfirmationLevel)

Parameters / Return Value

  • NewValue Enum "EOS041ConfirmationLevel"

SetShipmentOnInvoice

procedure SetShipmentOnInvoice(IsEnabled: Boolean)

Parameters / Return Value

  • IsEnabled Boolean

SetExactCostReversal

procedure SetExactCostReversal(IsEnabled: Boolean)

Parameters / Return Value

  • IsEnabled Boolean

SetReceiptOnInvoice

procedure SetReceiptOnInvoice(IsEnabled: Boolean)

Parameters / Return Value

  • IsEnabled Boolean

CreateReasonCode

procedure CreateReasonCode(var ReasonCode: Record "Reason Code"; Policy: Enum "EOS041 Posting Policy")

Parameters / Return Value

  • ReasonCode Record "Reason Code"

  • Policy Enum "EOS041 Posting Policy"


CreateReasonCode

procedure CreateReasonCode(var ReasonCode: Record "Reason Code"; Policy: Enum "EOS041 Posting Policy"; ItemEntriesPolicy: Enum "EOS041 Item Entries Policy")

Parameters / Return Value

  • ReasonCode Record "Reason Code"

  • Policy Enum "EOS041 Posting Policy"

  • ItemEntriesPolicy Enum "EOS041 Item Entries Policy"


CreateDropShipmentSalesHeader

procedure CreateDropShipmentSalesHeader(var SalesHeader: Record "Sales Header"; var PurchHeader: Record "Purchase Header")

Parameters / Return Value

  • SalesHeader Record "Sales Header"

  • PurchHeader Record "Purchase Header"


CreateSalesHeaderForItem

procedure CreateSalesHeaderForItem(var SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; SalesDocumentType: Enum "Sales Document Type"; Item: Record Item; Qty: Decimal)

Parameters / Return Value

  • SalesHeader Record "Sales Header"

  • SalesLine Record "Sales Line"

  • SalesDocumentType Enum "Sales Document Type"

  • Item Record "Item"

  • Qty Decimal


CreatePurchHeaderForItem

procedure CreatePurchHeaderForItem(var PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; PurchDocumentType: Enum "Purchase Document Type"; Item: Record Item; Qty: Decimal)

Parameters / Return Value

  • PurchHeader Record "Purchase Header"

  • PurchLine Record "Purchase Line"

  • PurchDocumentType Enum "Purchase Document Type"

  • Item Record "Item"

  • Qty Decimal


CreateLotTrackedItem

procedure CreateLotTrackedItem(var Item: Record Item)

Parameters / Return Value

  • Item Record "Item"

EnsureNoSeriesRelationship

procedure EnsureNoSeriesRelationship(Code1: Code[20]; Code2: Code[20])

Parameters / Return Value

  • Code1 Code[20]

  • Code2 Code[20]


SetDocumentReasonCode

procedure SetDocumentReasonCode(var SalesHeader: Record "Sales Header"; ReasonCode: Code[10])

Parameters / Return Value

  • SalesHeader Record "Sales Header"

  • ReasonCode Code[10]


SetDocumentReasonCode

procedure SetDocumentReasonCode(DocumentType: Enum "Sales Document Type"; DocumentNo: Code[20]; ReasonCode: Code[10])

Parameters / Return Value

  • DocumentType Enum "Sales Document Type"

  • DocumentNo Code[20]

  • ReasonCode Code[10]


SetPostingNoSeries

procedure SetPostingNoSeries(var SalesHeader: Record "Sales Header"; NoSeries: Code[20])

Parameters / Return Value

  • SalesHeader Record "Sales Header"

  • NoSeries Code[20]


SetDocumentReasonCode

procedure SetDocumentReasonCode(var PurchHeader: Record "Purchase Header"; ReasonCode: Code[10])

Parameters / Return Value

  • PurchHeader Record "Purchase Header"

  • ReasonCode Code[10]


SetPostingNoSeries

procedure SetPostingNoSeries(var PurchHeader: Record "Purchase Header"; NoSeries: Code[20])

Parameters / Return Value

  • PurchHeader Record "Purchase Header"

  • NoSeries Code[20]


CreateInvoiceForSalesShipment

procedure CreateInvoiceForSalesShipment(var SalesInvHeader: Record "Sales Header"; SalesShptHeader: Record "Sales Shipment Header")

Parameters / Return Value

  • SalesInvHeader Record "Sales Header"

  • SalesShptHeader Record "Sales Shipment Header"


CreateInvoiceForSalesShipment

procedure CreateInvoiceForSalesShipment(var SalesInvHeader: Record "Sales Header"; DocumentNo: Code[20])

Parameters / Return Value

  • SalesInvHeader Record "Sales Header"

  • DocumentNo Code[20]


CreateInvoiceForReturnReceipt

procedure CreateInvoiceForReturnReceipt(var SalesInvHeader: Record "Sales Header"; ReturnRcptHeader: Record "Return Receipt Header")

Parameters / Return Value

  • SalesInvHeader Record "Sales Header"

  • ReturnRcptHeader Record "Return Receipt Header"


CreateInvoiceForReturnReceipt

procedure CreateInvoiceForReturnReceipt(var SalesInvHeader: Record "Sales Header"; DocumentNo: Code[20])

Parameters / Return Value

  • SalesInvHeader Record "Sales Header"

  • DocumentNo Code[20]


CreateInvoiceForPurchReceipt

procedure CreateInvoiceForPurchReceipt(var PurchInvHeader: Record "Purchase Header"; PurchRcptHeader: Record "Purch. Rcpt. Header")

Parameters / Return Value

  • PurchInvHeader Record "Purchase Header"

  • PurchRcptHeader Record "Purch. Rcpt. Header"


CreateInvoiceForPurchReceipt

procedure CreateInvoiceForPurchReceipt(var PurchInvHeader: Record "Purchase Header"; DocumentNo: Code[20])

Parameters / Return Value

  • PurchInvHeader Record "Purchase Header"

  • DocumentNo Code[20]


CreateInvoiceForReturnShipment

procedure CreateInvoiceForReturnShipment(var PurchInvHeader: Record "Purchase Header"; ReturnShptHeader: Record "Return Shipment Header")

Parameters / Return Value

  • PurchInvHeader Record "Purchase Header"

  • ReturnShptHeader Record "Return Shipment Header"


CreateInvoiceForReturnShipment

procedure CreateInvoiceForReturnShipment(var PurchInvHeader: Record "Purchase Header"; DocumentNo: Code[20])

Parameters / Return Value

  • PurchInvHeader Record "Purchase Header"

  • DocumentNo Code[20]


TestSalesShipmentInvoiced

procedure TestSalesShipmentInvoiced(SalesShptNo: Code[20])

Parameters / Return Value

  • SalesShptNo Code[20]

TestReturnReceiptInvoiced

procedure TestReturnReceiptInvoiced(ReturnRcptNo: Code[20])

Parameters / Return Value

  • ReturnRcptNo Code[20]

TestPurchRcptInvoiced

procedure TestPurchRcptInvoiced(PurchRcptNo: Code[20])

Parameters / Return Value

  • PurchRcptNo Code[20]

TestReturnShipmentInvoiced

procedure TestReturnShipmentInvoiced(ReturnShptNo: Code[20])

Parameters / Return Value

  • ReturnShptNo Code[20]

AssertNoItemEntries

procedure AssertNoItemEntries(DocumentNo: Code[20]; PostingDate: Date)

Parameters / Return Value

  • DocumentNo Code[20]

  • PostingDate Date


SetVendorCrMemoNo

procedure SetVendorCrMemoNo(var PurchHeader: Record "Purchase Header"; VendorCrMemoNo: Code[35])

Parameters / Return Value

  • PurchHeader Record "Purchase Header"

  • VendorCrMemoNo Code[35]


SetVendorInvoiceNo

procedure SetVendorInvoiceNo(var PurchHeader: Record "Purchase Header"; VendorInvoiceNo: Code[35])

Parameters / Return Value

  • PurchHeader Record "Purchase Header"

  • VendorInvoiceNo Code[35]



EOS Labs -