Skip to content

Vendor Bank Details Serializer

Description

Handles vendor bank details, including account information and cheque book image validation.

Fields

Field Description Required
account_name Name of the account holder. Yes
account_number Bank account number. Yes
branch_name Name of the bank branch. No
cheque_book_image Image of the vendor's cheque book (absolute URL). Yes
swift_code SWIFT code of the bank. No
created_at Timestamp when the record was created. Read-only
updated_at Timestamp of the last modification. Read-only

Validation

  • Cheque book image is required.
  • Account name and account number must be unique together.
  • Generates an absolute URL for the cheque book image if available.