Codeunit 18008387 EOS011 Enasarco Ass. Calc.

Codeunit 18008387 EOS011 Enasarco Ass. Calc.

Gathers all functions used to handle Enasarco assistance calculation

Methods

CalculateEnasarcoWithheld

procedure CalculateEnasarcoWithheld(TempDocumentHeader: Record "Purchase Header" temporary; DocumentAmount: Decimal;var ByAgent: Decimal; var ByCompany: Decimal; var IntegrationAmount: Decimal; var BaseAmount: Decimal;StartingDate: Date; EndingDate: Date; var WithheldPercAgent: Decimal; var WithheldPercCompany: Decimal)

Parameters / Return Value

  • TempDocumentHeader Record "Purchase Header"

  • DocumentAmount Decimal

  • ByAgent Decimal

  • ByCompany Decimal

  • IntegrationAmount Decimal

  • BaseAmount Decimal

  • StartingDate Date

  • EndingDate Date

  • WithheldPercAgent Decimal

  • WithheldPercCompany Decimal


GetEnasarcoAssistFundBracket

procedure GetEnasarcoAssistFundBracket(ReferenceDate: Date; BracketTo: Decimal; var EOS011EnasAssistanceSetup: Record "EOS011 Enas. Assistance Setup"): Boolean

Parameters / Return Value

  • ReferenceDate Date

  • BracketTo Decimal

  • EOS011EnasAssistanceSetup Record "EOS011 Enas. Assistance Setup"

  • Returns Boolean



EOS Labs -