To generate DES Itatiba correctly, check:
Tax Code of Service Provided (CFPS) is used by Itatiba City Hall to classify transaction involving services.
To identify the transaction CFPS, fields F4_CFPS, F3_CFPS, D1_CFPS and D2_CFPS must be created as described above. TIO used in the transaction must contain the CFPS (F4_CFPS) configured so, at the moment the tax document is entered, the system records the code in the items and in the Tax Record, thus allowing to generate the magnetic medium properly.