TRANSLATE_PROFIT_AND_COMMIT 
TRANSLATE_PROFIT_AND_COMMIT(%bs_profit_acc%,
%bs_profit_acc_fxdiff%,
%avg_rate%,
%end_rate%)
The balance statement (BS) account is translated at the AVG rate, and the difference from END rate is posted into FXDIFF account. This function defines a complete commit section.