Statement Posting for Spain

Statement posting is one of two ways the Spain localization can submit POS sales to the SII (Suministro Inmediato de Información) regime. The other is real-time submission per transaction (controlled by the Comm. Transact. when Posting field). Statement posting works well when the volume of transactions per day is high and a near-real-time AEAT submission is not required.

This topic describes what happens during statement posting when the Spain localization is enabled.

In this article

When to use statement-based SII submission

What the localization does during statement posting

Document number on the posted G/L entries

When to use statement-based SII submission

Open the SII Setup page and pick exactly one of the two communication modes:

Field on SII Setup Effect
Comm. Transact. when Posting Real-time mode. Each POS sale individually inserts a record in SII Doc. Upload State + SII History on transaction posting.
SII on Statement Posting Off-line mode. SII records are created in batch when the daily statement is posted.

Note: The two modes are mutually exclusive at the architectural level - turn on the one that matches your operational model. See SII Setup.

What the localization does during statement posting

The Spain localization subscribes to three events on the standard LSC Statement-Post codeunit.

After statement posting, the SII Pending Documents Job picks up the new pending records on its next run and submits them to AEAT in batch. See SII Pending Documents Job.

Document number on the posted G/L entries

When Use Document Store Serial No. is on in LS Retail Setup page, every POS transaction that meets the criteria for legal numbering (slip / return / invoice / credit memo / shipment) is assigned a number from the corresponding store-level No. Series at transaction insert time.

During statement posting, the localization replaces the document number in the resulting G/L entries with that legal number, so:

  • Sales invoices, credit memos, and slips in the chart of accounts carry the legal numbering.
  • The number visible on the Customer Ledger Entry records matches what was printed on the customer's receipt.
  • Auditors can trace any G/L line back to the corresponding store / terminal / transaction with no extra mapping.

If Use Document Store Serial No. is off, the standard composite document number is kept unchanged.