Skip to content

Commit

Permalink
feat(Expense): add reference (#1053)
Browse files Browse the repository at this point in the history
  • Loading branch information
Betree authored Sep 11, 2024
1 parent 33409ed commit 7ddc740
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
10 changes: 10 additions & 0 deletions components/ExpenseInvoice.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,15 @@ const ExpenseInvoice = ({ expense, pageFormat }) => {
/>
</H2>
</StyledLink>
{expense.reference && (
<P fontSize="13px" color="black.900">
<FormattedMessage
id="Expense.Reference"
defaultMessage="Reference: {reference}"
values={{ reference: expense.reference }}
/>
</P>
)}
<FormattedMessage
id="CollectiveColumn"
defaultMessage="Collective: {collectiveName}"
Expand Down Expand Up @@ -176,6 +185,7 @@ ExpenseInvoice.propTypes = {
expense: PropTypes.shape({
id: PropTypes.string,
legacyId: PropTypes.number,
reference: PropTypes.string,
description: PropTypes.string,
currency: PropTypes.string,
type: PropTypes.oneOf(['INVOICE', 'RECEIPT']),
Expand Down
1 change: 1 addition & 0 deletions lib/graphql/queries.js
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,7 @@ export async function fetchExpenseInvoiceData(expenseId, authorizationHeaders) {
type
invoiceInfo
amount
reference
permissions {
canSeeInvoiceInfo
}
Expand Down

0 comments on commit 7ddc740

Please sign in to comment.