ActWriteOffShop v2.xml — различия между версиями
Материал из Фабиус wiki
Hisava (обсуждение | вклад) м |
Hisava (обсуждение | вклад) м |
||
Строка 1: | Строка 1: | ||
− | <?xml version="1.0" encoding="utf-8"?> | + | <?xml version = "1.0" encoding = "utf-8"?> |
− | <xs:schema version="1.0" | + | <xs:schema version = "1.0" |
− | xmlns:ns="http://fsrar.ru/WEGAIS/ActWriteOffShop_v2" | + | xmlns:ns = "http://fsrar.ru/WEGAIS/ActWriteOffShop_v2" |
− | targetNamespace="http://fsrar.ru/WEGAIS/ActWriteOffShop_v2" | + | targetNamespace = "http://fsrar.ru/WEGAIS/ActWriteOffShop_v2" |
− | xmlns:xs="http://www.w3.org/2001/XMLSchema" | + | xmlns:xs = "http://www.w3.org/2001/XMLSchema" |
− | elementFormDefault="qualified" | + | elementFormDefault = "qualified" |
− | attributeFormDefault="unqualified" | + | attributeFormDefault = "unqualified" |
− | xmlns:c="http://fsrar.ru/WEGAIS/Common" | + | xmlns:c = "http://fsrar.ru/WEGAIS/Common" |
− | xmlns:ce="http://fsrar.ru/WEGAIS/CommonEnum" | + | xmlns:ce = "http://fsrar.ru/WEGAIS/CommonEnum" |
− | xmlns:pref="http://fsrar.ru/WEGAIS/ProductRef_v2" | + | xmlns:pref = "http://fsrar.ru/WEGAIS/ProductRef_v2" |
> | > | ||
− | <xs:import namespace="http://fsrar.ru/WEGAIS/Common" schemaLocation="EGCommon.xsd"/> | + | <xs:import namespace = "http://fsrar.ru/WEGAIS/Common" schemaLocation = "EGCommon.xsd"/> |
− | <xs:import namespace="http://fsrar.ru/WEGAIS/CommonEnum" schemaLocation="EGCommonEnum.xsd"/> | + | <xs:import namespace = "http://fsrar.ru/WEGAIS/CommonEnum" schemaLocation = "EGCommonEnum.xsd"/> |
− | <xs:import namespace="http://fsrar.ru/WEGAIS/ProductRef_v2" schemaLocation="ProductRef_v2.xsd"/> | + | <xs:import namespace = "http://fsrar.ru/WEGAIS/ProductRef_v2" schemaLocation = "ProductRef_v2.xsd"/> |
− | <xs:complexType name="ActWriteOffShopType_v2"> | + | <xs:complexType name = "ActWriteOffShopType_v2"> |
<xs:annotation> | <xs:annotation> | ||
<xs:documentation>Акт списания</xs:documentation> | <xs:documentation>Акт списания</xs:documentation> | ||
</xs:annotation> | </xs:annotation> | ||
<xs:sequence> | <xs:sequence> | ||
− | <xs:element name="Identity" type="c:IdentityType" nillable="false" minOccurs="0" maxOccurs="1"> | + | <xs:element name = "Identity" type = "c:IdentityType" nillable = "false" minOccurs = "0" maxOccurs = "1"> |
<xs:annotation> | <xs:annotation> | ||
<xs:documentation>Идентификатор документа (клиентский)</xs:documentation> | <xs:documentation>Идентификатор документа (клиентский)</xs:documentation> | ||
</xs:annotation> | </xs:annotation> | ||
</xs:element> | </xs:element> | ||
− | <xs:element name="Header"> | + | <xs:element name = "Header"> |
<xs:complexType> | <xs:complexType> | ||
<xs:all> | <xs:all> | ||
− | <xs:element name="ActNumber" type="c:NoEmptyString50" minOccurs="1" maxOccurs="1"> | + | <xs:element name = "ActNumber" type = "c:NoEmptyString50" minOccurs = "1" maxOccurs = "1"> |
<xs:annotation> | <xs:annotation> | ||
<xs:documentation>Номер документа</xs:documentation> | <xs:documentation>Номер документа</xs:documentation> | ||
</xs:annotation> | </xs:annotation> | ||
</xs:element> | </xs:element> | ||
− | <xs:element name="ActDate" type="c:DateNoTime" minOccurs="1" maxOccurs="1"> | + | <xs:element name = "ActDate" type = "c:DateNoTime" minOccurs = "1" maxOccurs = "1"> |
<xs:annotation> | <xs:annotation> | ||
<xs:documentation>Дата составления</xs:documentation> | <xs:documentation>Дата составления</xs:documentation> | ||
Строка 39: | Строка 39: | ||
</xs:element> | </xs:element> | ||
− | <xs:element name="TypeWriteOff" type="ce:TypeWriteOff" minOccurs="1" maxOccurs="1"> | + | <xs:element name = "TypeWriteOff" type = "ce:TypeWriteOff" minOccurs = "1" maxOccurs = "1"> |
<xs:annotation> | <xs:annotation> | ||
<xs:documentation>Причина списания</xs:documentation> | <xs:documentation>Причина списания</xs:documentation> | ||
Строка 45: | Строка 45: | ||
</xs:element> | </xs:element> | ||
− | <xs:element name="Note" minOccurs="0" maxOccurs="1"> | + | <xs:element name = "Note" minOccurs = "0" maxOccurs = "1"> |
<xs:annotation> | <xs:annotation> | ||
<xs:documentation>Примечание</xs:documentation> | <xs:documentation>Примечание</xs:documentation> | ||
</xs:annotation> | </xs:annotation> | ||
<xs:simpleType> | <xs:simpleType> | ||
− | <xs:restriction base="xs:string"> | + | <xs:restriction base = "xs:string"> |
− | <xs:maxLength value="500"/> | + | <xs:maxLength value = "500"/> |
</xs:restriction> | </xs:restriction> | ||
</xs:simpleType> | </xs:simpleType> | ||
Строка 58: | Строка 58: | ||
</xs:complexType> | </xs:complexType> | ||
</xs:element> | </xs:element> | ||
− | <xs:element name="Content"> | + | <xs:element name = "Content"> |
<xs:complexType> | <xs:complexType> | ||
<xs:sequence> | <xs:sequence> | ||
− | <xs:element name="Position" type="ns:ActWriteOffShopPositionType" minOccurs="1" maxOccurs="unbounded"> | + | <xs:element name = "Position" type = "ns:ActWriteOffShopPositionType" minOccurs = "1" maxOccurs = "unbounded"> |
<xs:annotation> | <xs:annotation> | ||
<xs:documentation>Содержимое акта должно содержать 1 и более позиций</xs:documentation> | <xs:documentation>Содержимое акта должно содержать 1 и более позиций</xs:documentation> | ||
Строка 68: | Строка 68: | ||
</xs:sequence> | </xs:sequence> | ||
</xs:complexType> | </xs:complexType> | ||
− | <xs:unique name="PosUn"> | + | <xs:unique name = "PosUn"> |
− | <xs:selector xpath="ns:Position"/> | + | <xs:selector xpath = "ns:Position"/> |
− | <xs:field xpath="ns:Identity"/> | + | <xs:field xpath = "ns:Identity"/> |
</xs:unique> | </xs:unique> | ||
</xs:element> | </xs:element> | ||
Строка 76: | Строка 76: | ||
</xs:complexType> | </xs:complexType> | ||
− | <xs:complexType name="ActWriteOffShopPositionType"> | + | <xs:complexType name = "ActWriteOffShopPositionType"> |
<xs:annotation> | <xs:annotation> | ||
<xs:documentation>Позиция</xs:documentation> | <xs:documentation>Позиция</xs:documentation> | ||
</xs:annotation> | </xs:annotation> | ||
<xs:all> | <xs:all> | ||
− | <xs:element name="Identity" type="c:IdentityType" nillable="false" minOccurs="1" maxOccurs="1"> | + | <xs:element name = "Identity" type = "c:IdentityType" nillable = "false" minOccurs = "1" maxOccurs = "1"> |
<xs:annotation> | <xs:annotation> | ||
<xs:documentation>Идентификатор позиции внутри акта</xs:documentation> | <xs:documentation>Идентификатор позиции внутри акта</xs:documentation> | ||
</xs:annotation> | </xs:annotation> | ||
</xs:element> | </xs:element> | ||
− | <xs:element name="Product" type="pref:ProductInfo_v2" minOccurs="1" maxOccurs="1"> | + | <xs:element name = "Product" type = "pref:ProductInfo_v2" minOccurs = "1" maxOccurs = "1"> |
<xs:annotation> | <xs:annotation> | ||
<xs:documentation>Информация о продукции</xs:documentation> | <xs:documentation>Информация о продукции</xs:documentation> | ||
</xs:annotation> | </xs:annotation> | ||
</xs:element> | </xs:element> | ||
− | <xs:element name="Quantity" type="c:PositiveDecimalType" minOccurs="1" maxOccurs="1"> | + | <xs:element name = "Quantity" type = "c:PositiveDecimalType" minOccurs = "1" maxOccurs = "1"> |
<xs:annotation> | <xs:annotation> | ||
<xs:documentation>Количество</xs:documentation> | <xs:documentation>Количество</xs:documentation> | ||
</xs:annotation> | </xs:annotation> | ||
</xs:element> | </xs:element> | ||
− | <xs:element name="SumSale" type="c:NoNegativeDecimalType" minOccurs="0" maxOccurs="1"> | + | <xs:element name = "SumSale" type = "c:NoNegativeDecimalType" minOccurs = "0" maxOccurs = "1"> |
<xs:annotation> | <xs:annotation> | ||
<xs:documentation>Сумма продажи. Обязательно для заполнения при причине списания "Реализация"</xs:documentation> | <xs:documentation>Сумма продажи. Обязательно для заполнения при причине списания "Реализация"</xs:documentation> | ||
</xs:annotation> | </xs:annotation> | ||
</xs:element> | </xs:element> | ||
− | <xs:element name="MarkCodeInfo" type="ce:MarkCodeInfoType" minOccurs="0" maxOccurs="1"> | + | <xs:element name = "MarkCodeInfo" type = "ce:MarkCodeInfoType" minOccurs = "0" maxOccurs = "1"> |
<xs:annotation> | <xs:annotation> | ||
<xs:documentation>Перечень считанных кодов марок</xs:documentation> | <xs:documentation>Перечень считанных кодов марок</xs:documentation> |
Версия 09:25, 27 апреля 2021
<?xml version = "1.0" encoding = "utf-8"?> <xs:schema version = "1.0"
xmlns:ns = "http://fsrar.ru/WEGAIS/ActWriteOffShop_v2" targetNamespace = "http://fsrar.ru/WEGAIS/ActWriteOffShop_v2" xmlns:xs = "http://www.w3.org/2001/XMLSchema" elementFormDefault = "qualified" attributeFormDefault = "unqualified" xmlns:c = "http://fsrar.ru/WEGAIS/Common" xmlns:ce = "http://fsrar.ru/WEGAIS/CommonEnum" xmlns:pref = "http://fsrar.ru/WEGAIS/ProductRef_v2"
>
<xs:import namespace = "http://fsrar.ru/WEGAIS/Common" schemaLocation = "EGCommon.xsd"/> <xs:import namespace = "http://fsrar.ru/WEGAIS/CommonEnum" schemaLocation = "EGCommonEnum.xsd"/> <xs:import namespace = "http://fsrar.ru/WEGAIS/ProductRef_v2" schemaLocation = "ProductRef_v2.xsd"/>
<xs:complexType name = "ActWriteOffShopType_v2"> <xs:annotation> <xs:documentation>Акт списания</xs:documentation> </xs:annotation> <xs:sequence> <xs:element name = "Identity" type = "c:IdentityType" nillable = "false" minOccurs = "0" maxOccurs = "1"> <xs:annotation> <xs:documentation>Идентификатор документа (клиентский)</xs:documentation> </xs:annotation> </xs:element> <xs:element name = "Header"> <xs:complexType> <xs:all> <xs:element name = "ActNumber" type = "c:NoEmptyString50" minOccurs = "1" maxOccurs = "1"> <xs:annotation> <xs:documentation>Номер документа</xs:documentation> </xs:annotation> </xs:element> <xs:element name = "ActDate" type = "c:DateNoTime" minOccurs = "1" maxOccurs = "1"> <xs:annotation> <xs:documentation>Дата составления</xs:documentation> </xs:annotation> </xs:element>
<xs:element name = "TypeWriteOff" type = "ce:TypeWriteOff" minOccurs = "1" maxOccurs = "1"> <xs:annotation> <xs:documentation>Причина списания</xs:documentation> </xs:annotation> </xs:element>
<xs:element name = "Note" minOccurs = "0" maxOccurs = "1"> <xs:annotation> <xs:documentation>Примечание</xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base = "xs:string"> <xs:maxLength value = "500"/> </xs:restriction> </xs:simpleType> </xs:element> </xs:all> </xs:complexType> </xs:element> <xs:element name = "Content"> <xs:complexType> <xs:sequence> <xs:element name = "Position" type = "ns:ActWriteOffShopPositionType" minOccurs = "1" maxOccurs = "unbounded"> <xs:annotation> <xs:documentation>Содержимое акта должно содержать 1 и более позиций</xs:documentation> </xs:annotation> </xs:element> </xs:sequence> </xs:complexType> <xs:unique name = "PosUn"> <xs:selector xpath = "ns:Position"/> <xs:field xpath = "ns:Identity"/> </xs:unique> </xs:element> </xs:sequence> </xs:complexType>
<xs:complexType name = "ActWriteOffShopPositionType"> <xs:annotation> <xs:documentation>Позиция</xs:documentation> </xs:annotation> <xs:all> <xs:element name = "Identity" type = "c:IdentityType" nillable = "false" minOccurs = "1" maxOccurs = "1"> <xs:annotation> <xs:documentation>Идентификатор позиции внутри акта</xs:documentation> </xs:annotation> </xs:element> <xs:element name = "Product" type = "pref:ProductInfo_v2" minOccurs = "1" maxOccurs = "1"> <xs:annotation> <xs:documentation>Информация о продукции</xs:documentation> </xs:annotation> </xs:element> <xs:element name = "Quantity" type = "c:PositiveDecimalType" minOccurs = "1" maxOccurs = "1"> <xs:annotation> <xs:documentation>Количество</xs:documentation> </xs:annotation> </xs:element> <xs:element name = "SumSale" type = "c:NoNegativeDecimalType" minOccurs = "0" maxOccurs = "1"> <xs:annotation> <xs:documentation>Сумма продажи. Обязательно для заполнения при причине списания "Реализация"</xs:documentation> </xs:annotation> </xs:element> <xs:element name = "MarkCodeInfo" type = "ce:MarkCodeInfoType" minOccurs = "0" maxOccurs = "1"> <xs:annotation> <xs:documentation>Перечень считанных кодов марок</xs:documentation> </xs:annotation> </xs:element> </xs:all> </xs:complexType>
</xs:schema>