Skip to content

fix(retention/perception): número de pago configurable y un pago por detalle - #280

Merged
giansalex merged 2 commits into
masterfrom
claude/issue-258-fix-3us0qk
Oct 5, 2026
Merged

giansalex merged 2 commits into
masterfrom
claude/issue-258-fix-3us0qk

Conversation

@giansalex

Copy link
Copy Markdown
Member
  • Agregar Payment::numero; el template usa el número indicado (o la posición como fallback) en cac:Payment/cbc:ID.
  • Validar máximo un pago por RetentionDetail, el XSD de SUNAT admite un solo cac:Payment por SUNATRetentionDocumentReference; para pagos en cuotas se debe agregar un detalle por cada pago.
  • Parsers de retención/percepción: leer cbc:ID y PaidDate en el contexto de cada cac:Payment.

claude added 2 commits October 5, 2026 20:14
- Agregar Payment::numero; el template usa el número indicado (o la
  posición como fallback) en cac:Payment/cbc:ID.
- Validar máximo un pago por RetentionDetail, el XSD de SUNAT admite un
  solo cac:Payment por SUNATRetentionDocumentReference; para pagos en
  cuotas se debe agregar un detalle por cada pago.
- Parsers de retención/percepción: leer cbc:ID y PaidDate en el contexto
  de cada cac:Payment.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01A12f6oV66y6NhUK8Tenymn
Aplicar en percepción la misma regla que en retención: el XSD de SUNAT
admite un solo cac:Payment por SUNATPerceptionDocumentReference.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01A12f6oV66y6NhUK8Tenymn
@giansalex giansalex linked an issue Oct 5, 2026 that may be closed by this pull request
@sonarqubecloud

sonarqubecloud Bot commented Oct 5, 2026

Copy link
Copy Markdown

@codecov

codecov Bot commented Oct 5, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 95.85%. Comparing base (43b3a5f) to head (cb8f89f).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@             Coverage Diff              @@
##             master     #280      +/-   ##
============================================
- Coverage     95.87%   95.85%   -0.02%     
- Complexity     1312     1318       +6     
============================================
  Files           173      173              
  Lines          5477     5500      +23     
============================================
+ Hits           5251     5272      +21     
- Misses          226      228       +2     
Flag Coverage Δ
unittests 95.85% <100.00%> (-0.02%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@giansalex
giansalex merged commit 23db8f4 into master Oct 5, 2026
8 of 9 checks passed
@giansalex
giansalex deleted the claude/issue-258-fix-3us0qk branch October 5, 2026 21:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Retenciones. Múltiples pagos para una factura.

2 participants