web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested Answer

Withholding Tax not automatically deducting- Spain

(3) ShareShare
ReportReport
Posted on by 9
Hi everyone, 
Attempting to get Withholding Tax to automatically deduct at the point of settling accounts payable invoice.  At the point of marking the invoice for settlement, the expectation that the 'blue banner' would pop like this example:
 
 
Having checked all the following set-up as follows:
  1. Turned on Global Withholding Tax from feature management
  2. Set up Withholding Tax Authority
  3. Set up Withholding Tax Settlement period
  4. Set up Withholding Tax Ledger Posting Group
  5. Set up Withholding Tax Codes
  6. Set up Withholding Tax Groups
  7. Set up Item Withholding Tax Groups
  8. Set up Minimum invoice amount in General Ledger Parameters>Withholding Tax page
  9. Set Vendor to Calculate Withholding Tax field to “Yes” along with selecting Withholding Tax Group
  10. Set Item Withholding Tax Group against Released Products.
The estimated Withholding Tax can be seen successfully on the Purchase Order.
 
I am able to manually get the Withholding Tax to apply on the following route Vendor Payment Journal>Settle Transactions>Mark Selected>Click Withholding Tax tab>Click New>Apply Witholding Tax code.  At this stage the Withholding Tax is applied and deducted. However due to volume of transactions and to ensure compliance it is preferred that this should operate automatically based on the configuration.
 
Any ideas on why this will not automatically deduct at point of settlement? 
 
Many thanks in advance for any advice.
 
 
 
 
Categories:
I have the same question (0)
  • Suggested answer
    Saif Ali Sabri Profile Picture
    2,354 Moderator on at
    Based on your detailed setup and the symptoms described, you're very close. Since the estimated withholding tax appears correctly on the Purchase Order and you're able to manually apply it during settlement, this indicates that the core configurations are largely correct. However, the issue lies in the automatic deduction during settlement—specifically the missing 'blue banner' notification at the point of marking the invoice for settlement.
    Solution Steps: Ensure Automatic Withholding Tax Deduction at Settlement in D365 Finance (Spain-specific)

    1. Check Vendor Payment Journal Parameters
    Ensure the journal you're using allows automatic withholding tax calculation.
    • Go to Accounts Payable > Payments > Payment Journal
    • Select your journal name
    • Click Lines > Functions > Settlements
    • Before marking transactions, ensure the “Calculate withholding tax” option is enabled under Payment journal lines (click the "Withholding tax" button and verify).
    ⚠️ This setting doesn’t always persist across journal batches, so verify per journal.

    2. Enable Automatic Withholding Tax Calculation at Settlement
    This must be explicitly enabled in Accounts payable parameters.
    • Go to: Accounts Payable > Setup > Accounts payable parameters
    • Under Withholding tax, check:
      • Calculate withholding taxmust be set to Yes
      • Apply withholding tax at settlementcritical; must be set to Yes
    If “Apply withholding tax at settlement” is disabled, withholding will only trigger during invoice posting, not payment settlement.

    3. Check Country/Region Localization Dependencies
    Spain localization may affect automatic processing based on legal parameters.
    • Ensure the country context is correctly set to Spain in the legal entity
    • Confirm that the localization-specific WHT behavior is enabled via:
      • General ledger > Setup > Ledger
      • Validate that the Country/region code is ES

    4. Validate Withholding Tax Code Settings
    Make sure the application timing is set appropriately.
    • Go to Tax > Withholding tax > Withholding tax codes
    • For the applicable code, check:
      • Calculation date = Payment date (not invoice date)
      • Calculation basis is correct (typically Gross amount)
      • Posting at = Payment (since you want deduction at settlement)

    5. Check Payment Method / Terms Configuration
    The payment method or terms used could be bypassing the tax logic.
    • Navigate to Accounts payable > Setup > Payment > Methods of payment
    • Check if:
      • The method used links to a bank account
      • The "Payment status" is not set to something like None, which might skip further processing

    6. Test with a Clean Vendor and Transaction
    To isolate config issues:
    • Create a new test vendor with minimal config but correct WHT group
    • Post a small invoice above the WHT threshold
    • Go to Vendor payment journal, select the vendor, and click Settle transactions
    • Check for the blue banner upon marking for settlement

    🧪 Final Troubleshooting Tip
    If everything is set up correctly and it still doesn’t auto-deduct, run the Consistency check:
    • Accounts payable > Periodic > Withholding tax > Check withholding tax setup
    • This will flag any inconsistencies (e.g. mismatched ledger posting groups or inactive WHT periods)

    Summary Checklist
    Configuration Point Status
    Global WHT feature enabled
    WHT parameters enabled in AP parameters
    Journal allows WHT calculation
    WHT Codes set to calculate at payment
    Country/region settings aligned to Spain
    Vendor & Product WHT groups assigned correctly
    Manual WHT works
    Automatic WHT at settlement 🔴

    Please verify items marked and 🔴. Most likely, enabling “Apply withholding tax at settlement” in Accounts Payable parameters and adjusting WHT code calculation timing will resolve the issue.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 658

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 468 Super User 2026 Season 1

#3
Syed Haris Shah Profile Picture

Syed Haris Shah 333 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans