diff --git a/README.md b/README.md index da8cf6b..5eebb81 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # check-printing -Self-hosted web app for printing checks on blank check stock. A Dockerized Node.js web app accessible on the local network. +Self-hosted web app for printing checks and bank deposit slips. A containerized Node.js web app accessible on the local network. ## Stack @@ -58,6 +58,26 @@ The script imports account config (T100), logo (Settings), check layout (T200), Use the **Reprint** button on printed checks to regenerate without re-marking them. +## Deposit slips + +Switch to the **Deposits** tab in the toolbar to manage bank deposits. + +1. Click **+ New Deposit** to open the deposit entry panel +2. Enter the deposit date, currency, coin, and cash back amounts +3. Add each check being deposited (check number, payee, memo, amount) — totals update live +4. Click **Save Deposit**, then **Deposit Slip** or **Report** to generate a PDF + +**Deposit Slip** generates a precisely positioned 3.375" × 8.5" PDF matching physical bank deposit slip stock, including: + +- Style A background (form lines and labels drawn server-side — no preprinted stock required) +- Digit-column amount formatting +- Routing/account line in E-13B magnetic ink character recognition font, rotated 90° +- Rotated deposit total and check count in the left margin + +**Deposit Report** generates a plain formatted ledger document listing all checks, cash totals, and the final deposit amount — suitable for filing. + +Generating a deposit slip marks the deposit as printed in the ledger. + ## Check layout - Page: 8.5" × 11", zero margins diff --git a/public/css/style.css b/public/css/style.css index 4ec67d1..1554cb1 100644 --- a/public/css/style.css +++ b/public/css/style.css @@ -535,3 +535,163 @@ input[type="file"] { max-height: calc(100vh - 160px); overflow-y: auto; } + +/* ── View nav tabs ── */ +.view-nav { + display: flex; + gap: 0; + background: var(--surface); + border-bottom: 2px solid var(--border); + flex-shrink: 0; + padding: 0 1rem; +} +.view-tab { + background: transparent; + border: none; + border-bottom: 2px solid transparent; + border-radius: 0; + padding: 8px 16px; + font-size: 13px; + font-weight: 500; + color: var(--text-muted); + cursor: pointer; + margin-bottom: -2px; +} +.view-tab:hover { color: var(--text); } +.view-tab.active { color: var(--primary); border-bottom-color: var(--primary); } + +/* ── View panes ── */ +.view-pane { + display: flex; + flex-direction: column; + flex: 1; + overflow: hidden; +} +.view-pane[hidden] { display: none; } + +/* ── Deposit panel ── */ +#dep-panel-overlay { + position: fixed; + inset: 0; + background: rgba(0,0,0,0.3); + z-index: 100; + opacity: 0; + pointer-events: none; + transition: opacity 0.2s; +} +#dep-panel-overlay.open { opacity: 1; pointer-events: auto; } + +#deposit-panel { + position: fixed; + top: 0; + right: 0; + width: 560px; + max-width: 98vw; + height: 100vh; + background: var(--surface); + z-index: 101; + box-shadow: -4px 0 24px rgba(0,0,0,0.15); + transform: translateX(100%); + transition: transform 0.2s ease; + display: flex; + flex-direction: column; + overflow-y: auto; +} +#deposit-panel.open { transform: translateX(0); } + +#deposit-panel-body { + padding: 16px; + display: flex; + flex-direction: column; + gap: 14px; + flex: 1; +} + +.dep-summary { + display: flex; + flex-direction: column; + gap: 10px; +} + +.dep-totals { + background: var(--bg); + border: 1px solid var(--border); + border-radius: 4px; + padding: 8px 12px; + display: flex; + flex-direction: column; + gap: 3px; +} +.dep-total-row { + display: flex; + justify-content: space-between; + font-size: 12px; + color: var(--text-muted); +} +.dep-total-grand { + font-size: 13px; + font-weight: 600; + color: var(--text); + margin-top: 4px; + padding-top: 4px; + border-top: 1px solid var(--border); +} + +/* Deposit check items table */ +.dep-checks-section { display: flex; flex-direction: column; gap: 6px; flex: 1; } +.dep-checks-header { + display: flex; + align-items: center; + justify-content: space-between; + font-size: 11px; + font-weight: 700; + text-transform: uppercase; + letter-spacing: 0.05em; + color: var(--text-muted); +} +.dep-items-table { + width: 100%; + border-collapse: collapse; + font-size: 12px; +} +.dep-items-table thead th { + background: #f8f8f8; + border-bottom: 1px solid var(--border); + padding: 4px 6px; + font-size: 10px; + font-weight: 600; + text-transform: uppercase; + color: var(--text-muted); + white-space: nowrap; + position: static; +} +.dep-items-table td { + padding: 2px 4px; + vertical-align: middle; + border-bottom: 1px solid #f0f0f0; +} +.dep-item-input { + border: 1px solid var(--border); + border-radius: 3px; + padding: 3px 6px; + font-size: 12px; + font-family: var(--font); + background: var(--surface); + color: var(--text); +} +.dep-item-input:focus { + outline: none; + border-color: var(--primary); +} + +.dep-form-actions { + display: flex; + justify-content: space-between; + align-items: center; + gap: 8px; + padding-top: 4px; + border-top: 1px solid var(--border); + margin-top: auto; + flex-wrap: wrap; +} +.dep-pdf-btns { display: flex; gap: 6px; } diff --git a/public/index.html b/public/index.html index 9a7cc99..91ab953 100644 --- a/public/index.html +++ b/public/index.html @@ -16,6 +16,14 @@ Next check: — + + + + +
| Date | +Checks Total | +Cash | +Cash Back | +Deposit Total | +Items | +Status | ++ |
|---|---|---|---|---|---|---|---|
| Loading… | |||||||