Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

Update BA for already processed payments of the Work Period #81

Closed
@maxceem

Description

@maxceem

Background

Managers can process payments for Work Periods. Money for the payments comes from the Billing Account which is associated with Resource Booking:

image

Sometimes Managers process payments using the wrong billing account. And they would like to update the billing account for all payments which are done during the current Work Period (week).

Task

  • Add Actions dropdown menu to each of the row in the table with 1 option: Update BA for payments (or add this option if Actions is already implemented via this task [$80] Additional Payments #82)

    Additional BA Modal (2)
  • When we click Update BA for payments show a modal:

    Additional BA Modal (1)
    • For modal, use the same design as for adding payment: [$80] Additional Payments #82
    • Inside Current BA used list the billing accounts which were used for payments at the moment which would be updated
  • If we click Cancel or X just close the modal.

  • if we click Update BA for payments show a loading indicator inside the modal OR just disable the fields and all the buttons while sending request to the server.

    • if the request was successful, show a successful green toastr and close the modal which says, Billing account was successfully updated for all the payments:
      image
    • in case of error show error red toastr with error message from the server, but keep the modal open so user can try updating payment again

API

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions