Файлы УТМ — различия между версиями

Материал из Фабиус wiki
Перейти к: навигация, поиск
м (1.23.4 Акт списания из торгового зала)
м (1.23.4 Акт списания из торгового зала)
Строка 1: Строка 1:
 
= 1.23.4 Акт списания из торгового зала =
 
= 1.23.4 Акт списания из торгового зала =
  
Чтобы списать продукцию со второго регистра остатков, сформируйте
+
Чтобы списать продукцию со второго регистра остатков, сформируйте "Акт списания"
  
Акт списания
 
  
вида:
 
  
 
<?xml version="1.0" encoding="UTF-8"?>
 
<?xml version="1.0" encoding="UTF-8"?>

Версия 17:14, 9 ноября 2016

1.23.4 Акт списания из торгового зала

Чтобы списать продукцию со второго регистра остатков, сформируйте "Акт списания"


<?xml version="1.0" encoding="UTF-8"?> <ns:Documents Version="1.0" Технические требования версия 2.0.3.02 55

xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:ns= "http://fsrar.ru/WEGAIS/WB_DOC_SINGLE_01"
xmlns:pref="http://fsrar.ru/WEGAIS/ProductRef_v2"
xmlns:oref="http://fsrar.ru/WEGAIS/ClientRef_v2"
xmlns:awr="http://fsrar.ru/WEGAIS/ActWriteOffShop_v2"
xmlns:ce="http://fsrar.ru/WEGAIS/CommonEnum"

>

<ns:Owner>
<ns:FSRAR_ID>010000000435</ns:FSRAR_ID>
</ns:Owner>
<ns:Document>
<ns:ActWriteOffShop_v2>
<awr:Identity>456</awr:Identity>
<awr:Header> (1.23.7)
<awr:ActNumber>10</awr:ActNumber>
<awr:ActDate>2015-10-08</awr:ActDate>
<awr:TypeWriteOff>Недостача</awr:TypeWriteOff>
<awr:Note>текст комментария</awr:Note>
</awr:Header>
<awr:Content>
<awr:Position>
<awr:Identity>1</awr:Identity>
<awr:Product>
<pref:UnitType>Packed</pref:UnitType>
<pref:Type>АП</pref:Type>
<pref:FullName>Ликерка 0.3500 л.</pref:FullName>
<pref:AlcCode>0017854000001189843</pref:AlcCode>
<pref:Capacity>0.350</pref:Capacity>
<pref:Producer>
<oref:UL>
<oref:ClientRegId>01149896</oref:ClientRegId>
<oref:FullName>ЗАКРЫТОЕ АКЦИОНЕРНОЕ ОБЩЕСТВО

"СВАРОГ"</oref:FullName>

<oref:ShortName>ЗАО "СВАРОГ"</oref:ShortName>
<oref:INN>7803011250</oref:INN>
<oref:KPP>784401001</oref:KPP>
<oref:address> (1.23.7)
<oref:Country>643</oref:Country>
<oref:RegionCode>78</oref:RegionCode>
<oref:description>643,197110,С-ПЕТЕРБУРГ,,,,ПЕТРОВСКАЯ КОСА УЛ,1,1,ЛИТ.

А</oref:description>

</oref:address>
</oref:UL>
</pref:Producer>
<pref:ProductVCode>АП</pref:ProductVCode>
</awr:Product>
<awr:Quantity>2</awr:Quantity>
</awr:Position>
<awr:Position>
<awr:Identity>2</awr:Identity>
<awr:Product>
<pref:UnitType>Packed</pref:UnitType>
<pref:Type>АП</pref:Type>
<pref:FullName>Коньяк "Вершины Кавказа" 5-ти летний 1.0000 л.</pref:FullName>
<pref:ShortName />
<pref:AlcCode>0017878000001312143</pref:AlcCode>
<pref:Capacity>1.000</pref:Capacity>
<pref:ProductVCode>АП</pref:ProductVCode>
<pref:Producer> (1.23.7)
<oref:UL>

