File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ import {
1515} from './PolicyUtils' ;
1616import { getAllReportActions , getOneTransactionThreadReportID } from './ReportActionsUtils' ;
1717import {
18+ canAddTransaction as canAddTransactionUtil ,
1819 getMoneyRequestSpendBreakdown ,
1920 getParentReport ,
2021 getReportNameValuePairs ,
@@ -45,9 +46,9 @@ import {
4546function isAddExpenseAction ( report : Report , reportTransactions : Transaction [ ] ) {
4647 const isExpenseReport = isExpenseReportUtils ( report ) ;
4748 const isReportSubmitter = isCurrentUserSubmitter ( report . reportID ) ;
48- const isOpenReport = isOpenReportUtils ( report ) ;
49+ const canAddTransaction = canAddTransactionUtil ( report ) ;
4950
50- return isExpenseReport && isReportSubmitter && isOpenReport && reportTransactions . length === 0 ;
51+ return isExpenseReport && canAddTransaction && isReportSubmitter && reportTransactions . length === 0 ;
5152}
5253
5354function isSubmitAction ( report : Report , reportTransactions : Transaction [ ] , policy ?: Policy ) {
You can’t perform that action at this time.
0 commit comments