Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ошибка формирования титула покупателя в формате 970 приказа #309

Open
nats56 opened this issue Oct 9, 2024 · 0 comments

Comments

@nats56
Copy link

nats56 commented Oct 9, 2024

При вызове метода GenerateTitleXml с параметрами:

boxId = <id ящика в Дидок>
documentTypeNamedId = UniversalTransferDocument 
documentFunction = СЧФДОП 
documentVersion = utd970_05_02_01 
letterId = <messageId>
documentId = <entityId>

и xml где тег Position стоит выше тега Fio

<?xml version="1.0" encoding="utf-8" standalone="no"?>
<UniversalTransferDocumentBuyerTitle xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" AcceptanceDate="03.10.2024" DocumentCreator="Тестовая организация №8861971" OperationContent="Принято без разногласий">
    <ContentOperCode TotalCode="1">
    </ContentOperCode>
    <Signers BoxId="06b3104d-eb06-430e-b0ea-aee029d03208">
    <Signer SignerStatus="1" SignatureType="1" SignerPowersConfirmationMethod="1" SigningDate="03.10.2024">
                    <Position PositionSource="Manual">Генеральный директор</Position>
                    <Fio FirstName="Иван" LastName="Иванов" MiddleName="Иванович"/>
             </Signer>
             
    </Signers>
<Employee FirstName="Иван" LastName="Иванов" MiddleName="Иванович" Position="Генеральный директор"/>
</UniversalTransferDocumentBuyerTitle>

падает ошибка
Invalid data UserContractData: Line: 8, Position: 10, /UniversalTransferDocumentBuyerTitle[1]/Signers[1]/Signer[1]/Fio[1]: The element 'Signer' has invalid child element 'Fio'. List of possible elements expected: 'SignerAdditionalInfo, PowerOfAttorney'.

При изменении очередности тегов, титул формируется

<?xml version="1.0" encoding="utf-8" standalone="no"?>
<UniversalTransferDocumentBuyerTitle xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" AcceptanceDate="03.10.2024" DocumentCreator="Тестовая организация №8861971" OperationContent="Принято без разногласий">
    <ContentOperCode TotalCode="1">
    </ContentOperCode>
    <Signers BoxId="06b3104d-eb06-430e-b0ea-aee029d03208">
    <Signer SignerStatus="1" SignatureType="1" SignerPowersConfirmationMethod="1" SigningDate="03.10.2024">                    
                    <Fio FirstName="Иван" LastName="Иванов" MiddleName="Иванович"/>
                   <Position PositionSource="Manual">Генеральный директор</Position>
             </Signer>
             
    </Signers>
<Employee FirstName="Иван" LastName="Иванов" MiddleName="Иванович" Position="Генеральный директор"/>
</UniversalTransferDocumentBuyerTitle>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant