# Check external document no. by year

When you post a purchase document (vendor invoice or credit memo), Business Central checks that the **External Document No.** has not already been used for the same vendor. With this module, the duplicate check is limited to the **calendar year** of the **Document Date**.

This lets you post documents from a vendor with the same external number as long as they belong to different years — the typical case of Italian vendors who restart their invoice numbering every year.


1. Open a purchase invoice or credit memo and fill in **External Document No.** and **Document Date**.
2. When posting, the system searches the vendor ledger entries of the same vendor for a document with the same external number.
3. The search only considers entries whose **Document Date** falls between January 1 and December 31 of the year of the new document's date.
4. If a duplicate is found in the same year, posting is blocked as usual; if the number was used only in other years, posting continues.


| Document | External Document No. | Document Date | Result |
|---|---|---|---|
| Already posted invoice | 15 | 03/10/2025 | — |
| New invoice | 15 | 02/05/2026 | Can be posted (different year) |
| New invoice | 15 | 11/20/2025 | Blocked (same year) |


- The check is automatic and requires no additional setup.
- The external document no. check must still be enabled in Purchases & Payables Setup.