Scenario
After processing the bill payment or customer payment using the Withholding Tax bundle, the bill credit or credit memo is not automatically created.
To check for the error encountered during the execution of the script to create the bill credit/credit memo:
1. Navigate to Customization > Scripting > Scheduled Script Status
2. Locate Script: WTax Job Processor
3. Click the Deployment ID
4. Click Execution Log
Common error that users encounter is "INVALID_KEY_OR_REF Invalid taxcode xx reference key for subsidiary yy".
Solution
The number after tax code indicates the Internal ID of the Tax Code which will be used by the Bill Credit/Credit Memo, and due to the incorrect/incompatible Tax Code setup, the Bill Credit/Credit Memo is not created. The following are the common reasons:
1. The Purchase Tax Account/Sales Tax Account is Inactive.
2. The Available On preference is set to Purchase Transactions, with this Tax Code setup, a Credit Memo will not be created. If the Available On is set to Sales Transaction, a Bill Credit will not be created.