opcn1214-generator: open questions against the 1214 spec and SHAAM's checker

Đang mở
#5,260 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 2 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
25/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
typescript

Hướng nghiên cứu

Start with packages/opcn1214-generator/documentation/specifications/1214-2024.pdf, the relevant SPEC sections, and tests/fixtures/golden/VERIFICATION.md; inspect the referenced parser and generator rules and the linked issues for each open question. Resolve each item using the specification, a SHAAM answer, or a shopcn probe, record the decision in SPEC §15 or the verification file, and make any resulting code changes.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

1214 annual-audit-workflow

The 1214 stack review (#5035–#5094) raised questions that the PDF (packages/opcn1214-generator/documentation/specifications/1214-2024.pdf) doesn't settle, and that no shopcn upload has tested. Each one needs an answer, from the PDF, SHAAM or a shopcn probe. Then it needs either a code change or a SPEC §15 row recording the decision. Each was checked against main at 31245bc7f (2026-11-30) and is still open.

  • 1. A-13: kibbutz and code 226. SPEC A-13: isKibbutz requires code 226. The PDF says 877 is "required in the case of a kibbutz and when field 226 is filled". Must a kibbutz fill 226? If shopcn accepts a kibbutz without it, main.kibbutz.code226 blocks a valid filing. (#5059)
  • 2. Severity of main.kibbutz.code226Other and main.bankAccount.withNoBank. Both are warnings. Yet 226 = 9 literally means "not a kibbutz", and the p.12 note on field 1064 says to mark it only when there are no bank details. Should they be errors? (#5060)
  • 3. Optional counts at 9999@147 and 9999@149. PDF p.61 and fields.csv mark the counts of 2200 records (147) and 1030 records (149) as not mandatory. Yet the parser requires them to equal the record counts (SPEC §8.2 step 6, parse.control.counts), so a file from other software that leaves them at 00 throws. Does shopcn accept such a file? (#5055)
  • 4. A-12: what 1000@960 counts. main.appendixTotal.min counts the 2000 record toward 960. But on p.10, 960 sits in the capital-gains block (962 counts the capital-gains appendices that weren't sent), and its note matches code 028's (p.14). If 960 counts only capital-gains appendices, a report with a foreign appendix gets a false warning. Counting only 30xx records + 962 is a safe lower bound under either reading. (#5065)
  • 5. Withholder gaps in 3060/3064. Does SHAAM accept an empty withholder slot before a filled one? A partly filled block (a name without branch and account, or the reverse)? The PDF allows both: all 12 fields are optional and no order is given. The generator accepts both (SPEC §7.3), but no golden contains either. (#5066)
  • 6. Wallet on 3051. p.40 marks both 3051 wallet fields as not required. p.57 requires a wallet only on a 3077 with code 071 = 1, but a 3051 always has 071 = 1. The generator follows the PDF wording: cg.virtualCurrency.wallet covers 3077 only (SPEC §10.6). cg-51 has two wallets, so shopcn has never seen a 3051 without one. (#5071)
  • 7. Code-15 dates outside the tax year. shopcn enforced a tax-year bound on 1000@852 (A-33). Every asset golden uses a 2024 code-15 date, so whether shopcn rejects a date outside the tax year is untested. The PDF states no such rule. (#5071)
  • 8. Foreign-resident numbers in 1020@139. 1020@139 also takes numbers from the Tax Authority's foreign-residents register (PDF p.23). If those numbers don't always carry a valid Israeli check digit, field.checkDigit (an error) blocks valid reports. shopcn has only seen the check digit on 1000@137 and 1010@189. (#5069)
  • 9. Duplicate reports in a batch. PDF p.1 identifies a report by file number and tax year ("כל דוח (תיק ושנת מס)"). generate1214Batch writes two reports with the same file number and tax year, and parse1214Batch reads them back. Should that be an error? Adding an error rule later is a major change under SPEC §6.5, so it is easier to decide before the first stable release. (#5073)
  • 10. A-28 beyond one company. main.withholdingFile.companyNumber (an error) rests on probes for a single company number, 514000009. Is "9 + company digits 1–7 + check digit" right for every company series (51, 52, 57, 58…)? Can a company have a deductions file that doesn't follow it? If unsure, a warning may fit better. (#5078)
  • 11. More than 20 amounts under cg.codePairs.max. shopcn rejects more than 20 code-amount pairs per 30xx record (A-30), but 3060 and 3065 each list 21 codes. To pass, the goldens cg-60 and cg-65 dropped code 099, which a real report can't do. Does SHAAM accept the amounts split over two appendices of the same type? The rule's message and A-30 should tell the filer what to do. (#5078)

A-24 (whether 442 = 0 needs a 2200 breakdown) was on this list but is settled: shopcn accepted both probes on 2026-11-24, and #5178 applied the result.

Done when

Each item has a recorded answer, either a SPEC §15 row or a shopcn result in tests/fixtures/golden/VERIFICATION.md, plus any code change it implies.

Ngôn ngữ chính
TypeScript
Star
30
Fork
10
Merge trung bình
2 ngày 12 giờ
Pull request đã merge (30 ngày)
276

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

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của Urigo/accounter-fullstack

Tất cả issue của Urigo/accounter-fullstack

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.