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

Aperta
#5,260 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 2 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
25/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
typescript

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
TypeScript
Stelle
30
Fork
10
Merge medio
2g 12h
PR unite (30g)
276

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di Urigo/accounter-fullstack

Tutte le issue di Urigo/accounter-fullstack

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.