project QadFinancials > class BCurrency > business logic query CurrencyByCurrRoundingMethod

Description

Simple query on tables Currency and RoundingMethod that only returns the main properties of both tables - not the translatable descriptions on both tables!
Keep this query as simple as possible as this is used by some ancestor-classes and by classes that are called or used frequently!!!!!!


Parameters


iiCurrencyIDinteger
icCurrencyCodecharacter
icRoundingMethodCodecharacter


query condition


  each Currency where
Currency.Currency_ID = iiCurrencyID AND
Currency.CurrencyCode = icCurrencyCode

      first RoundingMethod (inner-join) where
RoundingMethod.RoundingMethod_ID = Currency.RoundingMethod_ID AND
RoundingMethod.RoundingMethodCode = icRoundingMethodCode


query sort order


Currency.CurrencyCode (ascending)


query resultset tqCurrencyByCurrRoundingMethod


field namedata typedb fielddescription
tiCurrencyNumberOfDecimalsintegerCurrency.CurrencyNumberOfDecimalsNumber of Decimals
tiCurrency_IDintegerCurrency.Currency_IDRecord ID
tcCurrencyCodecharacterCurrency.CurrencyCodeCurrency Code
tiRoundingMethod_IDintegerRoundingMethod.RoundingMethod_IDRecord ID
tcRoundingMethodCodecharacterRoundingMethod.RoundingMethodCodeCode
tdRoundingMethodUnitdecimalRoundingMethod.RoundingMethodUnitUnit
tdRoundingMethodThresholddecimalRoundingMethod.RoundingMethodThresholdThreshold
ti_sequenceintegercalculatedprimary index
tc_rowidcharactercalculated = rowid(Currency),rowid(RoundingMethod)


Internal usage


QadFinancials
method business.RoundAmount
method BCDocument.AdditionalUpdatesPostingRounding
method BCInvoice.CreateCIPostingValidate
method BDDocument.AdditionalUpdatesPostingRounding
method BDInvoice.CreateDIPostingValidate
method BPosting.AdditionalUpdatesPostFallBack
method BPosting.CreateRoundingPosting
method BPosting.ValidateComponentPreBalancePosting
method BMfgDomain.AdditionalUpdatesCopyDomainCtrlTables
method BMfgSystemAccountControl.PerformMfgUpdate
method BMfgSystemAccountControl.UpdateMfgData
method BMfgSystemAccountControl.UpdateRndMthd
method BRoundingMethod.ValidateComponent
method Session.GetDecimalSettings