Skip to main content
ExLibris
  • Subscribe by RSS
  • Ex Libris Knowledge Center

    Print only invoices from current year on acq-s-order-info

    • Article Type: Q&A
    • Product: Aleph
    • Product Version: 20

    Question

    Currently, when printing the acq-s-order-info slip, all invoices linked to the order are printed. We want to print only the invoices from the current year. Same for the budget transactions. How can we do this?

    Answer

    To print out only invoices that have got an invoice date and only budget transactions that have got a creation date from the current year (e.g. 2012) , you can use XSL (for-each element).

    Please do the following:

    1) Call up "acq-s-order-info.xsl" in form_eng. (Or create a new version of the file).

    2) At the top of the XSL-file add element xsl:for-each

    example:

    - for the budget transactions

    <!--section-02 (GRID)-->
    <!--xsl:for-each select="//section-02"-->

    <xsl:for-each select="//section-02[substring(z601-open-date,7,4)='2012']">

    <xsl:if test="position() = 1">
    <xsl:call-template name="section-02">
    <xsl:with-param name="header" select="'header'"/>
    </xsl:call-template>
    </xsl:if>
    <xsl:call-template name="section-02"/>
    </xsl:for-each>


    - for the invoices

    <!--section-03 (GRID)-->
    <!-- xsl:for-each select="//section-03" -->

    <xsl:for-each select="//section-03[substring(z77-i-date,7,4)='2012']">

    <xsl:if test="position() = 1">
    <xsl:call-template name="section-03">
    <xsl:with-param name="header" select="'header'"/>
    </xsl:call-template>
    </xsl:if>
    <xsl:call-template name="section-03"/>
    </xsl:for-each>


    3) Use util i/6 to recreate the print template package.

    4) Now click on button "Print" for a standing order or serials order in the Order List in the Acquisitions module. The invoices and budget transactions sections on the acq-s-order-slip printout now have only records from the current year (e.g. 2012).

    Category: Printing (500)


    • Article last edited: 10/8/2013
    //Feedback