Skip to content

Commit

Permalink
fix: Removing URL link for C1 (#373)
Browse files Browse the repository at this point in the history
* fix: Removing URL link for C1

* changing to f string

* changing to f string
  • Loading branch information
Shwetabhk authored Jun 19, 2024
1 parent 684f932 commit b185f31
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions apps/xero/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -574,11 +574,7 @@ def __construct_bill(self, bill: Bill, bill_lineitems: List[BillLineItem]) -> Di
bill_payload = {
"Type": "ACCPAY",
"Contact": {"ContactID": bill.contact_id},
"Url": "{}/app/admin/#/reports/{}?org_id={}".format(
settings.FYLE_APP_URL,
bill_lineitems[0].expense.report_id,
workspace.fyle_org_id,
),
"Url": f'{settings.FYLE_APP_URL}/app/admin/#/view_expense/{bill_lineitems[0].expense.expense_id}?org_id={workspace.fyle_org_id}' if settings.BRAND_ID == 'fyle' else None,
"LineAmountTypes": "Exclusive"
if general_settings.import_tax_codes
else "NoTax",
Expand Down Expand Up @@ -699,11 +695,7 @@ def __construct_bank_transaction(
"Type": "SPEND",
"Contact": {"ContactID": bank_transaction.contact_id},
"BankAccount": {"AccountID": bank_transaction.bank_account_code},
"Url": "{}/app/admin/#/view_expense/{}?org_id={}".format(
settings.FYLE_APP_URL,
bank_transaction_lineitems[0].expense.expense_id,
workspace.fyle_org_id,
),
"Url": f'{settings.FYLE_APP_URL}/app/admin/#/view_expense/{bank_transaction_lineitems[0].expense.expense_id}?org_id={workspace.fyle_org_id}' if settings.BRAND_ID == 'fyle' else None,
"LineAmountTypes": "Exclusive"
if general_settings.import_tax_codes
else "NoTax",
Expand Down

0 comments on commit b185f31

Please sign in to comment.