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 Boolean

  • Returns 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 Integer

  • Hidedialog 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 Boolean

  • Hidedialog 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 Variant

  • EOS011BaseAmount Decimal

  • EOS011AgentAmount Decimal

  • EOS011AgentPerc Decimal

  • EOS011CompanyAmount Decimal

  • EOS011CompanyPerc Decimal

  • EOS011IntegrationAmount 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 Variant

  • ContrType Integer


GetQuarterStartingDate

procedure GetQuarterStartingDate(Quarter: Integer; Year: Integer): Date

Parameters / Return Value

  • Quarter Integer

  • Year Integer

  • Returns Date


GetQuarterEndingDate

procedure GetQuarterEndingDate(Quarter: Integer; Year: Integer): Date

Parameters / Return Value

  • Quarter Integer

  • Year Integer

  • Returns Date


GetFirstIntegrQuarter

procedure GetFirstIntegrQuarter(VendorNo: Code[20]; Year: Integer): Integer

Parameters / Return Value

  • VendorNo Code[20]

  • Year Integer

  • Returns Integer


GetQuarterNo

procedure GetQuarterNo(ReferenceDate: Date): Integer

Parameters / Return Value

  • ReferenceDate Date

  • Returns Integer


GetContrBaseAmountFromContrEntries

procedure GetContrBaseAmountFromContrEntries(VendorNo: Code[20]; StartingDate: Date; EndingDate: Date; FilterIntegrOption: Option; ContrType: Option) TotalBase: Decimal

Parameters / Return Value

  • VendorNo Code[20]

  • StartingDate Date

  • EndingDate Date

  • FilterIntegrOption Option

  • ContrType Option

  • Returns Decimal


GetContrBaseAmountFromContrEntriesCM

procedure GetContrBaseAmountFromContrEntriesCM(VendorNo: Code[20]; StartingDate: Date; EndingDate: Date; FilterIntegrOption: Option; ContrType: Option) TotalBase: Decimal

Parameters / Return Value

  • VendorNo Code[20]

  • StartingDate Date

  • EndingDate Date

  • FilterIntegrOption Option

  • ContrType Option

  • Returns Decimal


GetContrAmountFromContrEntries

procedure GetContrAmountFromContrEntries(VendorNo: Code[20]; StartingDate: Date; EndingDate: Date; FilterIntegrOption: Option; ContrType: Option) TotalBase: Decimal

Parameters / Return Value

  • VendorNo Code[20]

  • StartingDate Date

  • EndingDate Date

  • FilterIntegrOption Option

  • ContrType Option

  • Returns Decimal


ExecuteCalcForThisSalesp

procedure ExecuteCalcForThisSalesp(VendorNo: Code[20]; CalledFrom: Integer; RefDate: Date): Boolean

Parameters / Return Value

  • VendorNo Code[20]

  • CalledFrom Integer

  • RefDate Date

  • Returns 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 Date

  • ENASARCOAmount Decimal

  • ENASARCOAmountSalesp Decimal

  • ENASARCOAmountComp Decimal

  • FIRRAmount Decimal



EOS Labs -