Professional Documents
Culture Documents
Technical Solution Document - WHT Deduction Sri Lanka
Technical Solution Document - WHT Deduction Sri Lanka
Technical Solution Document - WHT Deduction Sri Lanka
Central
Prepared By - Sanka Dissanayake
Version 1.0 - 2024-03-05.
This document will outline the key aspects of our technical solution, including
both functional and technical details.
In Purchase documents, BC will update Default Nature of Service from vendor card.
User should be able to change it before posting the document. It is user’s/ approver’s
responsibility to select correct Nature of the service in the purchase document.
In Payment Journal, new fields such as ‘Nature of Service’, ‘WHT %’ (un-editable) will
be maintained. When user selects the vendor no., BC will update default Nature of
Service and related WHT % from above mentioned setups. IF user wants to settle for
different Nature of Service, user can manually update it. Later, the user will update the
amount in payment journal, apply relevant invoices (there will be a validation that
user could be able to select invoices that are matching with the Nature of the Service
mentioned in the payment journal) and click a button on Payment Journal Ribbon as
‘Calculate WHT’. BC will check whether the payment journal amount exceeds the ‘WHT
applicable Amount’ mentioned in the above setup. If so, BC will create a new line with
Dr Vendor; Cr WHT Payable Account (This will have same document no. as above line).
There should be a validation that BC will not allow to post payment journal if user
doesn’t run the calculation when Nature of Service Code is selected in Payment Journal
Line.
While posting the transaction, BC will update Nature of Service Code, WHT % to GL
Entry, Vendor Ledger Entry tables.”
1. Functional Requirements Recap
Code
Description
WHT %
Vendor Card:
Purchase Documents:
Payment Journal:
● Maintain new fields: ‘Nature of Service’, ‘WHT %’, WHT Base Amount” and
“WHT Amount” (un-editable).
● Retrieve default Nature of Service and related WHT % from setups when
selecting a vendor.
WHT Calculation:
● Check if the payment journal amount exceeds the ‘WHT applicable Amount’.
Code
Description
WHT %
Enable
● Add a “WHT Enable” field to the general ledger setup as a table and page
extension.
● This field will allow global enabling of Withholding Tax (WHT) deductions.
● Validate the change trigger for the above field by checking whether the user
setup allows the “WHT Enable” option.
Vendor Card:
● Add new field WHT Service Code to Purchase header and Purchase invoice
page.
○ WHT %’,
● When creating a payment journal, retrieve the default WHT Service Code and
related WHT % from the setups for manual payment journal entries and for
those automatically payment journal creating entries it is required to update
WHT Service Code, WHT %, WHT Base Amount, WHT Amount fields.
○ Need to handle payment journal creation all scenarios and update the
WHT related fields.
● Check G/L setup WHT global enable Boolean when executing WHT
calculations.
● Validate that selected invoices match the WHT Service Code mentioned in
the payment journal when check print and posting action press.
● Provide a “Calculate WHT” button that checks if the payment journal amount
exceeds the ‘WHT Applicable Amount’ from the setups. – this was auto
calculated when vendor code selected or amount field update, also need to
add this function to the approval sending action.
● If applicable, create a new line with Debit to Vendor and Credit to WHT
Payable Account.
4. Validation Rules
● Prevent posting if the user hasn’t run the WHT calculation when selecting the
WHT Service Code in the Payment Journal Line.
On User Setup page add new blob filed as Signature to store user’s signature.
6. Reports
7. Permissions
Set Vendor card “WHT Service Code” update permission via user setup.
Use “WHT Enable” field for this when WHT Service Code CRUD operations
and Vendor card WHT Service Code changing validate this.