Project

General

Profile

Actions

Task #16813

closed

Task #16360: Sprint Planning for 20/01/2025 - 31/01/2025

Invoice - Send to Correspondence with Currency and Bank Selection

Added by Redmine Admin 7 months ago. Updated about 2 hours ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Start date:
01/07/2025
Due date:
01/31/2025
% Done:

100%

Estimated time:
12:00 h
Spent time:
GitLab ID:
1693
GitLab Milestone:
GitLab Ticket Number:
550
GitLab Time Logged:
36000
Lock Timeline Date:
No
gitlab project trace:
Sprint Planning for 20/01/2025 - 31/01/2025

Description

Allow users to select currency and bank details when emailing the invoice to correspondence.

As a user,
I want to select the invoice currency and bank details before sending it via email to the correspondent.
So that the client receives the invoice in their preferred currency with the appropriate bank information.

Acceptance Criteria

  1. Currency Selection:
    • Add a "Choose Currency" dropdown in the "Send Email" modal.
    • The dropdown should list all available currencies.
    • The dropdown should list all available currencies as per the invoice charges.
  2. Bank Dropdown:
    • Display a "Choose Bank" dropdown that dynamically lists banks based on the selected currency.
    • If no bank is associated with the selected currency, automatically select the default bank and show the message:
      "No bank is associated with the selected currency. The invoice will be generated with the default bank."
  3. Invoice PDF Generation:
    • Generate the invoice PDF based on the selected currency and bank/s.
    • Attach the generated invoice PDF to the email.
  4. Email Workflow:
    • Allow users to input or edit the recipient email addresses in the "Email TO" field.
    • Allow users to input CC email addresses in the "Email CC" field (optional).
    • Ensure the "PROCEED" button is disabled until all required fields are completed (Currency, Bank, Email TO).
  5. UI Modifications:
    • Add the "Choose Currency" and "Choose Bank" fields above the email input fields.
    • Include validation for the required fields and display an error message if they are not filled:
      • "Please select a currency and bank/s before proceeding."
  6. Error Handling:
    • If the invoice generation fails, display an error message:
      • "An error occurred while generating the invoice. Please try again later."
    • If email sending fails, display an error message:
      • "An error occurred while sending the email. Please check the email addresses and try again."
  7. Informational Messages:
    • Display a tooltip or message next to the "PROCEED" button explaining that the invoice will include the selected currency and bank details.
  8. Audit Trail:
    • Log the email sent action with the selected currency, bank, and recipient information in the activity log.

UI Enhancements

  • Choose Currency Field:
    • Label: Choose Currency.
    • Dropdown options: List of available currencies.
  • Choose Bank Field:
    • Label: Choose Bank.
    • Dropdown dynamically populated based on the selected currency.
    • Default bank option is displayed if no currency-specific banks are available.
  • Informational Message:
    • Place below the bank dropdown to inform the user when the default bank is being used.
  • Proceed Button:
    • Label: Send Email.
    • Disabled until all required fields are completed.
  • Preview Button (Optional):
    • Add a "Preview Invoice" button to allow users to review the invoice before sending.

GitLab Sync Log

[{"id": "14676", "author": "Nihaal Ramfoll", "hours": 6.0, "created": "2025-02-03T05:09:08.426Z", "log_date": "2025-01-30", "comment": "Imported from GitLab by @Nihaal Ramfoll on 2025-02-03T05:09:08.426Z: 6h-(6.0)h spend at: 2025-01-30", "status": "active", "deleted_by": "", "redmine_entry_id": 8304}, {"id": "14278", "author": "Avisham", "hours": 4.0, "created": "2025-01-27T09:17:37.999Z", "log_date": "2025-01-27", "comment": "Imported from GitLab by @Avisham on 2025-01-27T09:17:37.999Z: 4h-(4.0)h spend at: 2025-01-27", "status": "active", "deleted_by": "", "redmine_entry_id": 8305}]

Actions

Also available in: Atom PDF