Технические требования версия 2.0.3.02 56

<oref:ClientRegId>01151479</oref:ClientRegId>
<oref:FullName>ОБЩЕСТВО С ОГРАНИЧЕННОЙ ОТВЕТСТВЕННОСТЬЮ

"СЕВЕР"</oref:FullName>

<oref:ShortName>ООО "СЕВЕР"</oref:ShortName>
<oref:INN>7805367340</oref:INN>
<oref:KPP>780501001</oref:KPP>
<oref:address>
<oref:Country>643</oref:Country>
<oref:RegionCode>78</oref:RegionCode>
<oref:description>643,196240,САНКТ-ПЕТЕРБУРГ Г,,,,ПРЕДПОРТОВАЯ УЛ,6,ЛИТ.

Ж,ПОМ. №10 В ПОМ.3Н</oref:description>

</oref:address>
</oref:UL>
</pref:Producer>
</awr:Product>
<awr:Quantity>1</awr:Quantity>
<awr:MarkCodeInfo>

<awr:MarkCode>09001785400000118984312PX905150010000012515518222446177313434237912077</ awr:MarkCode>

</awr:MarkCodeInfo>
</awr:Position>
</awr:Content>
</ns:ActWriteOffShop_v2>
</ns:Document>

</ns:Documents> Отправьте акт списания (1.23.7) на сервер командой вида: curl -F "xml_file=@ActWriteOffShop.xml" http://localhost:8080/opt/in/ActWriteOffShop_v2

Акт о списании товара

В случае обнаружения недостачи или порчи продукции сформируйте "Акт о списании товара"

ActWriteOff.xml
<?xml version="1.0" encoding="UTF-8"?>
<ns:Documents Version="1.0"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xmlns:ns="http://fsrar.ru/WEGAIS/WB_DOC_SINGLE_01"
  xmlns:pref="http://fsrar.ru/WEGAIS/ProductRef"
  xmlns:awr="http://fsrar.ru/WEGAIS/ActWriteOff">
  <ns:Owner>
    <ns:FSRAR_ID>00040218</ns:FSRAR_ID>
  </ns:Owner>
  <ns:Document>
    <ns:ActWriteOff>
      <awr:Identity>456</awr:Identity>
      <awr:Header>
        <awr:ActNumber>10</awr:ActNumber>
        <awr:ActDate>2015-10-20</awr:ActDate>
        <awr:TypeWriteOff>Недостача</awr:TypeWriteOff>
        <awr:Note>текст комментария</awr:Note>
      </awr:Header>
      <awr:Content>
        <awr:Position>
          <awr:Identity>1</awr:Identity>
          <awr:Quantity>5</awr:Quantity>
          <awr:InformB>
            <pref:BRegId>000000000000211</pref:BRegId>
          </awr:InformB>
        </awr:Position>
      </awr:Content>
    </ns:ActWriteOff>
  </ns:Document>
</ns:Documents>

Отправьте "Акт о списании" на сервер ЕГАИС командой вида:

 curl –F "xml_file=@ActWriteOff.xml" http://localhost:8080/opt/in/ActWriteOff

Операции со вторым регистром остатков

Запрос остатков товара в магазине

Чтобы узнать, какая продукция и в каком количестве зарезервирована за магазином, но еще не реализована, сформируйте документ

QueryRestsShop.xml
<?xml version="1.0" encoding="UTF-8"?>
<ns:Documents Version="1.0"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xmlns:ns="http://fsrar.ru/WEGAIS/WB_DOC_SINGLE_01"
  xmlns:qp="http://fsrar.ru/WEGAIS/QueryParameters"> 
  <ns:Owner>
    <ns:FSRAR_ID>030000194005</ns:FSRAR_ID>
  </ns:Owner>
  <ns:Document>
    <ns:QueryRestsShop_v2>
    </ns:QueryRestsShop_v2>
  </ns:Document>
</ns:Documents>

