Show TOC

Syntax documentationFX_OVERRIDE_NOZERO Locate this document in the navigation structure

FX_OVERRIDE_NOZERO(%from_ovr_acc%,

%to_ovr_acc%,

%fx_diff_acc%,

%CURR%)

This formula is equivalent to the FX_OVERRIDE formula, and it takes the exact same parameters. However, when using this formula, the override mechanism only takes place if an overriding amount is entered. If not (or if set to zero), the default translation prevails.

Parameters:

%from_ovr_acc% The account from which to read the optional overriding amount

%to_ovr_acc% The account to override

%fx_diff_acc% The account used to post the difference from default

%CURR% The reporting currency of the overriding amount

General remarks:

  • This formula does not require a lookup.

  • It can be invoked multiple times before a commit.

  • It MUST be executed AFTER the default translation.

  • The section MUST NOT contain any CLEAR_DESTINATION instruction.

Enter one or more lines in the logic that invoke this subroutine with the appropriate parameters values like in the following example:

Example Example

FX_OVERRIDE_NOZERO(OVR_ACC1_USD, ACC1, FXDIF_ACC1_USD, USD)

FX_OVERRIDE_NOZERO(OVR_ACC2_USD, ACC2, FXDIF_ACC2_USD, USD)

*COMMIT

End of the example.