-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: Removing URL link for C1 #373
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -578,7 +578,7 @@ def __construct_bill(self, bill: Bill, bill_lineitems: List[BillLineItem]) -> Di | |||||
settings.FYLE_APP_URL, | ||||||
bill_lineitems[0].expense.report_id, | ||||||
workspace.fyle_org_id, | ||||||
), | ||||||
) if settings.BRAND_ID == 'fyle' else None, | ||||||
"LineAmountTypes": "Exclusive" | ||||||
if general_settings.import_tax_codes | ||||||
else "NoTax", | ||||||
|
@@ -703,7 +703,7 @@ def __construct_bank_transaction( | |||||
settings.FYLE_APP_URL, | ||||||
bank_transaction_lineitems[0].expense.expense_id, | ||||||
workspace.fyle_org_id, | ||||||
), | ||||||
) if settings.BRAND_ID == 'fyle' else None, | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Update string formatting to use f-strings for consistency and performance. - "Url": "{}/app/admin/#/view_expense/{}?org_id={}".format(
- settings.FYLE_APP_URL,
- bank_transaction_lineitems[0].expense.expense_id,
- workspace.fyle_org_id,
- ) if settings.BRAND_ID == 'fyle' else None,
+ "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, Committable suggestion
Suggested change
ToolsRuff
|
||||||
"LineAmountTypes": "Exclusive" | ||||||
if general_settings.import_tax_codes | ||||||
else "NoTax", | ||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consider using an f-string for better readability and performance.
Committable suggestion
Tools
Ruff