Skip to content

Commit

Permalink
URL fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ruuushhh committed Feb 14, 2024
1 parent d7fd491 commit f6804b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/xero/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -844,7 +844,7 @@ def generate_export_url_and_update_expense(expense_group: ExpenseGroup, export_t
export_id = expense_group.response_logs['BankTransactions'][0]['BankTransactionID']
account_id = expense_group.response_logs['BankTransactions'][0]['BankAccount']['AccountID']
if workspace.xero_short_code:
url = f'https://go.xero.com/organisationlogin/default.aspx?shortcode={workspace.xero_short_code}&redirecturl=/Bank/ViewTransaction.aspx?bankTransactionID={export_id}'
url = f'https://go.xero.com/organisationlogin/default.aspx?shortcode={workspace.xero_short_code}&redirecturl=/Bank/ViewTransaction.aspx?bankTransactionID={export_id}&accountID={account_id}'
else:
url = f'https://go.xero.com/Bank/ViewTransaction.aspx?bankTransactionID={export_id}&accountID={account_id}'
except Exception as error:
Expand Down

0 comments on commit f6804b8

Please sign in to comment.