App icon indicating copy to clipboard operation
App copied to clipboard

Pay with Expensify displayed for approved card expenses for the submitter

Open m-natarajan opened this issue 2 months ago • 2 comments

If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!


Version Number: Reproducible in staging?: Needs Reproduction Reproducible in production?: Needs Reproduction If this was caught on HybridApp, is this reproducible on New Expensify Standalone?: If this was caught during regression testing, add the test name, ID and link from TestRail: Email or phone of affected tester (no customers): Logs: https://stackoverflow.com/c/expensify/questions/4856 Expensify/Expensify Issue URL: Issue reported by: @heyjennahay Slack conversation (hyperlinked to channel name): #migrate

Action Performed:

  1. Submit a report in OldDot with a mix of card and OOP expense
  2. The expense auto approved as per the workspace rules
  3. Login to the NewDot with the same account and open the report

Expected Result:

No Pay with Expensify option as the report is auto approved

Actual Result:

Pay with Expensify displayed for approved card expenses for the submitter

Email also received for approver (Not payer) with Pay Button for auto approved report

Workaround:

Unknown

Platforms:

Which of our officially supported platforms is this issue occurring on?

  • [ ] Android: Standalone
  • [ ] Android: HybridApp
  • [ ] Android: mWeb Chrome
  • [ ] iOS: Standalone
  • [ ] iOS: HybridApp
  • [ ] iOS: mWeb Safari
  • [x] MacOS: Chrome / Safari
  • [ ] MacOS: Desktop

Screenshots/Videos

Add any screenshot/video evidence

image (6)

image (7)

image (8)

image (10)