Отправьте документ на УТМ командой

curl -F "xml_file=@QueryRestsShop.xml" http://localhost:8080/opt/in/QueryRestsShop_v2

Запрос остатков

QueryParameters.xml
<?xml version="1.0" encoding="UTF-8"?>
<ns:Documents Version="1.0"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xmlns:ns="http://fsrar.ru/WEGAIS/WB_DOC_SINGLE_01"
  xmlns:qp="http://fsrar.ru/WEGAIS/QueryParameters">
  <ns:Owner> 
    <ns:FSRAR_ID>00040218</ns:FSRAR_ID>
  </ns:Owner>
  <ns:Document>
    <ns:QueryRests></ns:QueryRests>
  </ns:Document>
</ns:Documents>
curl -F "xml_file=@QueryParameters.xml" http://localhost:8080/opt/in/QueryRests

Передача продукции в торговый зал

TransferToShop.xml
<?xml version="1.0" encoding="utf-8"?>
<ns:Documents Version="1.0"
  xmlns:ns="http://fsrar.ru/WEGAIS/WB_DOC_SINGLE_01"
  xmlns:xs="http://www.w3.org/2001/XMLSchema"
  xmlns:c="http://fsrar.ru/WEGAIS/Common"
  xmlns:pref="http://fsrar.ru/WEGAIS/ProductRef_v2"
  xmlns:tts="http://fsrar.ru/WEGAIS/TransferToShop">
  <ns:Owner>
    <ns:FSRAR_ID>030000194005</ns:FSRAR_ID>
  </ns:Owner>
  <ns:Document>
    <ns:TransferToShop> 
      <tts:Identity>1/1</tts:Identity>
      <tts:Header>
        <tts:TransferNumber>1/1</tts:TransferNumber>
        <tts:TransferDate>2016-04-08</tts:TransferDate>
      </tts:Header>
      <tts:Content>
        <tts:Position>
          <tts:Identity>1</tts:Identity>
          <tts:ProductCode>0035543000001238259</tts:ProductCode>
          <tts:Quantity>11</tts:Quantity>
          <tts:InformF2>
            <pref:F2RegId>TEST-FB-000000012124173</pref:F2RegId>
          </tts:InformF2>
        </tts:Position>
      </tts:Content>
    </ns:TransferToShop>
  </ns:Document>
</ns:Documents>

ТТН

