Skip to content

Commit

Permalink
Fix none invoice number issue
Browse files Browse the repository at this point in the history
  • Loading branch information
sandeepsajan0 committed Mar 12, 2024
1 parent 6636695 commit 4f4aed7
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion hypha/apply/activity/adapters/activity_feed.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,12 @@ def handle_batch_archive_submission(self, sources, **kwargs):
)

def handle_batch_update_invoice_status(self, sources, invoices, **kwargs):
invoice_numbers = ", ".join([invoice.invoice_number for invoice in invoices])
invoice_numbers = ", ".join(
[
invoice.invoice_number if invoice.invoice_number else ""
for invoice in invoices
]
)
invoice_status = invoices[0].status if invoices else ""
return _(
"Successfully updated status to {invoice_status} for invoices: {invoice_numbers}"
Expand Down

0 comments on commit 4f4aed7

Please sign in to comment.