semmelei: Dispatch the Procurement to the Bakery as CSV
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 35/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- typescript
Hướng nghiên cứu
Start with parent issue #87 and the decision in #84, then trace the Dispatch and Review Window flow, admin settings API and form, Procurement response, and existing mail and recording sink tests. Check how Item links and position snapshots are represented before planning the grouped CSV and acknowledged delivery. Done means meeting the listed acceptance criteria, including retry behavior and exact attachment bytes.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Parent
#87
What to build
At the Dispatch, semmelei sends the Procurement as a CSV to the Bakery, with a copy to the Nachbarschaftshilfe.
- Settings: Admins enter the Bakery mail address and the copy address (both optional, validated as mail addresses) in the admin settings API and form.
- No Bakery address: the day is skipped and not marked, so it dispatches on the first tick after an address is set. The Procurement response carries a not-dispatched reason (none / no Bakery address) and the page shows "Nicht versendet: keine Bäckerei-Adresse". Note: while no address is set, that day's customers get no confirmations either.
- Bakery order: built from all non-cancelled orders' positions, grouped by the Item's live Bakery Article Number (read through the position's Item link, as decided in #84). Positions of deleted Items or Items without a number are left out entirely. Quantity summed; "Artikel" = distinct name snapshots joined with " / "; "Einzelpreis" = customer price snapshot of the first position; differing prices under one number log a warning.
- CSV: header
Artikel;Artikelnummer;Menge;Einzelpreis,;separator, RFC 4180 quoting where needed, German decimal comma without currency sign (2,50), UTF-8 with BOM, CRLF, sorted by article number, filenamebestellung-<YYYY-MM-DD>.csv, content typetext/csv; charset=utf-8. - Mail: German regardless of order languages, subject
Bestellung Nachbarschaftshilfe für <Wochentag, Datum>, a one-sentence body with the pickup date, the copy address as CC, the CSV attached. - Delivery: with lines, publish and wait for the ack; only then mark the day dispatched. A failed publish leaves it unmarked and the next tick retries (a duplicate order is the lesser failure than a lost one; this is the opposite of the customer mails, which mark before sending, and the reason belongs in a code comment). Without lines, mark dispatched and send no Bakery mail. Confirmations follow as in the Review Window ticket.
- New i18n keys, API client regenerated, rorm migration committed.
Acceptance criteria
- Bakery and copy address settable via API and form; invalid addresses rejected
- No Bakery address: nothing sent, day not marked, Procurement reports the reason and the page shows it; setting the address dispatches on the next tick
- At the Dispatch one mail goes to the Bakery address with the copy address in CC, the German subject and the CSV attached
- CSV: header, one line per article number, joined names, summed quantity,
2,50, BOM, CRLF, sort order; Items without number and deleted Items left out; cancelled orders left out - No Bakery positions: no Bakery mail, day dispatched, confirmations sent
- Failed ack: day not marked, retried next tick; after success no second Bakery mail
- Differing prices under one article number log a warning
- Tests assert the mails leaving the service (recipients, CC, subject, attachment bytes) through the HTTP harness with the recording sink
- Ngôn ngữ chính
- TypeScript
- Star
- 0
- Fork
- 1
- Merge trung bình
- 10 giờ 20 phút
- Pull request đã merge (30 ngày)
- 36
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của myOmikron/code
-
wayfinder:task
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 90/100
Maintainer thường phản hồi trong vòng 1 ngày
-
wayfinder:task
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
myOmikron/code#102 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
needs-triage
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
Maintainer thường phản hồi trong vòng 1 ngày
-
mtg: tournament plannerĐang mởready-for-agent
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 18/100
Maintainer thường phản hồi trong vòng 1 ngày
-
needs-triage
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của myOmikron/code
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
awesome-dsh-plugin/awesome-dsh-plugin#9184 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
farion1231/cc-switch#8829 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[core-client] Remove unused hand-maintained transport helpers after the definition-table cutoverĐang mởdoc-audit enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100