code change · fixIntegration & APIsofficial - Microsoftreviewed - checked by Opus

#9434 [Main]-"Factura Duplicada" error message appears under SII History if you use the same Vendor Invoice No. for the same Vendor (VAT Registration No.) in different documents in the Spanish version.

In the Spanish version with SII enabled, users now get a non-blocking warning when a purchase document's Vendor Invoice No. or Vendor Cr. Memo No. matches a posted entry of the opposite document type for the same vendor and date. SII would later reject such a document as 'Factura Duplicada'.

Pull request · merged into main (BC30) on 2026-07-17 by DhavalMore88 · 2 files (+190 -0), 1 AL · fix · tier official · reviewed (checked by Opus)

What changed

  • Added subscribers to validate Vendor Invoice No. and Vendor Cr. Memo No. when SII is enabled
  • Detects cross-type duplicates (Invoice vs. Credit Memo) that SII treats as identical
  • Looks for posted Vendor Ledger Entries matching vendor, document number, and date
  • Shows non-blocking notification with user toggle to warn before posting
  • Respects fiscal year settings and excludes entries marked ‘Do Not Send To SII’
  • Behaviour changes for users or extensions.

AL objects touched

Context

  • Work items: AB#642238
  • Labels: Team: Finance
  • Systems: integration

Source: metadata of a merged pull request in microsoft/BCApps (bcapps): title, labels, changed paths and counts, with a summary in our words. No source text and no description beyond one short quote (D10, D61).