Overview
When you use Pay with Xe in Business Central, each payment journal line has a Transaction Type:
- Buy
- Sell
You do not need any special Xe configuration for this. Transaction Type is calculated from the currencies on the payment journal line, specifically:
- The posting currency on the payment line
- The balance account currency (the bank account you are paying from)
This article explains:
- When Business Central sets "Transaction Type" automatically
- When you must select "Transaction Type" manually
- The rule used to calculate "Buy" vs "Sell"
- The currency requirement for "Vendor and Recipient Bank Account"
When Business Central sets "Transaction Type" automatically
Business Central sets Transaction Type for you when payment lines are created from:
- Applied entries
- Suggested vendor payments / suggested vendor Invoices
In these cases:
- Business Central creates the payment journal lines.
- For each Xe payment line, it compares:
- The posting currency on the line, and
- The balance account currency (currency of the bank account on the line)
- It uses the rule in "how Transaction Type is calculated" to decide whether the line is Buy or Sell.
You normally do not need to change Transaction Type on these system-generated lines.
When you must select "Transaction Type" manually
You must manually set "Transaction Type" on the payment journal line when you:
- Add payment lines manually in the Payment Journal (lines not created from applied entries or suggested vendor payments).
For each manual Xe payment line:
- Open the Payment Journal.
- Enter the line details:
- Account Type (for example, Vendor)
- Account No.
- Amount
- Payment Method Code = your Xe method (for example, XE)
- Balance Account Type = Bank Account
- Balance Account No. = the bank account you're paying from
- Currency Code on the line (this is the posting currency)
- Set Transaction Type using the rule below:
- Sell – if posting currency is the same as the balance account currency
- Buy – if posting currency is different from the balance account currency
You can override Transaction Type as long as the currency validations are satisfied.
How "Transaction Type" is calculated
Business Central uses these two values on the payment journal line:
- Posting currency
The currency code on the payment journal line (what you see in the Currency Code field, or LCY if left blank). - Balance account currency
The currency of the bank account selected in Balance Account No.
The calculation rule is:
- Same-currency payments (no FX)
- If the payment is a same-currency payment (the payment is sent and received in the same currency, with no currency exchange involved):
- Transaction Type = Buy
- Same-currency payments are always classified as Buy and are not treated as Sell by default.
- All other payments (FX involved)
- For payments where there is a currencu exchange involved (for example, the recipient or invoice is in a different currency):
- If the posting currency is the same as the balance account currency
→ Transaction Type = Sell - If the posting currency is different from the balance account currency
→ Transaction Type = Buy
Simple rule to remember
Is the posting currency the same as balance account currency?
- Yes → Transaction Type = Sell
- No → Transaction Type = Buy
Note:
For Settlement or Payment Type transfers, the Recipient Bank Account Currency Code must be the same as the "Vendor Foreign Trade Currency Code", or the "Vendor Foreign Trade Currency Code" must be LCY.