Header:
- Batch reference
- Bank account - IBAN - Swift
- Bank file format (would be set by default, but can be edited)
- Aggregation method
- aggregate by supplier
- aggregate by supplier IBAN
- Don't aggregate
Buttons:
newly creating the batch:
- Save draft
- Submit for approval
Approving the batch:
- Approve
- Reject
Fully approved:
- Download bank file
- Proces the batch
- Reject (with permission)
Filter:
...
- As per document
- Calculate per terms
- None
...
Grid:
...
Assumptions:
- If the aggregation method is not selected default is None
- Creating a UDF for the suppliers which indicates if the supplier should be excluded from the payment batch by default.
Validations:
in backend and frontend
- Selected bank account has IBAN and swift
- Supplier has correct IBAN and swift on selected invoices
- The total of the batch should be above zero
- Checking if the invoice has been used in another payment batch
- Bank file should be selected
- Validate if there is a workflow created for the batch
hard validation on the database:
- Should not be allowed if the transaction has been already allocated.
- Should not be created when the outstanding is 0