Advertisement
widana

report

Dec 5th, 2017
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 15.67 KB | None | 0 0
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <jasperReport xmlns="http://jasperreports.sourceforge.net/jasperreports" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd" name="reportAdjStockForOutlet" language="groovy" pageWidth="595" pageHeight="842" columnWidth="555" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="6c4eaca3-bbef-458e-93fc-58464b84bff9">
  3.     <property name="ireport.zoom" value="1.3310000000000246"/>
  4.     <property name="ireport.x" value="0"/>
  5.     <property name="ireport.y" value="102"/>
  6.     <parameter name="ou_name" class="java.lang.String"/>
  7.     <parameter name="warehouse_name" class="java.lang.String"/>
  8.     <parameter name="doc_no" class="java.lang.String"/>
  9.     <parameter name="doc_date" class="java.lang.String"/>
  10.     <parameter name="activity_gl" class="java.lang.String"/>
  11.     <parameter name="ou_rc" class="java.lang.String"/>
  12.     <parameter name="remark" class="java.lang.String"/>
  13.     <parameter name="approved_by" class="java.lang.String"/>
  14.     <parameter name="created_by" class="java.lang.String"/>
  15.     <parameter name="curr_code" class="java.lang.String"/>
  16.     <parameter name="total_amount" class="java.math.BigDecimal"/>
  17.     <queryString>
  18.         <![CDATA[SELECT
  19.     f_get_product_code(product_id) product_code, f_get_product_name(product_id) product_name,
  20.     serial_number, qty, amount, 'IDR' curr_code
  21. FROM tt_report_adj_stock
  22. ORDER BY product_name ASC;]]>
  23.     </queryString>
  24.     <field name="product_code" class="java.lang.String"/>
  25.     <field name="product_name" class="java.lang.String"/>
  26.     <field name="serial_number" class="java.lang.String"/>
  27.     <field name="qty" class="java.math.BigDecimal"/>
  28.     <field name="amount" class="java.math.BigDecimal"/>
  29.     <field name="curr_code" class="java.lang.String"/>
  30.     <variable name="number" class="java.lang.Long" calculation="Sum">
  31.         <variableExpression><![CDATA[1]]></variableExpression>
  32.         <initialValueExpression><![CDATA[1]]></initialValueExpression>
  33.     </variable>
  34.     <background>
  35.         <band splitType="Stretch"/>
  36.     </background>
  37.     <title>
  38.         <band height="228" splitType="Stretch">
  39.             <textField evaluationTime="Report">
  40.                 <reportElement x="531" y="60" width="16" height="20" uuid="74e638a7-9812-40c7-ae44-1ea262f19ff0"/>
  41.                 <box leftPadding="1"/>
  42.                 <textElement verticalAlignment="Middle">
  43.                     <font size="9"/>
  44.                 </textElement>
  45.                 <textFieldExpression><![CDATA[$V{PAGE_NUMBER}]]></textFieldExpression>
  46.             </textField>
  47.             <textField>
  48.                 <reportElement x="472" y="60" width="56" height="20" uuid="e039adac-cfb1-489a-8704-d29182a6620e"/>
  49.                 <textElement textAlignment="Right" verticalAlignment="Middle">
  50.                     <font size="9"/>
  51.                 </textElement>
  52.                 <textFieldExpression><![CDATA["Page "+$V{PAGE_NUMBER}+" of "]]></textFieldExpression>
  53.             </textField>
  54.             <staticText>
  55.                 <reportElement x="126" y="6" width="329" height="20" uuid="3e77d616-eb5b-4196-8b38-d3d2d1040d81"/>
  56.                 <textElement textAlignment="Center">
  57.                     <font size="13" isBold="false"/>
  58.                 </textElement>
  59.                 <text><![CDATA[ADJUSTMENT STOCK OUTLET]]></text>
  60.             </staticText>
  61.             <textField>
  62.                 <reportElement x="126" y="34" width="329" height="20" uuid="7c8a76c1-0aec-4cfe-a27b-47abd7bcc7c3"/>
  63.                 <textElement textAlignment="Center">
  64.                     <font size="13"/>
  65.                 </textElement>
  66.                 <textFieldExpression><![CDATA[$P{ou_name}]]></textFieldExpression>
  67.             </textField>
  68.             <textField>
  69.                 <reportElement x="126" y="60" width="329" height="20" uuid="603fcb50-c1d7-488c-92ee-17bdc86a19ba"/>
  70.                 <textElement textAlignment="Center">
  71.                     <font size="13"/>
  72.                 </textElement>
  73.                 <textFieldExpression><![CDATA[$P{warehouse_name}]]></textFieldExpression>
  74.             </textField>
  75.             <line>
  76.                 <reportElement x="0" y="80" width="555" height="1" uuid="69e72eda-f487-4cf8-adbd-369ce92db3d9"/>
  77.             </line>
  78.             <staticText>
  79.                 <reportElement x="0" y="84" width="126" height="15" uuid="0b50d19d-8892-4f1c-9d28-6c01bcafac21"/>
  80.                 <text><![CDATA[Adjustment No]]></text>
  81.             </staticText>
  82.             <staticText>
  83.                 <reportElement x="0" y="101" width="126" height="15" uuid="eb24b71f-4422-4864-9617-5f03e63b76fc"/>
  84.                 <text><![CDATA[Adjustment Date]]></text>
  85.             </staticText>
  86.             <staticText>
  87.                 <reportElement x="0" y="118" width="126" height="15" uuid="f8b4f4fd-4b00-4279-a670-4bc36fe90b49"/>
  88.                 <text><![CDATA[Activity GL]]></text>
  89.             </staticText>
  90.             <staticText>
  91.                 <reportElement x="0" y="135" width="126" height="15" uuid="f4e95e49-7d19-4442-8112-6b4987cca200"/>
  92.                 <text><![CDATA[OU RC]]></text>
  93.             </staticText>
  94.             <staticText>
  95.                 <reportElement x="0" y="152" width="126" height="15" uuid="34316264-8913-42b7-bae8-928e6e48a5d7"/>
  96.                 <text><![CDATA[Remark]]></text>
  97.             </staticText>
  98.             <staticText>
  99.                 <reportElement x="126" y="84" width="10" height="15" uuid="3ac7d7d6-7ff0-4e47-a9de-b9ae617b25f2"/>
  100.                 <textElement textAlignment="Center"/>
  101.                 <text><![CDATA[:]]></text>
  102.             </staticText>
  103.             <staticText>
  104.                 <reportElement x="126" y="101" width="10" height="15" uuid="e691a5e8-eabe-4aff-a338-09a4437958ad"/>
  105.                 <textElement textAlignment="Center"/>
  106.                 <text><![CDATA[:]]></text>
  107.             </staticText>
  108.             <staticText>
  109.                 <reportElement x="126" y="118" width="10" height="15" uuid="8d1162f7-8f13-4ed7-8d69-ed7c2f86860d"/>
  110.                 <textElement textAlignment="Center"/>
  111.                 <text><![CDATA[:]]></text>
  112.             </staticText>
  113.             <staticText>
  114.                 <reportElement x="126" y="135" width="10" height="15" uuid="9ed02ac3-472b-41b5-b0a9-6d12f16ba020"/>
  115.                 <textElement textAlignment="Center"/>
  116.                 <text><![CDATA[:]]></text>
  117.             </staticText>
  118.             <staticText>
  119.                 <reportElement x="126" y="152" width="10" height="15" uuid="58d6ec71-375a-4ca4-aba6-48308cc93e42"/>
  120.                 <textElement textAlignment="Center"/>
  121.                 <text><![CDATA[:]]></text>
  122.             </staticText>
  123.             <textField>
  124.                 <reportElement x="136" y="84" width="319" height="15" uuid="b782e9c8-a135-42c2-8f98-ccb3cdbcaf7c"/>
  125.                 <textFieldExpression><![CDATA[$P{doc_no}]]></textFieldExpression>
  126.             </textField>
  127.             <textField>
  128.                 <reportElement x="136" y="101" width="319" height="15" uuid="6e2a6ea4-d50b-437b-b599-cc8817333451"/>
  129.                 <textFieldExpression><![CDATA[new java.text.SimpleDateFormat("dd-MMMM-yyyy").format(new java.text.SimpleDateFormat("yyyyMMdd").parse($P{doc_date}))]]></textFieldExpression>
  130.             </textField>
  131.             <textField>
  132.                 <reportElement x="136" y="118" width="319" height="15" uuid="c1cbf668-2c62-4ba5-b940-dc5ca3e72652"/>
  133.                 <textFieldExpression><![CDATA[$P{activity_gl}]]></textFieldExpression>
  134.             </textField>
  135.             <textField>
  136.                 <reportElement x="136" y="135" width="319" height="15" uuid="384f5668-be4a-48fa-98f0-e2e1b8061cae"/>
  137.                 <textFieldExpression><![CDATA[$P{ou_rc}]]></textFieldExpression>
  138.             </textField>
  139.             <textField isStretchWithOverflow="true">
  140.                 <reportElement stretchType="RelativeToTallestObject" x="136" y="152" width="319" height="70" uuid="d21bc8a3-94a5-49d7-b199-3bc85c1208d9"/>
  141.                 <textFieldExpression><![CDATA[$P{remark}]]></textFieldExpression>
  142.             </textField>
  143.         </band>
  144.     </title>
  145.     <pageHeader>
  146.         <band height="20" splitType="Stretch">
  147.             <staticText>
  148.                 <reportElement x="0" y="0" width="30" height="20" uuid="3db586fc-8499-4148-91a3-9872420e567c"/>
  149.                 <box>
  150.                     <topPen lineWidth="1.0"/>
  151.                     <leftPen lineWidth="1.0"/>
  152.                     <bottomPen lineWidth="0.0"/>
  153.                     <rightPen lineWidth="1.0"/>
  154.                 </box>
  155.                 <textElement textAlignment="Center" verticalAlignment="Middle">
  156.                     <font size="8" isBold="true"/>
  157.                 </textElement>
  158.                 <text><![CDATA[No.]]></text>
  159.             </staticText>
  160.             <staticText>
  161.                 <reportElement x="30" y="0" width="106" height="20" uuid="3d291af0-7dfb-4bd6-b580-a9671a3ca79f"/>
  162.                 <box>
  163.                     <topPen lineWidth="1.0"/>
  164.                     <leftPen lineWidth="1.0"/>
  165.                     <bottomPen lineWidth="0.0"/>
  166.                     <rightPen lineWidth="1.0"/>
  167.                 </box>
  168.                 <textElement textAlignment="Center" verticalAlignment="Middle">
  169.                     <font size="8" isBold="true"/>
  170.                 </textElement>
  171.                 <text><![CDATA[Product Code]]></text>
  172.             </staticText>
  173.             <staticText>
  174.                 <reportElement x="136" y="0" width="140" height="20" uuid="21faae05-6ed6-449e-8f31-441bb970cb99"/>
  175.                 <box>
  176.                     <topPen lineWidth="1.0"/>
  177.                     <leftPen lineWidth="1.0"/>
  178.                     <bottomPen lineWidth="0.0"/>
  179.                     <rightPen lineWidth="1.0"/>
  180.                 </box>
  181.                 <textElement textAlignment="Center" verticalAlignment="Middle">
  182.                     <font size="8" isBold="true"/>
  183.                 </textElement>
  184.                 <text><![CDATA[Product Name]]></text>
  185.             </staticText>
  186.             <staticText>
  187.                 <reportElement x="276" y="0" width="110" height="20" uuid="3e408949-2d22-42a7-9176-6926d3e5c368"/>
  188.                 <box>
  189.                     <topPen lineWidth="1.0"/>
  190.                     <leftPen lineWidth="1.0"/>
  191.                     <bottomPen lineWidth="0.0"/>
  192.                     <rightPen lineWidth="1.0"/>
  193.                 </box>
  194.                 <textElement textAlignment="Center" verticalAlignment="Middle">
  195.                     <font size="8" isBold="true"/>
  196.                 </textElement>
  197.                 <text><![CDATA[Serial Number]]></text>
  198.             </staticText>
  199.             <staticText>
  200.                 <reportElement x="386" y="0" width="80" height="20" uuid="2e939a82-dce4-4d80-8e01-2399870085af"/>
  201.                 <box>
  202.                     <topPen lineWidth="1.0"/>
  203.                     <leftPen lineWidth="1.0"/>
  204.                     <bottomPen lineWidth="0.0"/>
  205.                     <rightPen lineWidth="1.0"/>
  206.                 </box>
  207.                 <textElement textAlignment="Center" verticalAlignment="Middle">
  208.                     <font size="8" isBold="true"/>
  209.                 </textElement>
  210.                 <text><![CDATA[Adj Qty]]></text>
  211.             </staticText>
  212.             <staticText>
  213.                 <reportElement x="466" y="0" width="89" height="20" uuid="845567ef-658e-4dfe-afcd-aaabb21dc300"/>
  214.                 <box>
  215.                     <topPen lineWidth="1.0"/>
  216.                     <leftPen lineWidth="1.0"/>
  217.                     <bottomPen lineWidth="0.0"/>
  218.                     <rightPen lineWidth="1.0"/>
  219.                 </box>
  220.                 <textElement textAlignment="Center" verticalAlignment="Middle">
  221.                     <font size="8" isBold="true"/>
  222.                 </textElement>
  223.                 <text><![CDATA[Adj Amount]]></text>
  224.             </staticText>
  225.         </band>
  226.     </pageHeader>
  227.     <detail>
  228.         <band height="20" splitType="Stretch">
  229.             <textField isStretchWithOverflow="true">
  230.                 <reportElement stretchType="RelativeToTallestObject" x="30" y="0" width="106" height="20" uuid="b7716895-1c1f-4d5a-b112-fbd4f96651bf"/>
  231.                 <box topPadding="1" leftPadding="4" rightPadding="4">
  232.                     <topPen lineWidth="1.0"/>
  233.                     <leftPen lineWidth="1.0"/>
  234.                     <bottomPen lineWidth="1.0"/>
  235.                     <rightPen lineWidth="1.0"/>
  236.                 </box>
  237.                 <textElement>
  238.                     <font fontName="DejaVu Sans" size="9" isPdfEmbedded="true"/>
  239.                 </textElement>
  240.                 <textFieldExpression><![CDATA[$F{product_code}]]></textFieldExpression>
  241.             </textField>
  242.             <textField isStretchWithOverflow="true">
  243.                 <reportElement stretchType="RelativeToTallestObject" x="136" y="0" width="140" height="20" uuid="3bbe5ce4-57d0-4d65-802d-01353c893c50"/>
  244.                 <box topPadding="1" leftPadding="4" rightPadding="4">
  245.                     <topPen lineWidth="1.0"/>
  246.                     <leftPen lineWidth="1.0"/>
  247.                     <bottomPen lineWidth="1.0"/>
  248.                     <rightPen lineWidth="1.0"/>
  249.                 </box>
  250.                 <textElement>
  251.                     <font fontName="DejaVu Sans" size="9" isPdfEmbedded="true"/>
  252.                 </textElement>
  253.                 <textFieldExpression><![CDATA[$F{product_name}]]></textFieldExpression>
  254.             </textField>
  255.             <textField isStretchWithOverflow="true">
  256.                 <reportElement stretchType="RelativeToTallestObject" x="276" y="0" width="110" height="20" uuid="7d85004c-2121-4e7b-911e-6fcb0947cae9"/>
  257.                 <box topPadding="1" leftPadding="4" rightPadding="4">
  258.                     <topPen lineWidth="1.0"/>
  259.                     <leftPen lineWidth="1.0"/>
  260.                     <bottomPen lineWidth="1.0"/>
  261.                     <rightPen lineWidth="1.0"/>
  262.                 </box>
  263.                 <textElement>
  264.                     <font fontName="DejaVu Sans" size="9" isPdfEmbedded="true"/>
  265.                 </textElement>
  266.                 <textFieldExpression><![CDATA[$F{serial_number}]]></textFieldExpression>
  267.             </textField>
  268.             <textField isStretchWithOverflow="true">
  269.                 <reportElement stretchType="RelativeToTallestObject" x="386" y="0" width="80" height="20" uuid="0fddd95d-2687-4c89-a4fb-83707a07c098"/>
  270.                 <box topPadding="1" leftPadding="4" rightPadding="4">
  271.                     <topPen lineWidth="1.0"/>
  272.                     <leftPen lineWidth="1.0"/>
  273.                     <bottomPen lineWidth="1.0"/>
  274.                     <rightPen lineWidth="1.0"/>
  275.                 </box>
  276.                 <textElement textAlignment="Center">
  277.                     <font fontName="DejaVu Sans" size="9" isPdfEmbedded="true"/>
  278.                 </textElement>
  279.                 <textFieldExpression><![CDATA[$F{qty}]]></textFieldExpression>
  280.             </textField>
  281.             <textField isStretchWithOverflow="true">
  282.                 <reportElement stretchType="RelativeToTallestObject" x="466" y="0" width="89" height="20" uuid="acf80f51-fbef-47b9-98f8-9ed6efb89174"/>
  283.                 <box topPadding="1" leftPadding="4" rightPadding="4">
  284.                     <topPen lineWidth="1.0"/>
  285.                     <leftPen lineWidth="1.0"/>
  286.                     <bottomPen lineWidth="1.0"/>
  287.                     <rightPen lineWidth="1.0"/>
  288.                 </box>
  289.                 <textElement textAlignment="Right">
  290.                     <font fontName="DejaVu Sans" size="9" isPdfEmbedded="true"/>
  291.                 </textElement>
  292.                 <textFieldExpression><![CDATA[$F{curr_code}.equals("IDR")
  293.    ?new java.text.DecimalFormat("#,##0",new java.text.DecimalFormatSymbols(java.util.Locale.UK)).format($F{amount})
  294.    :new java.text.DecimalFormat("#,##0.00",new java.text.DecimalFormatSymbols(java.util.Locale.UK)).format($F{amount})]]></textFieldExpression>
  295.             </textField>
  296.             <textField isStretchWithOverflow="true">
  297.                 <reportElement stretchType="RelativeToTallestObject" x="0" y="0" width="30" height="20" uuid="03a3c5a5-10e4-45b1-9f71-a0620784f445"/>
  298.                 <box topPadding="1" leftPadding="4" rightPadding="4">
  299.                     <topPen lineWidth="1.0"/>
  300.                     <leftPen lineWidth="1.0"/>
  301.                     <bottomPen lineWidth="1.0"/>
  302.                     <rightPen lineWidth="1.0"/>
  303.                 </box>
  304.                 <textElement textAlignment="Center">
  305.                     <font fontName="DejaVu Sans" size="9" isPdfEmbedded="true"/>
  306.                 </textElement>
  307.                 <textFieldExpression><![CDATA[$V{number}]]></textFieldExpression>
  308.             </textField>
  309.         </band>
  310.     </detail>
  311.     <pageFooter>
  312.         <band height="42" splitType="Stretch"/>
  313.     </pageFooter>
  314.     <summary>
  315.         <band height="98" splitType="Stretch">
  316.             <staticText>
  317.                 <reportElement x="386" y="0" width="80" height="23" uuid="b79aa8c3-5eb7-49f6-bbea-d41a2d0ef196"/>
  318.                 <textElement>
  319.                     <font isBold="true"/>
  320.                 </textElement>
  321.                 <text><![CDATA[Total Amount]]></text>
  322.             </staticText>
  323.             <textField>
  324.                 <reportElement x="466" y="0" width="20" height="23" uuid="11099190-a3ec-4ebb-ba8f-20a266356a82"/>
  325.                 <textFieldExpression><![CDATA[$P{curr_code}]]></textFieldExpression>
  326.             </textField>
  327.             <textField>
  328.                 <reportElement x="486" y="0" width="68" height="23" uuid="e796d389-d944-4fc0-9c52-b89cf431432b"/>
  329.                 <textElement textAlignment="Right">
  330.                     <font isBold="true"/>
  331.                 </textElement>
  332.                 <textFieldExpression><![CDATA[$P{curr_code}.equals("IDR")
  333.    ?new java.text.DecimalFormat("#,##0",new java.text.DecimalFormatSymbols(java.util.Locale.UK)).format($P{total_amount})
  334.    :new java.text.DecimalFormat("#,##0.00",new java.text.DecimalFormatSymbols(java.util.Locale.UK)).format($P{total_amount})]]></textFieldExpression>
  335.             </textField>
  336.             <staticText>
  337.                 <reportElement x="386" y="28" width="168" height="15" uuid="e5f579da-dc79-4d9e-b8d2-fce7aa9095ea"/>
  338.                 <textElement textAlignment="Center"/>
  339.                 <text><![CDATA[Created By:]]></text>
  340.             </staticText>
  341.             <staticText>
  342.                 <reportElement x="0" y="28" width="126" height="15" uuid="85a14eb5-d582-4ed3-8ef9-8c3ee82ac3c8"/>
  343.                 <textElement textAlignment="Center"/>
  344.                 <text><![CDATA[Approved By:]]></text>
  345.             </staticText>
  346.             <textField>
  347.                 <reportElement x="386" y="77" width="168" height="20" uuid="dab243e5-caea-4d51-ab18-6e3e65ecb555"/>
  348.                 <textElement textAlignment="Center"/>
  349.                 <textFieldExpression><![CDATA[$P{created_by}]]></textFieldExpression>
  350.             </textField>
  351.             <textField>
  352.                 <reportElement x="0" y="77" width="126" height="20" uuid="c3cb897a-ee76-4446-bfbf-ede6ceaf7b27"/>
  353.                 <textElement textAlignment="Center"/>
  354.                 <textFieldExpression><![CDATA[$P{approved_by}]]></textFieldExpression>
  355.             </textField>
  356.         </band>
  357.     </summary>
  358. </jasperReport>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement