<dat:dataPack id="001" ico="{literal}{KUPSHOP_ICO}{/literal}" application="KupShop" version="2.0" note="Požadavek na export výběru objednávek"
    xmlns:dat="http://www.stormware.cz/schema/version_2/data.xsd"
    xmlns:ftr="http://www.stormware.cz/schema/version_2/filter.xsd"
    xmlns:lst="http://www.stormware.cz/schema/version_2/list.xsd"
    xmlns:typ="http://www.stormware.cz/schema/version_2/type.xsd">

   <dat:dataPackItem id="li1" version="2.0">
      <lst:listOrderRequest version="2.0" orderType="receivedOrder" orderVersion="2.0">
         <lst:requestOrder>
            <ftr:filter>
               {if !$full}
                  {$lastSyncTime = $pohodaConnector->getLastSyncTime('ordersIn')}
                  <ftr:lastChanges>{$lastSyncTime|strtotime|date_format:"Y-m-d\TH:i:sP"}</ftr:lastChanges>
               {/if}
               {if $IDs}
               <ftr:selectedNumbers>
                  {foreach $IDs as $ID}
                     <ftr:number>
                        <typ:numberRequested>{$ID}</typ:numberRequested>
                     </ftr:number>
                  {/foreach}
               </ftr:selectedNumbers>
            {/if}
            </ftr:filter>
         </lst:requestOrder>
      </lst:listOrderRequest>
   </dat:dataPackItem>
</dat:dataPack>
