Pessoal,
No fonte Fontes\PCN2\pcnEventoNFe.pas
Na seguinte linha:
function TInfEvento.getcOrgao: integer;
// (AC,AL,AP,AM,BA,CE,DF,ES,GO,MA,MT,MS,MG,PA,PB,PR,PE,PI,RJ,RN,RS,RO,RR,SC,SP,SE,TO);
// (12,27,16,13,29,23,53,32,52,21,51,50,31,15,25,41,26,22,33,24,43,11,14,42,35,28,17);
begin
if FcOrgao <> 0 then
Result := FcOrgao
else
begin
case fTpEvento of
teCCe,teCancelamento:
begin
Result := StrToInt(copy(FChave,1,2));
{Estados que utilizam a SVAN: ES, MA, PA, PI, RN => Devem utilizar 90}
if Result in [32,21,15,22,24] then
Result := 90; // aqui tem um erro.. não é 90 e sim 91. "Conforme nota técnica NT2011.006b"
end
else
Result := 91;
end;
end;
end;