{
      "chatReportID": "5173333429439527",
      "chatType": "",
      "currency": "EUR",
      "description": "",
      "errorFields": {},
      "hasOutstandingChildRequest": false,
      "hasOutstandingChildTask": false,
      "hasParentAccess": true,
      "isCancelledIOU": false,
      "isOwnPolicyExpenseChat": false,
      "isPinned": false,
      "isWaitingOnBankAccount": false,
      "lastActionType": "EXPORTINTEGRATION",
      "lastActorAccountID": "10903701",
      "lastMessageHtml": "Concierge exported this report to NetSuite. View out of pocket expenses. View company card expenses",
      "lastMessageText": "Concierge exported this report to NetSuite. View out of pocket expenses. View c…",
      "lastReadSequenceNumber": 0,
      "lastReadTime": "2024-11-13 12:07:56.542",
      "lastVisibleActionCreated": "2024-11-12 18:40:16.849",
      "lastVisibleActionLastModified": "2024-11-12 18:40:16.849",
      "managerID": 1381556,
      "nonReimbursableTotal": -1335,
      "notificationPreference": "hidden",
      "oldPolicyName": "",
      "ownerAccountID": 2840332,
      "parentReportActionID": "4437845246722994423",
      "parentReportID": "5173333429439527",
      "participants": {
            "1381556": {
                  "hidden": true,
                  "notificationPreference": "hidden"
            },
            "2840332": {
                  "hidden": true,
                  "notificationPreference": "hidden"
            },
            "9645353": {
                  "hidden": true,
                  "notificationPreference": "hidden"
            },
            "9662119": {
                  "hidden": true,
                  "notificationPreference": "hidden"
            },
            "9713816": {
                  "hidden": true,
                  "notificationPreference": "hidden"
            },
            "10903701": {
                  "hidden": false,
                  "notificationPreference": "always"
            }
      },
      "permissions": [],
      "policyID": "9106A4CE5D9D5ACE",
      "private_isArchived": "",
      "reportID": "6376119163420666",
      "reportName": "[Expenses - Expensify NL] Jenna's Expenses 2024-11-05 #R00TCZ9Vza7G",
      "stateNum": 2,
      "statusNum": 3,
      "total": -5090,
      "type": "expense",
      "unheldNonReimbursableTotal": -1335,
      "unheldTotal": -5090,
      "welcomeMessage": "",
      "writeCapability": "all",
      "isLoadingPrivateNotes": false,
      "privateNotes": {
            "2840332": {
                  "note": ""
            }
      }
}
{isFromFullPolicy: false, id: '9106A4CE5D9D5ACE', name: 'Expenses - Expensify NL', role: 'user', type: 'corporate', …}
address
: 
addressStreet
: 
"Markt 14"
city
: 
""
country
: 
"NL"
state
: 
""
zipCode
: 
"6211 CJ Maastricht"
approvalMode
: 
"ADVANCED"
approver
: 
""
areCategoriesEnabled
: 
true
areCompanyCardsEnabled
: 
false
areConnectionsEnabled
: 
true
areDistanceRatesEnabled
: 
true
areExpensifyCardsEnabled
: 
false
areInvoicesEnabled
: 
false
arePerDiemRatesEnabled
: 
false
areReportFieldsEnabled
: 
true
areRulesEnabled
: 
false
areTagsEnabled
: 
true
areWorkflowsEnabled
: 
true
autoReimbursement
: 
limit
: 
0
autoReimbursementLimit
: 
0
autoReporting
: 
true
autoReportingFrequency
: 
"weekly"
autoReportingOffset
: 
1
avatarURL
: 
""
chatReportIDAdmins
: 
75474096
chatReportIDAnnounce
: 
75474095
connections
: 
netsuite
: 
accountID
: 
"4681086"
config
: 
{autoSync: {…}}
lastErrorSyncDate
: 
""
lastSync
: 
{errorDate: '', errorMessage: '', isAuthenticationError: false, isConnected: true, isSuccessful: true, …}
lastSyncDate
: 
"2024-11-12T17:12:46+0000"
options
: 
{config: {…}, data: {…}}
source
: 
"AUTOSYNC"
tokenID
: 
"QUUW1RWhSd4rGFLzLP78M7QXW+W6P0RpLvEVu8PrmiiS12hr3hUqvJjr0c8cHNj5c0g15hMX91+VlnPZqKqo3lg0jVXsThtU001mdFwynvA=;FpyKvYtNxXNgnGfjUJ9hZA==;9SqCDSQrwuHnpFllZagC81BfHIbowLWp4Vfr4k9EGDE0kPsurnjtvqQ1mR29XRIV63Yu+60gADbOm9S8/vfGtA=="
tokenSecret
: 
"/x7iQQf3qrzneg6tsLitvIFLBpug1W25BNRna/HvdggoGO3DvrafKMCuIKnjYJyt48zPoIKwiraIFB1XltqxqVS2GLnrpouu6O59NmZ+36E=;9Hobe3d6/iOlIcovF36YMg==;MPpu6Rtj6ybtRZoqw9wtmXwd+cFz4CCwrr6npiMeAAJ7gniZMoNe0JP0aR60WEz+HaoOQ6T9pDV+y9ON7ef9hQ=="
verified
: 
true
customUnits
: 
5d39c8cc2bcfc
: 
attributes
: 
{taxEnabled: false, unit: 'mi'}
customUnitID
: 
"5d39c8cc2bcfc"
defaultCategory
: 
""
enabled
: 
true
name
: 
"Distance"
rates
: 
{5d39c8cc2bd17: {…}}
defaultBillable
: 
false
description
: 
""
disabledFields
: 
defaultBillable
: 
true
reimbursable
: 
true
eReceipts
: 
false
employeeList
: 
[email protected]
: 
email
: 
"[email protected]"
role
: 
"admin"
submitsTo
: 
"[email protected]"
[email protected]
: 
email
: 
"[email protected]"
role
: 
"admin"
submitsTo
: 
"[email protected]"
[email protected]
: 
email
: 
"[email protected]"
role
: 
"auditor"
submitsTo
: 
"[email protected]"
[email protected]
: 
email
: 
"[email protected]"
role
: 
"user"
rules
: 
[{…}]
submitsTo
: 
"[email protected]"
[email protected]
: 
email
: 
"[email protected]"
role
: 
"auditor"
submitsTo
: 
"[email protected]"
[email protected]
: 
approvalLimit
: 
500000
email
: 
"[email protected]"
overLimitForwardsTo
: 
"[email protected]"
role
: 
"user"
submitsTo
: 
"[email protected]"
[email protected]
: 
approvalLimit
: 
500000
email
: 
"[email protected]"
overLimitForwardsTo
: 
"[email protected]"
role
: 
"user"
submitsTo
: 
"[email protected]"
[email protected]
: 
email
: 
"[email protected]"
role
: 
"user"
rules
: 
[{…}]
submitsTo
: 
"[email protected]"
fieldList
: 
expensify_field_id_SUPPLIER_ADDRESS
: 
deletable
: 
false
disabledOptions
: 
[]
externalIDs
: 
[]
fieldID
: 
"field_id_SUPPLIER_ADDRESS"
isTax
: 
false
keys
: 
[]
name
: 
"Supplier Address"
orderWeight
: 
0
origin
: 
"currencyDefault"
target
: 
"invoice"
type
: 
"text"
values
: 
[]
expensify_field_id_VAT_NUMBER
: 
deletable
: 
false
disabledOptions
: 
[]
externalIDs
: 
[]
fieldID
: 
"field_id_VAT_NUMBER"
isTax
: 
false
keys
: 
[]
name
: 
"VAT Number"
orderWeight
: 
0
origin
: 
"currencyDefault"
target
: 
"invoice"
type
: 
"text"
values
: 
[]
text_title
: 
defaultValue
: 
"[{report:policyname}] {report:submit:from|frontPart}'s Expenses {report:startdate} #{report:id}"
deletable
: 
true
disabledOptions
: 
[]
externalIDs
: 
[]
fieldID
: 
"text_title"
isTax
: 
false
keys
: 
[]
name
: 
"title"
orderWeight
: 
0
target
: 
"expense"
type
: 
"formula"
values
: 
[]
harvesting
: 
enabled
: 
true
hasMultipleTagLists
: 
false
id
: 
"9106A4CE5D9D5ACE"
invoice
: 
markUp
: 
0
isFromFullPolicy
: 
false
isPolicyExpenseChatEnabled
: 
true
lastModified
: 
1731431566581022
maxExpenseAge
: 
365
maxExpenseAmount
: 
100000000
maxExpenseAmountNoReceipt
: 
20000
mccGroup
: 
airlines
: 
category
: 
"Travel Airfare & Transportation"
groupID
: 
"airlines"
commuter
: 
category
: 
"Travel Airfare & Transportation"
groupID
: 
"commuter"
gas
: 
category
: 
"Travel Airfare & Transportation"
groupID
: 
"gas"
goods
: 
category
: 
"Uncategorized"
groupID
: 
"goods"
groceries
: 
category
: 
"Uncategorized"
groupID
: 
"groceries"
hotel
: 
category
: 
"Travel Accommodation"
groupID
: 
"hotel"
mail
: 
category
: 
"Facilities Printing & Shipping"
groupID
: 
"mail"
meals
: 
category
: 
"Uncategorized"
groupID
: 
"meals"
rental
: 
category
: 
"Travel Airfare & Transportation"
groupID
: 
"rental"
services
: 
category
: 
"Uncategorized"
groupID
: 
"services"
taxi
: 
category
: 
"Travel Airfare & Transportation"
groupID
: 
"taxi"
uncategorized
: 
category
: 
"Uncategorized"
groupID
: 
"uncategorized"
utilities
: 
category
: 
"Facilities Utilities & Internet"
groupID
: 
"utilities"
name
: 
"Expenses - Expensify NL"
outputCurrency
: 
"EUR"
owner
: 
"[email protected]"
ownerAccountID
: 
10903701
preventSelfApproval
: 
true
reimbursementChoice
: 
"reimburseYes"
requiresCategory
: 
true
requiresTag
: 
false
role
: 
"user"
rules
: 
approvalRules
: 
Array(0)
length
: 
0
expenseRules
: 
Array(10)
0
: 
{applyWhen: Array(1), id: '621cffb8e47ee', tax: {…}}
1
: 
{applyWhen: Array(1), id: '6306223d8cd72', tax: {…}}
2
: 
{applyWhen: Array(1), id: '64345e1b166f9', tax: {…}}
3
: 
{applyWhen: Array(1), id: '6488eb48ec5a4', tax: {…}}
4
: 
{applyWhen: Array(1), id: '6488eb5121b6a', tax: {…}}
5
: 
{applyWhen: Array(1), id: '651a2ad2a4ddf', tax: {…}}
6
: 
{applyWhen: Array(1), id: '66044c6684393', tax: {…}}
7
: 
{applyWhen: Array(1), id: '66044c750da64', tax: {…}}
8
: 
{applyWhen: Array(1), id: '66044c8395a3e', tax: {…}}
9
: 
{applyWhen: Array(1), id: '66044c96cff22', tax: {…}}
length
: 
10
shouldShowAutoApprovalOptions
: 
false
shouldShowAutoReimbursementLimitOption
: 
false
shouldShowCustomReportTitleOption
: 
false
tax
: 
trackingEnabled
: 
true
taxRates
: 
defaultExternalID
: 
"180"
defaultValue
: 
"0%"
foreignTaxDefault
: 
"180"
name
: 
"Tax"
taxes
: 
179
: 
{name: 'NL-BTW Standard 21%', value: '21%'}
180
: 
{name: 'NL-BTW 0%', value: '0%'}
199
: 
{name: 'NL-BTW exempt 0%', value: '0%'}
200
: 
{name: 'NL-Non-EU purchase 21%', value: '21%'}
201
: 
{name: 'NL-BTW Reduced 9%', value: '9%'}
202
: 
{name: 'NL-EU purchase (goods) 21%', value: '21%'}
203
: 
{name: 'NL-EU purchase (services) 21%', value: '21%'}
type
: 
"corporate"

View all open jobs on GitHub

m-natarajan avatar Dec 10 '24 01:12 m-natarajan