{"title":"Calculate due dates in the Spanish version","url":"https://jonas-paprotka.de/docs/localfunctionality/spain/calculating-due-dates/","by":"JOP-AL","license":"Copyright (c) Microsoft Corporation. CC BY 4.0, https://creativecommons.org/licenses/by/4.0/; code samples MIT. From https://learn.microsoft.com/en-us/dynamics365/business-central/localfunctionality/spain/calculating-due-dates, MicrosoftDocs/dynamics365smb-docs at 46907ac (2026-11-19). Changed: includes filled in, links to this site, and for agents shortened without dropping a fact.","credit":"Microsoft Corporation, CC BY 4.0","origin":"https://learn.microsoft.com/en-us/dynamics365/business-central/localfunctionality/spain/calculating-due-dates","source":{"name":"Business Central application docs","repo":"https://github.com/MicrosoftDocs/dynamics365smb-docs","commit":"46907ace177f8d31deba47a2fdb57c3336e66252","date":"2026-11-19"},"checked":"2026-11-19","description":"Learn how payment terms, due date limits, payment days, and nonpayment periods affect due date calculations in Business Central for Spain.","date":"2026-10-20","meta":{"topic":"concept-article"},"outline":[{"level":1,"title":"Calculate due dates in the Spanish version","slug":"calculate-due-dates-in-the-spanish-version","at":0,"chars":4150},{"level":2,"title":"Payment terms","slug":"payment-terms","at":498,"chars":1607},{"level":2,"title":"Overdue payments","slug":"overdue-payments","at":2105,"chars":1715},{"level":2,"title":"Related information","slug":"related-information","at":3820,"chars":330}],"text":"# Calculate due dates in the Spanish version\nIn Spain, there's a legal limit for the number of days that a payment can be delayed. You must submit an annual report of purchases and sales for payments that were made before or after the due date. The legal requirements depend on whether the customer is a private company or a public administration. Learn more about the official declaration BOE-A-2010-10708<https://go.microsoft.com/fwlink/?LinkId=224630> on the Boletín Oficial del Estado website.\n## Payment terms\nTo help you meet the legal requirements, you can set up payment terms so that the due dates are calculated correctly. This includes specifying the maximum number of calendar days that a payment can be delayed after delivery. For example, you can create separate payment terms for sales to the public sector and sales to private companies. The following table illustrates how you can set up payment terms.\nField|Public sector|Private company\nCode|1M(8D) PUB|1M(8D) PRI\nDue Date Calculation|1M|1M\nMax. No. of Days till Due Date|30|60\nFor each customer and vendor, you must select the appropriate payment term code. Then, when you create a document for that customer or vendor, Business Central calculates a due date that doesn't exceed the limit for the relevant payment term.\n> IMPORTANT\n> You can't post a document that creates a bill where one or more installments have a due date that is later than the limit that is specified in the Max. No. of Days till Due Date field.\nIf a due date can't be calculated based on the limit, the due date is set to blank. For example, if the calculated due date falls in a non-payment period and there's no available date before that period, you must specify a due date manually. You can't post a document that has an empty due date.\nYou can change the calculated due date manually, but you can't make it later than the limit that you specify for the payment term. For example, the due date can be calculated to be late because of conflicts with non-payment periods. In that case, you can decide to make the due date earlier than the non-payment period.\n## Overdue payments\nYou must include information about overdue payments in the annual reports for the government. Business Central includes two reports to help you identify overdue payments from customers and payments that you're late in making.\nThe Customer - Overdue Payments and Vendor - Overdue Payments reports include a section for each customer or vendor that lists the payments with the following information:\n Invoice number\n Invoice description\n Document number\n Posting date\n Due date\n Days overdue\n Currency code\n Amount\n Amount in the local reporting currency (LCY)\nEach section has a summary section with the following information.\nInformation|Description\nWeighted average term exceeded|This formula is calculated based on the number of posted payments for the specified period, the number of days that payments were delayed, and the paid amount in (LCY). Learn about the official declaration BOE-A-2010-10708<https://go.microsoft.com/fwlink/?LinkId=224630> on the Boletín Oficial del Estado website.\nPayments within the legal limit|The amounts in LCY and the percentage of the total payments that were made before the maximum allowed due date for each transaction.\nPayments outside the legal limit|The amounts in LCY and the percentage of the total payments that were made after the maximum allowed due date for each transaction.\nAt the end of these reports, there's a section that summarizes this information for all payments. These reports show information based on applied detailed customer ledger entries or applied detailed vendor ledger entries. The information is based on the date filters that you specify. For more information, see Customer - Overdue Payments and Vendor - Overdue Payments.\n## Related information\n how-to-set-limits-for-due-dates\n Managing Payables</payables-manage-payables>\n Managing Receivables</receivables-manage-receivables>\n Defining Payment Methods</finance-payment-methods>\nFind free e-learning modules for Business Central here<https://learn.microsoft.com/training/dynamics365/business-central>"}