Skip to content

Commit

Permalink
Merge pull request #56675 from callstack-internal/fix/56508-invoice-t…
Browse files Browse the repository at this point in the history
…itle

Restrict editing of titles for ND invoices.
  • Loading branch information
cristipaval authored Feb 14, 2025
2 parents 0385956 + c3310b5 commit e9c93bf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/libs/ReportUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3304,6 +3304,9 @@ function isHoldCreator(transaction: OnyxEntry<Transaction>, reportID: string | u
* 2. Report is settled or it is closed
*/
function isReportFieldDisabled(report: OnyxEntry<Report>, reportField: OnyxEntry<PolicyReportField>, policy: OnyxEntry<Policy>): boolean {
if (isInvoiceReport(report)) {
return true;
}
const isReportSettled = isSettled(report?.reportID);
const isReportClosed = isClosedReport(report);
const isTitleField = isReportFieldOfTypeTitle(reportField);
Expand Down

0 comments on commit e9c93bf

Please sign in to comment.