CyberStore Ecommerce 2023 Documentation
INVQRY

See the example of INVQRY code below:

<?xml version="1.0" encoding="UTF-8" ?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  <xsl:param name="WareHouseFilter" >
    <xsl:value-of select="//Warehouse"  />
  </xsl:param>
  <xsl:template match="/">
    <Query xmlns:xsd="http://www.w3.org/2000/10/XMLSchema-instance" xsd:noNamespaceSchemaLocation="INVQRY.XSD">
      <Key>
        <StockCode>
            <xsl:value-of select="//StockCode"></xsl:value-of>
        </StockCode>
      </Key>
      <Option>
        <IncludeHistory>N</IncludeHistory>
        <IncludeBins>N</IncludeBins>
        <IncludeLots>N</IncludeLots>
        <IncludeEcc>N</IncludeEcc>
        <IncludeSerials>N</IncludeSerials>
        <IncludeMovements>N</IncludeMovements>
        <IncludeCustomForms>N</IncludeCustomForms>
        <IncludeMovementIssues>N</IncludeMovementIssues>
        <IncludeMovementTransfers>N</IncludeMovementTransfers>
        <IncludeMovementReceipts>N</IncludeMovementReceipts>
        <IncludeMovementPhysical>N</IncludeMovementPhysical>
        <IncludeMovementAdjustments>N</IncludeMovementAdjustments>
        <IncludeMovementCostChanges>N</IncludeMovementCostChanges>
        <IncludeMovementCostMods>N</IncludeMovementCostMods>
        <IncludeMovementInvoices>N</IncludeMovementInvoices>
        <IncludeMovementCreditNotes>N</IncludeMovementCreditNotes>
        <IncludeMovementDebitNotes>N</IncludeMovementDebitNotes>
        <IncludeMovementDispatchNotes>N</IncludeMovementDispatchNotes>
        <XslStylesheet/>
      </Option>


      <Filter>
        <xsl:if test="$WareHouseFilter!=''">
          <xsl:element name="Warehouse" >
            <xsl:attribute name="FilterType" >L</xsl:attribute>
            <xsl:attribute name="FilterValue" >
              <xsl:value-of select="$WareHouseFilter"  />
            </xsl:attribute>
          </xsl:element>
        </xsl:if>
      </Filter>

    </Query>
  </xsl:template>
</xsl:stylesheet>