We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9769bff + 9d759f2 commit 68540f6Copy full SHA for 68540f6
src/components/AttachmentModal.tsx
@@ -422,7 +422,13 @@ function AttachmentModal({
422
onSelected: () => downloadAttachment(),
423
});
424
}
425
- if (TransactionUtils.hasReceipt(transaction) && !TransactionUtils.isReceiptBeingScanned(transaction) && canEditReceipt && !TransactionUtils.hasMissingSmartscanFields(transaction)) {
+ if (
426
+ !TransactionUtils.hasEReceipt(transaction) &&
427
+ TransactionUtils.hasReceipt(transaction) &&
428
+ !TransactionUtils.isReceiptBeingScanned(transaction) &&
429
+ canEditReceipt &&
430
+ !TransactionUtils.hasMissingSmartscanFields(transaction)
431
+ ) {
432
menuItems.push({
433
icon: Expensicons.Trashcan,
434
text: translate('receipt.deleteReceipt'),
0 commit comments