Offer Letter Tokens
Summary:
Hello While creating the offer we are getting the space in between the sentence we have used below query in the token.
Yellow highlighted
<!-- Initialize variable --><?xdoxslt:set_variable($_XDOCTX, 'bonusAmount', 0)?><!-- Loop through OTHER_COMPENSATION --><?for-each:OTHER_COMPENSATION?><?if:OPTION_NAME='Target Amount'?><?xdoxslt:set_variable($_XDOCTX, 'bonusAmount', xdoxslt:to_number(xdoxslt:replace(VALUE, '[^\d.]', '')))?><?end if?><?end for-each?><!-- Compute total compensation --><?xdoxslt:set_variable($_XDOCTX, 'totalComp', number(SALARY/SALARY_AMOUNT) + xdoxslt:get_variable($_XDOCTX, 'bonusAmount'))?>$<?format-number(xdoxslt:get_variable($_XDOCTX, 'totalComp'), '#,##0.00')?>
Green highlighted
While creating the offer we are getting the space before token we have used below query in the Data Model.