Skip to content

Document Management

Overview

Document Management provides file upload, storage, preview, and download capabilities across all screens that support attachments. This is a reusable component available wherever records require supporting documentation.

Features

FeatureDescription
UploadAttach files via drag-and-drop or file picker
PreviewView images and PDFs inline without downloading
DownloadSave files to local machine
DeleteRemove attached documents

Supported File Types

CategoryExtensions
DocumentsPDF, DOC, DOCX, TXT
SpreadsheetsXLS, XLSX, CSV
ImagesJPG, JPEG, PNG, GIF

Maximum file size: 25 MB

Where It Appears

ScreenEntityUse Case
Cash Worksheetcash_receipt_worksheetSupporting receipts, correspondence
Write-Off Packetwrite_off_packetCollection logs, client communications
Receivablespacket_receivableReceivable-specific documentation

UI Components

Document Section

Header: Shows document count and upload button

File List:

  • File icon (based on type)
  • File name
  • File size + upload date
  • Actions: Preview, Download, Delete

Preview Modal

  • Inline image display
  • PDF iframe viewer
  • Close button

Storage

Files are stored in S3 with database records tracking:

  • Original filename
  • File size
  • MIME type
  • S3 URL / file path
  • Upload timestamp
  • Uploader user ID

Business Rules

RuleDescription
Size LimitFiles over 25 MB are rejected
Type ValidationOnly allowed extensions accepted
Entity LinkingEach file linked to exactly one entity
Read-Only ModeUpload/delete disabled when entity is locked

See Also

DocumentRelationship
Write-OffsPacket documents for audit
Cash ManagementWorksheet documents

Confidential. For internal use only.