I have created a document template for Released Products where I wish to maintain multiple fields, including the following four fields:
- "Calculate withholding tax" (for Purchase)
- Item withholding tax group (for Purchase)
- "Calculate withholding tax" (for Sales)
- Item withholding tax group (for Sales)
The data entity used is "Released products V2".
When I try to update the four fields above, so that I activate the withholding tax and try to set a tax group, I get an error message stating that "Withholding tax group must be selected", even though I have selected it
As a workaround, I have tried to run the document template to only update the tax groups (leaving the two booleans to "NO"), and then trying to update the booleans to YES afterwards. However, this only works for the PURCHASE fields since the groups for sales field does not update when the "Calculate withholding tax" is set to No.
Any suggestions on what I can do here? Is this due to how the data entity has been setup so, so that I should try to use another entity?