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

Новые ставки НДС для УКД 736 #1181

Open
demions opened this issue Jan 14, 2025 · 0 comments
Open

Новые ставки НДС для УКД 736 #1181

demions opened this issue Jan 14, 2025 · 0 comments

Comments

@demions
Copy link

demions commented Jan 14, 2025

Добрый день.

В веб-версии Диадок добавилась возможность указывать новые ставки НДС для УКД 736.
В DiadocSDK 2.28.0 для УКД до сих пор в контракте Diadoc.Api.DataXml.Ucd736.UniversalCorrectionDocument используется старый enum, который новые ставки не поддерживает -

public partial class ExtendedInvoiceCorrectionItemTaxRate

public enum TaxRateWithTwentyPercentAndTaxedByAgent

Добавьте туда поддержку новых ставок НДС, пожалуйста.

Сейчас в результате парсинга через контракт Diadoc.Api.DataXml.Ucd736.UniversalCorrectionDocument УКД 736, отправленного через веб, падает ошибка:

System.InvalidOperationException: There is an error in XML document (31, 42). ---> System.InvalidOperationException: Instance validation error: '5%' is not a valid value for TaxRateWithTwentyPercentAndTaxedByAgent.
   at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderUniversalCorrectionDocument.Read17_Item(String s)
   at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderUniversalCorrectionDocument.Read18_Item(Boolean isNullable, Boolean checkType)
   at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderUniversalCorrectionDocument.Read40_ExtendedInvoiceCorrectionItem(Boolean isNullable, Boolean checkType)
   at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderUniversalCorrectionDocument.Read43_InvoiceCorrectionTable(Boolean isNullable, Boolean checkType)
   at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderUniversalCorrectionDocument.Read70_UniversalCorrectionDocument(Boolean isNullable, Boolean checkType)
   at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderUniversalCorrectionDocument.Read71_UniversalCorrectionDocument()
   --- End of inner exception stack trace ---
   at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle, XmlDeserializationEvents events)
   at System.Xml.Serialization.XmlSerializer.Deserialize(Stream stream)
   at DiadocTest.XmlExtensions.DeserializeFromXml[T](Byte[] content)
   at DiadocTest.DiadocClient.ParseTitleXml[T](Byte[] content, String documentTypeNamedId, String documentFunction, String documentVersion, Int32 titleIndex)
   at DiadocTest.DiadocClient.ParseSellerTitle[T](Byte[] content, String documentTypeNamedId, String documentFunction, String documentVersion)
   at DiadocTest.Utils.ParsingTest.TestDocument()
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