TTN1.xml 
<?xml version="1.0" encoding="UTF-8"?>
<ns:Documents Version="1.0"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xmlns:ns= "http://fsrar.ru/WEGAIS/WB_DOC_SINGLE_01"
  xmlns:c="http://fsrar.ru/WEGAIS/Common"
  xmlns:oref="http://fsrar.ru/WEGAIS/ClientRef"
  xmlns:pref="http://fsrar.ru/WEGAIS/ProductRef"
  xmlns:wb= "http://fsrar.ru/WEGAIS/TTNSingle">
  <ns:Owner>
    <ns:FSRAR_ID>030000255595</ns:FSRAR_ID>
  </ns:Owner>
  <ns:Document> 
    <ns:WayBill>
      <wb:Identity>000346</wb:Identity>
      <wb:Header>
        <wb:NUMBER>000114</wb:NUMBER>
        <wb:Date>2015-12-31</wb:Date>
        <wb:ShippingDate>2015-12-31</wb:ShippingDate>
        <wb:Type>WBReturnFromMe</wb:Type>
        <wb:UnitType>Packed</wb:UnitType>
        <wb:Shipper>
          <oref:ClientRegId>030000255595</oref:ClientRegId>
          <oref:INN>7204122715</oref:INN>
          <oref:KPP>720301001</oref:KPP>
          <oref:FullName>
            ОБЩЕСТВО С ОГРАНИЧЕННОЙ ОТВЕТСТВЕННОСТЬЮ "ОЛИМПИЯ"
          </oref:FullName>
          <oref:ShortName>ООО "ОЛИМПИЯ"</oref:ShortName>
          <oref:address>
            <oref:Country>643</oref:Country>
            <oref:RegionCode>72</oref:RegionCode>
            <oref:description>
              Россия, 625007,ТЮМЕНСКАЯ ОБЛ,ЧАПЛИНА УЛ,ТЮМЕНЬ Г,121,8
            </oref:description>
          </oref:address>
        </wb:Shipper>
        <wb:Consignee>
          <oref:ClientRegId>030000199964</oref:ClientRegId>
          <oref:INN>6165034309</oref:INN>
          <oref:KPP>616701001</oref:KPP>
          <oref:FullName>
            ОБЩЕСТВО С ОГРАНИЧЕННОЙ ОТВЕТСТВЕННОСТЬЮ "ДОН"
          </oref:FullName>
          <oref:ShortName>ООО "ДОН"</oref:ShortName>
          <oref:address>
            <oref:Country>643</oref:Country>
            <oref:RegionCode>61</oref:RegionCode>
            <oref:description>
              Россия, 344037,РОСТОВСКАЯ обл,26-Я ЛИНИЯ ул,РОСТОВ-НА-ДОНУ г,8 ,
            </oref:description>
          </oref:address>
        </wb:Consignee>
        <wb:Transport>
          <wb:TRAN_TYPE>413</wb:TRAN_TYPE>
          <wb:TRAN_COMPANY>ООО"Азурит"</wb:TRAN_COMPANY>
          <wb:TRAN_CAR>Рено</wb:TRAN_CAR>
          <wb:TRAN_TRAILER></wb:TRAN_TRAILER>
          <wb:TRAN_CUSTOMER>ЗАО"Союз-Виктан "</wb:TRAN_CUSTOMER>
          <wb:TRAN_DRIVER>Шайцанс А.В.</wb:TRAN_DRIVER>
          <wb:TRAN_LOADPOINT>П.</wb:TRAN_LOADPOINT>
          <wb:TRAN_UNLOADPOINT></wb:TRAN_UNLOADPOINT>
          <wb:TRAN_REDIRECT></wb:TRAN_REDIRECT>
          <wb:TRAN_FORWARDER>Шайцанс А.В.</wb:TRAN_FORWARDER>
        </wb:Transport>
        <wb:Base>основание - текст</wb:Base>
        <wb:Note>основание - текст</wb:Note>
      </wb:Header>
      <wb:Content>
        <wb:Position>
          <wb:Identity>2</wb:Identity>
          <wb:Product>
            <pref:FullName>
              Напиток ароматизированный, изготовленный на основе пива,
              "Boilermaker by Tuborg" ("Бойлермейкер от Туборг"), пастеризованный в
              бут,СПб
            </pref:FullName>
            <pref:AlcCode>0378116000001250467</pref:AlcCode>
            <pref:Capacity>0.4500</pref:Capacity>
            <pref:AlcVolume>7.000</pref:AlcVolume>
            <pref:ProductVCode>520</pref:ProductVCode>
            <pref:Producer>
              <oref:ClientRegId>030000000017</oref:ClientRegId>
              <oref:INN>7802849641</oref:INN>
              <oref:KPP>780201001</oref:KPP>
              <oref:FullName>
                ОБЩЕСТВО С ОГРАНИЧЕННОЙ ОТВЕТСТВЕННОСТЬЮ "ПИВОВАРЕННАЯ КОМПАНИЯ "БАЛТИКА"
              </oref:FullName>
              <oref:ShortName>
                ООО "ПИВОВАРЕННАЯ КОМПАНИЯ "БАЛТИКА"
              </oref:ShortName>
              <oref:address>
                <oref:Country>643</oref:Country>
                <oref:RegionCode>78</oref:RegionCode>
                <oref:description>
                  Россия, 194292,САНКТ-ПЕТЕРБУРГ ГОРОД,6-Й ВЕРХНИЙ ПЕРЕУЛОК,3 ,
                </oref:description>
              </oref:address>
            </pref:Producer>
          </wb:Product>
          <wb:Quantity>1</wb:Quantity>
          <wb:Price>123.00</wb:Price>
          <wb:Pack_ID>Паллета</wb:Pack_ID>
          <wb:Party>партия № 7</wb:Party>
          <wb:InformA>
            <pref:RegId>000000016497927</pref:RegId>
          </wb:InformA>
          <wb:InformB>
            <pref:InformBItem>
              <pref:BRegId>000000016833991</pref:BRegId>
            </pref:InformBItem>
          </wb:InformB>
        </wb:Position>
      </wb:Content>
    </ns:WayBill>
  </ns:Document>
