Codeunit 18008386 EOS011 Contributions Utilities
Codeunit 18008386 EOS011 Contributions Utilities
Gathers all functions used to handle generic needs
Methods
GelLastContrLedgerEntryNo
procedure GelLastContrLedgerEntryNo(): Integer
Parameters / Return Value
- Returns
Integer
AddNewRegisterEntry
procedure AddNewRegisterEntry(EOS011ContrLedgerEntry: Record "EOS011 Contr. Ledger Entry"; isCorrection: Boolean): Integer
Parameters / Return Value
EOS011ContrLedgerEntry
Record "EOS011 Contr. Ledger Entry"isCorrection
BooleanReturns
Integer
LinkRegisterEntry
procedure LinkRegisterEntry(GenJournalLine: Record "Gen. Journal Line")
Parameters / Return Value
- GenJournalLine
Record "Gen. Journal Line"
GetVendorNoFromSalesperson
procedure GetVendorNoFromSalesperson(SalespersonPurchaserCode: Code[20]): Code[20]
Parameters / Return Value
SalespersonPurchaserCode
Code[20]Returns
Code[20]
UpdateFieldsOnSaleperson
procedure UpdateFieldsOnSaleperson(var Rec: Record "Salesperson/Purchaser"; xRec: Record "Salesperson/Purchaser"; inFieldNo: Integer; Hidedialog: Boolean)
Parameters / Return Value
Rec
Record "Salesperson/Purchaser"xRec
Record "Salesperson/Purchaser"inFieldNo
IntegerHidedialog
Boolean
CreateAndPostGLFromContrEntries
procedure CreateAndPostGLFromContrEntries(var EOS011ContrLedgerEntry: Record "EOS011 Contr. Ledger Entry";Correction:Boolean;Hidedialog:Boolean)
Parameters / Return Value
EOS011ContrLedgerEntry
Record "EOS011 Contr. Ledger Entry"Correction
BooleanHidedialog
Boolean
NewImportedEntry
procedure NewImportedEntry(var EOS011ContrLedgerEntry: Record "EOS011 Contr. Ledger Entry")
Parameters / Return Value
- EOS011ContrLedgerEntry
Record "EOS011 Contr. Ledger Entry"
OpenContrFromPage
procedure OpenContrFromPage(Document: Variant)
Parameters / Return Value
- Document
Variant
GetWithhContrEntryForDocument
procedure GetWithhContrEntryForDocument(Document: Variant;var EOS011BaseAmount: Decimal; var EOS011AgentAmount: Decimal; var EOS011AgentPerc: Decimal;var EOS011CompanyAmount: Decimal; var EOS011CompanyPerc: Decimal; var EOS011IntegrationAmount: Decimal)
Parameters / Return Value
Document
VariantEOS011BaseAmount
DecimalEOS011AgentAmount
DecimalEOS011AgentPerc
DecimalEOS011CompanyAmount
DecimalEOS011CompanyPerc
DecimalEOS011IntegrationAmount
Decimal
CollectContrLedgerEntryFromVariant
procedure CollectContrLedgerEntryFromVariant(var EOS011ContrLedgerEntry: Record "EOS011 Contr. Ledger Entry"; Document: Variant; ContrType: Integer)
Parameters / Return Value
EOS011ContrLedgerEntry
Record "EOS011 Contr. Ledger Entry"Document
VariantContrType
Integer
GetQuarterStartingDate
procedure GetQuarterStartingDate(Quarter: Integer; Year: Integer): Date
Parameters / Return Value
Quarter
IntegerYear
IntegerReturns
Date
GetQuarterEndingDate
procedure GetQuarterEndingDate(Quarter: Integer; Year: Integer): Date
Parameters / Return Value
Quarter
IntegerYear
IntegerReturns
Date
GetFirstIntegrQuarter
procedure GetFirstIntegrQuarter(VendorNo: Code[20]; Year: Integer): Integer
Parameters / Return Value
VendorNo
Code[20]Year
IntegerReturns
Integer
GetQuarterNo
procedure GetQuarterNo(ReferenceDate: Date): Integer
Parameters / Return Value
ReferenceDate
DateReturns
Integer
GetContrBaseAmountFromContrEntries
procedure GetContrBaseAmountFromContrEntries(VendorNo: Code[20]; StartingDate: Date; EndingDate: Date; FilterIntegrOption: Option; ContrType: Option) TotalBase: Decimal
Parameters / Return Value
VendorNo
Code[20]StartingDate
DateEndingDate
DateFilterIntegrOption
OptionContrType
OptionReturns
Decimal
GetContrBaseAmountFromContrEntriesCM
procedure GetContrBaseAmountFromContrEntriesCM(VendorNo: Code[20]; StartingDate: Date; EndingDate: Date; FilterIntegrOption: Option; ContrType: Option) TotalBase: Decimal
Parameters / Return Value
VendorNo
Code[20]StartingDate
DateEndingDate
DateFilterIntegrOption
OptionContrType
OptionReturns
Decimal
GetContrAmountFromContrEntries
procedure GetContrAmountFromContrEntries(VendorNo: Code[20]; StartingDate: Date; EndingDate: Date; FilterIntegrOption: Option; ContrType: Option) TotalBase: Decimal
Parameters / Return Value
VendorNo
Code[20]StartingDate
DateEndingDate
DateFilterIntegrOption
OptionContrType
OptionReturns
Decimal
ExecuteCalcForThisSalesp
procedure ExecuteCalcForThisSalesp(VendorNo: Code[20]; CalledFrom: Integer; RefDate: Date): Boolean
Parameters / Return Value
VendorNo
Code[20]CalledFrom
IntegerRefDate
DateReturns
Boolean
GetAnnualAmounts
procedure GetAnnualAmounts(Vendor: Record Vendor; RefDate: Date;var ENASARCOAmount: Decimal;var ENASARCOAmountSalesp: Decimal;var ENASARCOAmountComp: Decimal;var FIRRAmount: Decimal)
Parameters / Return Value
Vendor
Record "Vendor"RefDate
DateENASARCOAmount
DecimalENASARCOAmountSalesp
DecimalENASARCOAmountComp
DecimalFIRRAmount
Decimal
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.