Commit Graph

43 Commits

Author SHA1 Message Date
0fa05ab48d Download the full order CSV instead of re-running the report
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-11-22 08:34:27 +03:30
f11f40f5f0 Use SystemGroup filtered order export
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-11-21 14:41:39 +03:30
8f6e617972 Sign in before filtering the order export
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-11-21 14:22:30 +03:30
171a5847ae Filter order CSV by date and product code on the server
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-11-21 14:02:08 +03:30
8280eeed7c Add Jalali date range filters on CRM orders
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-11-21 13:44:08 +03:30
f5632ed464 Add per-customer quantity subtotals on CRM orders
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-11-18 09:59:17 +03:30
c883063c08 Add company and product code search on orders
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-11-14 08:44:34 +03:30
b8c4e703fb Sign in to SystemGroup per user on the orders page
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-11-11 14:53:44 +03:30
c1c870e911 Add orders tab for recent SystemGroup delivery notes
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-11-11 13:47:25 +03:30
caf7049ec9 Keep Recent Orders label text on one line
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-11-10 11:12:40 +03:30
d293bb7d7f Keep label weights LTR in Persian layout
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-24 14:23:24 +03:30
b5e91f3dde Tighten Recent Orders table layout and labels UI
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-24 13:36:26 +03:30
4d0dad33e6 Add custom labels printed before box and canister slips
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-21 14:01:48 +03:30
71fff09b85 Decouple reprint counts from label weights
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-20 11:08:15 +03:30
a5cb3ef35f Allow zero canister or box count, but not both
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-20 10:52:07 +03:30
f9c6f3bc14 Add per-product flag to skip Date and Next Control
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-14 12:06:12 +03:30
4acd56b7b4 Move product and calibrate links to the navbar edge
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-13 14:46:15 +03:30
08b234c254 Mix box and canister labels on shared sheets
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-11 12:53:57 +03:30
b8b2840f34 Rename the UI to Label Printer and cache pip across Docker rebuilds.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-09 18:19:50 +03:30
8530311069 Slide the nav underline when changing tabs.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-09 17:32:20 +03:30
26c6e1ff09 Move Products nav between Print Queue and Calibrate
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-07 09:19:14 +03:30
2e08cfa0df Add Products tab with edit, remove, and backup
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-07 09:02:04 +03:30
0046b49009 Add calibration backup and restore from file
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-07 08:59:18 +03:30
d99f860e13 Add pages column and widen data entry tables
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-07 08:48:35 +03:30
a5b863fa6c Add order count edit, remove, and undo-done
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-07 08:16:16 +03:30
202d9f9d7e Add end-page control for inclusive print ranges
Operators can print a middle slice of labels, not only resume from a start page through the end.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-05 23:22:04 +03:30
d8a2b361fb Add start-from-page control for mid-print resume
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-05 14:52:02 +03:30
13135b5999 Fetch fresh calibration on every print
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-05 14:08:11 +03:30
bce920e279 Add interactive label calibration UI
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-05 11:48:59 +03:30
1bf56f237d Calibrate print label field positions
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-05 10:49:08 +03:30
a3a99411c6 Show New Order dates as dd/mm/yyyy (#13)
Co-authored-by: Cursor <cursoragent@cursor.com>
Reviewed-on: #13
Co-authored-by: diaco <dyaco8464@yahoo.com>
Co-committed-by: diaco <dyaco8464@yahoo.com>
2026-10-04 10:58:56 +00:00
5668cbf25e Restyle light theme with coral chrome (#12)
Co-authored-by: Cursor <cursoragent@cursor.com>
Reviewed-on: #12
Co-authored-by: diaco <dyaco8464@yahoo.com>
Co-committed-by: diaco <dyaco8464@yahoo.com>
2026-10-04 10:20:32 +00:00
bf5ce1bb3f Default to Persian and use SVG language flags (#11)
Co-authored-by: Cursor <cursoragent@cursor.com>
Reviewed-on: #11
Co-authored-by: diaco <dyaco8464@yahoo.com>
Co-committed-by: diaco <dyaco8464@yahoo.com>
2026-10-04 07:31:59 +00:00
cb8fd593c0 Rename app title to Lithium | Print Label (#10)
Co-authored-by: Cursor <cursoragent@cursor.com>
Reviewed-on: #10
Co-authored-by: diaco <dyaco8464@yahoo.com>
Co-committed-by: diaco <dyaco8464@yahoo.com>
2026-10-04 07:25:05 +00:00
b3e8b543f9 Update Persian app title to لیتیوم | پرینت لیبل (#9)
Co-authored-by: Cursor <cursoragent@cursor.com>
Reviewed-on: #9
Co-authored-by: diaco <dyaco8464@yahoo.com>
Co-committed-by: diaco <dyaco8464@yahoo.com>
2026-10-04 05:03:03 +00:00
273785c2e9 Add light theme default with toggle (#8)
Co-authored-by: Cursor <cursoragent@cursor.com>
Reviewed-on: #8
Co-authored-by: diaco <dyaco8464@yahoo.com>
Co-committed-by: diaco <dyaco8464@yahoo.com>
2026-10-04 04:57:12 +00:00
0c1340cf3e Localize labels preview and enable Persian RTL (#7)
## Summary
- Translate Data Entry labels preview when language is Persian
- Enable `dir=rtl` for FA (toast position mirrored)
- Add badge `gap` so page counts show as `4 Page(s)` not `4Page(s)`

## Test plan
- [ ] Data Entry in FA shows e.g. `گالن: 20 (5 صفحه) | کارتن: 5 (2 صفحه)`
- [ ] Toggling language refreshes the preview line
- [ ] Print Queue badges have space before Page(s)/صفحه
- [ ] FA layout is RTL

Reviewed-on: #7
Co-authored-by: Diaco Soltanpour <dyaco8464@yahoo.com>
Co-committed-by: Diaco Soltanpour <dyaco8464@yahoo.com>
2026-10-01 19:47:50 +00:00
0aa04301e4 Change Persian mark-done label to چاپ شد (#6)
## Summary
- Change Persian `mark_done` label from تایید چاپ to چاپ شد

## Test plan
- [ ] Print Queue in FA shows چاپ شد on the done button

Reviewed-on: #6
Co-authored-by: Diaco Soltanpour <dyaco8464@yahoo.com>
Co-committed-by: Diaco Soltanpour <dyaco8464@yahoo.com>
2026-10-01 19:19:28 +00:00
791a39697a Localize print queue badges and use گالن in Persian (#5)
## Summary
- Translate print-queue badges (canisters/boxes/pages/pending) via i18n
- Replace Persian قوطی with گالن everywhere in UI strings

## Test plan
- [ ] Print Queue in FA shows e.g. `20 گالن | 5 کارتن` and `7 صفحه`
- [ ] Pending badge shows `در انتظار`
- [ ] Entry form FA labels use گالن (weight / per box)

Reviewed-on: #5
Co-authored-by: Diaco Soltanpour <dyaco8464@yahoo.com>
Co-committed-by: Diaco Soltanpour <dyaco8464@yahoo.com>
2026-10-01 18:41:27 +00:00
d7f1929674 Label print calibration and Lithium Label UI polish (#3)
## Summary
- Calibrate label print/calibrate CSS to the reference PDF (positions, ~7pt/6pt sizes, bottom-row pitch)
- Print layout: partial last-box weight, pad short pages to 4 slips, whole-number weights
- Rename to Lithium Label Manager; Vazirmatn for FA / Inter for EN; inverted lithium icon; seed weights=5; number step=1; hide empty toast

## Test plan
- [ ] Print calibration sheet and overlay on a physical label — top and bottom rows align
- [ ] Order 50/5/4 — box labels show 20, 20, 10 (padded page); weights without `.0`
- [ ] Language toggle switches Inter ↔ Vazirmatn
- [ ] Seed products use canister weight 5; form spinners step by 1

Reviewed-on: #3
Co-authored-by: Diaco Soltanpour <dyaco8464@yahoo.com>
Co-committed-by: Diaco Soltanpour <dyaco8464@yahoo.com>
2026-10-01 18:10:44 +00:00
d1d18422f1 Rename app to Lithium Slip Manager and add brand icon.
Swap Product Slip branding for Lithium Slip, and use lithium.png in the nav and favicon.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-01 19:08:00 +03:30
90bcc0e813 Bump Python 3.14 and fix entry date defaults (#1)
## Summary
- Bump Docker base image from `python:3.12-slim` to `python:3.14-slim`
- Fix entry form: Date defaults to today, Next Control Date to Date + 6 months
- Constrain form inputs so they fit the left column width

## Test plan
- [ ] `docker compose up -d --build` succeeds with Python 3.14
- [ ] Open `/entry` — Date is today, Next Control is ~6 months later
- [ ] Changing Date updates Next Control
- [ ] Form inputs no longer overflow the left card

Reviewed-on: #1
Co-authored-by: Diaco Soltanpour <dyaco8464@yahoo.com>
Co-committed-by: Diaco Soltanpour <dyaco8464@yahoo.com>
2026-10-01 14:23:36 +00:00
0af10dde9d Initial commit: Product Slip Manager 2026-09-30 14:17:30 +03:30