Codeunit 18004272 EOS037 Test Library
Codeunit 18004272 EOS037 Test Library
Methods
SetSalesCalcInvDiscount
procedure SetSalesCalcInvDiscount(NewValue: Boolean)
Parameters / Return Value
- NewValue
Boolean
SetPurchCalcInvDiscount
procedure SetPurchCalcInvDiscount(NewValue: Boolean)
Parameters / Return Value
- NewValue
Boolean
CreateCustomerWithInvDiscount
procedure CreateCustomerWithInvDiscount(var Cust: Record Customer; var CustInvDisc: Record "Cust. Invoice Disc."; InvDiscPercent: Decimal)
Parameters / Return Value
Cust
Record "Customer"
CustInvDisc
Record "Cust. Invoice Disc."
InvDiscPercent
Decimal
CreateCustomerWithInvDiscount
procedure CreateCustomerWithInvDiscount(var Cust: Record Customer; InvDiscPercent: Decimal)
Parameters / Return Value
Cust
Record "Customer"
InvDiscPercent
Decimal
TestScalarPercent
procedure TestScalarPercent(var TempDiscSetEntry: Record "EOS037 Discount Set Entry"; ExpectedDiscount: Decimal)
Parameters / Return Value
TempDiscSetEntry
Record "EOS037 Discount Set Entry"
ExpectedDiscount
Decimal
CreateDiscountSetEntryPercent
procedure CreateDiscountSetEntryPercent(var TempDiscSetEntry: Record "EOS037 Discount Set Entry"; Percentage: Decimal)
Parameters / Return Value
TempDiscSetEntry
Record "EOS037 Discount Set Entry"
Percentage
Decimal
CreateDiscountSetEntryAmount
procedure CreateDiscountSetEntryAmount(var TempDiscSetEntry: Record "EOS037 Discount Set Entry"; DiscAmount: Decimal)
Parameters / Return Value
TempDiscSetEntry
Record "EOS037 Discount Set Entry"
DiscAmount
Decimal
CreateDiscountSet
procedure CreateDiscountSet(Perc1: Integer; Perc2: Integer; Perc3: Integer): Guid
Parameters / Return Value
Perc1
Integer
Perc2
Integer
Perc3
Integer
Returns
Guid
InitDiscountSet
procedure InitDiscountSet(var TempDiscSetEntry: Record "EOS037 Discount Set Entry")
Parameters / Return Value
- TempDiscSetEntry
Record "EOS037 Discount Set Entry"
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]
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]
CreateSalesLineDisc
procedure CreateSalesLineDisc(var SalesLineDisc: Record "Sales Line Discount"; SalesType: Integer; SalesCode: Code[20]; ItemNo: Code[20]; DiscPerc: Decimal)
Parameters / Return Value
SalesLineDisc
Record "Sales Line Discount"
SalesType
Integer
SalesCode
Code[20]
ItemNo
Code[20]
DiscPerc
Decimal
CreateSalesLineDisc
procedure CreateSalesLineDisc(var SalesLineDisc: Record "Sales Line Discount"; SalesType: Integer; SalesCode: Code[20]; ItemNo: Code[20])
Parameters / Return Value
SalesLineDisc
Record "Sales Line Discount"
SalesType
Integer
SalesCode
Code[20]
ItemNo
Code[20]
CreateSalesLineDiscWithMinQty
procedure CreateSalesLineDiscWithMinQty(var SalesLineDisc: Record "Sales Line Discount"; SalesType: Integer; SalesCode: Code[20]; ItemNo: Code[20]; MinQty: Decimal; DiscPerc: Decimal)
Parameters / Return Value
SalesLineDisc
Record "Sales Line Discount"
SalesType
Integer
SalesCode
Code[20]
ItemNo
Code[20]
MinQty
Decimal
DiscPerc
Decimal
CreateSalesLineDiscWithMinQty
procedure CreateSalesLineDiscWithMinQty(var SalesLineDisc: Record "Sales Line Discount"; SalesType: Integer; SalesCode: Code[20]; ItemNo: Code[20]; MinQty: Decimal)
Parameters / Return Value
SalesLineDisc
Record "Sales Line Discount"
SalesType
Integer
SalesCode
Code[20]
ItemNo
Code[20]
MinQty
Decimal
CreatePriceListLine
procedure CreatePriceListLine(var PriceListLine: Record "Price List Line"; SourceType: Enum "Price Source Type"; SourceNo: Code[20]; ItemNo: Code[20]; DiscPerc: Decimal)
Parameters / Return Value
PriceListLine
Record "Price List Line"
SourceType
Enum "Price Source Type"
SourceNo
Code[20]
ItemNo
Code[20]
DiscPerc
Decimal
CreatePriceListLine
procedure CreatePriceListLine(var PriceListLine: Record "Price List Line"; SourceType: Enum "Price Source Type"; SourceNo: Code[20]; ItemNo: Code[20])
Parameters / Return Value
PriceListLine
Record "Price List Line"
SourceType
Enum "Price Source Type"
SourceNo
Code[20]
ItemNo
Code[20]
SetDiscCalculationMethod
procedure SetDiscCalculationMethod(NewMethod: Enum "EOS037 Calculation Method")
Parameters / Return Value
- NewMethod
Enum "EOS037 Calculation Method"
SetPriceCalculationMethod
procedure SetPriceCalculationMethod(NewMethod: Enum "EOS037 Calculation Method")
Parameters / Return Value
- NewMethod
Enum "EOS037 Calculation Method"
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.