Skip to content

Commit

Permalink
Fix: Fyle app Redirect URL (#474)
Browse files Browse the repository at this point in the history
  • Loading branch information
ruuushhh authored Jan 4, 2024
1 parent 54a5909 commit 3928ddd
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
8 changes: 4 additions & 4 deletions apps/netsuite/connector.py
Original file line number Diff line number Diff line change
Expand Up @@ -1028,7 +1028,7 @@ def construct_bill_lineitems(self, bill_lineitems: List[BillLineitem],
{
'scriptId': 'custcolfyle_expense_url',
'type': 'String',
'value': '{}/app/main/#/enterprise/view_expense/{}?org_id={}'.format(
'value': '{}/app/admin/#/enterprise/view_expense/{}?org_id={}'.format(
settings.FYLE_EXPENSE_URL,
expense.expense_id,
org_id
Expand Down Expand Up @@ -1283,7 +1283,7 @@ def construct_credit_card_charge_lineitems(
netsuite_custom_segments.append(
{
'scriptId': 'custcolfyle_expense_url',
'value': '{}/app/main/#/enterprise/view_expense/{}?org_id={}'.format(
'value': '{}/app/admin/#/enterprise/view_expense/{}?org_id={}'.format(
settings.FYLE_EXPENSE_URL,
expense.expense_id,
org_id
Expand Down Expand Up @@ -1474,7 +1474,7 @@ def construct_expense_report_lineitems(
{
'scriptId': 'custcolfyle_expense_url',
'type': 'String',
'value': '{}/app/main/#/enterprise/view_expense/{}?org_id={}'.format(
'value': '{}/app/admin/#/enterprise/view_expense/{}?org_id={}'.format(
settings.FYLE_EXPENSE_URL,
expense.expense_id,
org_id
Expand Down Expand Up @@ -1722,7 +1722,7 @@ def construct_journal_entry_lineitems(self, journal_entry_lineitems: List[Journa
{
'scriptId': 'custcolfyle_expense_url',
'type': 'String',
'value': '{}/app/main/#/enterprise/view_expense/{}?org_id={}'.format(
'value': '{}/app/admin/#/enterprise/view_expense/{}?org_id={}'.format(
settings.FYLE_EXPENSE_URL,
expense.expense_id,
org_id
Expand Down
22 changes: 11 additions & 11 deletions tests/test_netsuite/fixtures.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@
{
"scriptId": "custcolfyle_expense_url",
"type": "String",
"value": "https://staging1.fyle.tech/app/main/#/enterprise/view_expense/txy6folbrG2j?org_id=or79Cob97KSh",
"value": "https://staging1.fyle.tech/app/admin/#/enterprise/view_expense/txy6folbrG2j?org_id=or79Cob97KSh",
}
],
"isBillable": None,
Expand Down Expand Up @@ -382,7 +382,7 @@
{
"scriptId": "custcolfyle_expense_url",
"type": "String",
"value": "https://staging1.fyle.tech/app/main/#/enterprise/view_expense/txT4kpMbHdKn1?org_id=or79Cob97KSh",
"value": "https://staging1.fyle.tech/app/admin/#/enterprise/view_expense/txT4kpMbHdKn1?org_id=or79Cob97KSh",
}
],
"isBillable": None,
Expand Down Expand Up @@ -533,7 +533,7 @@
{
"scriptId": "custcolfyle_expense_url",
"type": "String",
"value": "https://staging1.fyle.tech/app/main/#/enterprise/view_expense/txT4kpMbHdKn12?org_id=or79Cob97KSh",
"value": "https://staging1.fyle.tech/app/admin/#/enterprise/view_expense/txT4kpMbHdKn12?org_id=or79Cob97KSh",
}
],
"isBillable": None,
Expand Down Expand Up @@ -598,7 +598,7 @@
{
"scriptId": "custcolfyle_expense_url",
"type": "String",
"value": "https://staging1.fyle.tech/app/main/#/enterprise/view_expense/txT4kpMbHdKn1?org_id=or79Cob97KSh",
"value": "https://staging1.fyle.tech/app/admin/#/enterprise/view_expense/txT4kpMbHdKn1?org_id=or79Cob97KSh",
}
],
"isBillable": None,
Expand Down Expand Up @@ -768,7 +768,7 @@
},
'customFieldList': [{'scriptId': 'custcolfyle_expense_url',
'type': 'String',
'value': 'None/app/main/#/enterprise/view_expense/txjvDntD9ZXR?org_id=or79Cob97KSh'
'value': 'None/app/admin/#/enterprise/view_expense/txjvDntD9ZXR?org_id=or79Cob97KSh'
}],
'exchangeRate': None,
'expenseDate': '2021-12-08T08:30:18',
Expand Down Expand Up @@ -870,7 +870,7 @@
'creditTax': None,
'customFieldList': [{'scriptId': 'custcolfyle_expense_url',
'type': 'String',
'value': 'None/app/main/#/enterprise/view_expense/tx7A5QpesrV5?org_id=orHe8CpW2hyN'
'value': 'None/app/admin/#/enterprise/view_expense/tx7A5QpesrV5?org_id=orHe8CpW2hyN'
}],
'debit': None,
'debitTax': None,
Expand Down Expand Up @@ -928,7 +928,7 @@
'creditTax': None,
'customFieldList': [{'scriptId': 'custcolfyle_expense_url',
'type': 'String',
'value': 'None/app/main/#/enterprise/view_expense/tx7A5QpesrV5?org_id=orHe8CpW2hyN'
'value': 'None/app/admin/#/enterprise/view_expense/tx7A5QpesrV5?org_id=orHe8CpW2hyN'
}],
'debit': 120.0,
'debitTax': None,
Expand Down Expand Up @@ -999,7 +999,7 @@
'location': {'internalId': None},
'customer': {'internalId': None},
'customFieldList': [{'scriptId': 'custcolfyle_expense_url',
'value': 'None/app/main/#/enterprise/view_expense/txcKVVELn1Vl?org_id=orHe8CpW2hyN'
'value': 'None/app/admin/#/enterprise/view_expense/txcKVVELn1Vl?org_id=orHe8CpW2hyN'
}],
'isBillable': False,
'taxAmount': None,
Expand Down Expand Up @@ -1034,7 +1034,7 @@
'location': {'internalId': None},
'customer': {'internalId': None},
'customFieldList': [{'scriptId': 'custcolfyle_expense_url',
'value': 'None/app/main/#/enterprise/view_expense/txcKVVELn1Vl?org_id=orHe8CpW2hyN'
'value': 'None/app/admin/#/enterprise/view_expense/txcKVVELn1Vl?org_id=orHe8CpW2hyN'
}],
'isBillable': False,
'taxAmount': None,
Expand Down Expand Up @@ -1480,7 +1480,7 @@
'customFieldList': {
'customField': [
{
'value': 'None/app/main/#/enterprise/view_expense/tx7b3e705y5p?org_id=or7m5SVD9Rv1',
'value': 'None/app/admin/#/enterprise/view_expense/tx7b3e705y5p?org_id=or7m5SVD9Rv1',
'internalId': '4584',
'scriptId': 'custcolfyle_expense_url'
}
Expand Down Expand Up @@ -1598,7 +1598,7 @@
'customFieldList': {
'customField': [
{
'value': 'None/app/main/#/enterprise/view_expense/tx7b3e705y5p?org_id=or7m5SVD9Rv1',
'value': 'None/app/admin/#/enterprise/view_expense/tx7b3e705y5p?org_id=or7m5SVD9Rv1',
'internalId': '4584',
'scriptId': 'custcolfyle_expense_url'
}
Expand Down

0 comments on commit 3928ddd

Please sign in to comment.