The bill transfer is performed using routines FINA621 (Transfer Request) and FINA631 (Transfer Approval and Rejection). When the source bill is set to withhold ISS, the routines' verifications are different.
ISS withholding configuration https://tdn.totvs.com/x/frlc+
In this scenario, the service provider and the system branch are in the city of Sao Paulo. When the incoming document is generated (MATA103), the system checks the service code and its tax rate. For example:
Branch 01 from Sao Paulo: The tax rate for service code 0142 is 2.5% (Branch where the withholding will take place)
Branch 02 from Sao Bernardo: The tax rate for the same service type is 1.5%
If the tax is transferred to the Sao Bernardo branch, the payment will be erroneously made to the Sao Bernardo Prefecture, because the tax was already withheld in Sao Paulo.
The tax will only be transferred if the branches registered in SIGAMAT.EMP have the same city code (M0_CODMUN)IMPORTANT!