</ns:Documents>

Подверждение накладной прихода

TTNAct1.xml

Акт расхождения

<?xml version="1.0" encoding="UTF-8"?>
<ns:Documents Version="1.0"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xmlns:ns= "http://fsrar.ru/WEGAIS/WB_DOC_SINGLE_01"
  xmlns:oref="http://fsrar.ru/WEGAIS/ClientRef"
  xmlns:pref="http://fsrar.ru/WEGAIS/ProductRef"
  xmlns:wa= "http://fsrar.ru/WEGAIS/ActTTNSingle">
  <ns:Owner>
    <ns:FSRAR_ID>00072841</ns:FSRAR_ID>
  </ns:Owner>
  <ns:Document>
    <ns:WayBillAct>
      <wa:Header>
        <wa:IsAccept>Accepted</wa:IsAccept>
        <wa:ACTNUMBER>1-1</wa:ACTNUMBER>
        <wa:ActDate>2014-12-17</wa:ActDate>
        <wa:WBRegId>0000002167</wa:WBRegId>
        <wa:Note>Бой товара</wa:Note>
      </wa:Header>
      <wa:Content>
        <wa:Position>
          <wa:Identity>1</wa:Identity>
          <wa:InformBRegId>000000000002142</wa:InformBRegId>
          <wa:RealQuantity>1</wa:RealQuantity>
        </wa:Position>
      </wa:Content>
    </ns:WayBillAct>
  </ns:Document>
</ns:Documents>

Акт согласия

<?xmlversion="1.0" encoding="UTF-8"?>
<ns:DocumentsVersion="1.0"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xmlns:ns= "http://fsrar.ru/WEGAIS/WB_DOC_SINGLE_01"
  xmlns:oref="http://fsrar.ru/WEGAIS/ClientRef"
  xmlns:pref="http://fsrar.ru/WEGAIS/ProductRef"
  xmlns:wa= "http://fsrar.ru/WEGAIS/ActTTNSingle">
<ns:Owner>
  <ns:FSRAR_ID>00072841</ns:FSRAR_ID>
</ns:Owner>
<ns:Document>
  <ns:WayBillAct>
    <wa:Header>
      <wa:IsAccept>Accepted</wa:IsAccept>
      <wa:ACTNUMBER>1-1</wa:ACTNUMBER>
      <wa:ActDate>2015-02-16</wa:ActDate>
      <wa:WBRegId>0000002167</wa:WBRegId>
      <wa:Note>Принимаем продукцию</wa:Note>
    </wa:Header>
    <wa:Content>
    </wa:Content>
  </ns:WayBillAct>
</ns:Document>

Акт отказа

<?xml version="1.0" encoding="UTF-8"?>
<ns:Documents Version="1.0"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xmlns:ns= "http://fsrar.ru/WEGAIS/WB_DOC_SINGLE_01"
  xmlns:oref="http://fsrar.ru/WEGAIS/ClientRef"
  xmlns:pref="http://fsrar.ru/WEGAIS/ProductRef"
  xmlns:wa= "http://fsrar.ru/WEGAIS/ActTTNSingle">
  <ns:Owner>
    <ns:FSRAR_ID>00072841</ns:FSRAR_ID>
  </ns:Owner>
  <ns:Document>
    <ns:WayBillAct>
      <wa:Header>
        <wa:IsAccept>Rejected</wa:IsAccept>
        <wa:ACTNUMBER>1-1</wa:ACTNUMBER>
        <wa:ActDate>2014-12-17</wa:ActDate>
        <wa:WBRegId>0000002167</wa:WBRegId>
        <wa:Note>Пересортица всей продукции</wa:Note>
      </wa:Header>
      <wa:Content>
      </wa:Content>
    </ns:WayBillAct>
  </ns:Document>
</ns:Documents>

Получить справочник организации

client.xml ( 1.5.1 )

<?xml version="1.0" encoding="UTF-8"?>
<ns:Documents Version="1.0"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xmlns:ns="http://fsrar.ru/WEGAIS/WB_DOC_SINGLE_01"
  xmlns:oref="http://fsrar.ru/WEGAIS/ClientRef"
  xmlns:qp="http://fsrar.ru/WEGAIS/QueryParameters">
  <ns:Owner>
    <ns:FSRAR_ID>030000255595</ns:FSRAR_ID>
  </ns:Owner>
  <ns:Document> 
    <ns:QueryClients>
      <qp:Parameters>
        <qp:Parameter>
          <qp:Name>ИНН</qp:Name>
          <qp:Value>5020000004</qp:Value>
        </qp:Parameter>
      </qp:Parameters>
    </ns:QueryClients>
  </ns:Document>
</ns:Documents>

ReplyPartner ( 1.5.9 )

<ns:Documents
  xmlns:rc="http://fsrar.ru/WEGAIS/ReplyClient"
  xmlns:oref="http://fsrar.ru/WEGAIS/ClientRef"
  xmlns:ns="http://fsrar.ru/WEGAIS/WB_DOC_SINGLE_01">
  <ns:Owner>
    <ns:FSRAR_ID>3463047</ns:FSRAR_ID>
  </ns:Owner>
  <ns:Document>
    <ns:ReplyClient>
      <rc:Clients>
        <rc:Client xmlns:rc="http://fsrar.ru/WEGAIS/ReplyClient" xmlns:oref="http://fsrar.ru/WEGAIS/ClientRef">
          <oref:ClientRegId>030000000033</oref:ClientRegId>
          <oref:INN>5020000004</oref:INN>
          <oref:KPP>550002001</oref:KPP>
          <oref:FullName>АКЦИОНЕРНОЕ ОБЩЕСТВО "Пример"</oref:FullName>
          <oref:ShortName>АО "Пример"</oref:ShortName>
          <oref:address>
            <oref:Country>643</oref:Country>
            <oref:RegionCode>55</oref:RegionCode>
            <oref:description>
            644073, РОССИЯ, , , Г ТОМСК, , УЛ ГЛАВНАЯ, 2,
            </oref:description>
          </oref:address>
          <oref:State>Active</oref:State>
        </rc:Client>
        <rc:Client xmlns:rc="http://fsrar.ru/WEGAIS/ReplyClient" xmlns:oref="http://fsrar.ru/WEGAIS/ClientRef">
          <oref:ClientRegId>030000000034</oref:ClientRegId>
          <oref:INN>5020000004</oref:INN>
          <oref:KPP>550002002</oref:KPP>
          <oref:FullName>АКЦИОНЕРНОЕ ОБЩЕСТВО "ПРИМЕР"</oref:FullName>
          <oref:ShortName>АО "ПРИМЕР"</oref:ShortName>
          <oref:address>
            <oref:Country>643</oref:Country>
            <oref:RegionCode>50</oref:RegionCode>
            <oref:description>
            Россия, 141607,МОСКОВСКАЯ обл,МОСКОВСКАЯ ул,ЯБЛОЧКОВА ,14 ,
            </oref:description>
          </oref:address>
          <oref:State>Active</oref:State>
        </rc:Client>
      </rc:Clients>
    </ns:ReplyClient>
  </ns:Document>
</ns:Documents>

Смотрите также

УТМ