Advertisement
widana

ubah

Nov 9th, 2017
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 25.61 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="FormSalesInvoice" language="groovy" pageWidth="612" pageHeight="792" columnWidth="572" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" isFloatColumnFooter="true" uuid="0017974d-4699-46e0-b319-29b156a382be">
  3.     <property name="ireport.zoom" value="1.3310000000000146"/>
  4.     <property name="ireport.x" value="0"/>
  5.     <property name="ireport.y" value="0"/>
  6.     <style name="table">
  7.         <box>
  8.             <pen lineWidth="1.0" lineColor="#000000"/>
  9.         </box>
  10.     </style>
  11.     <style name="table_TH" mode="Opaque" backcolor="#F0F8FF">
  12.         <box>
  13.             <pen lineWidth="0.5" lineColor="#000000"/>
  14.         </box>
  15.     </style>
  16.     <style name="table_CH" mode="Opaque" backcolor="#BFE1FF">
  17.         <box>
  18.             <pen lineWidth="0.5" lineColor="#000000"/>
  19.         </box>
  20.     </style>
  21.     <style name="table_TD" mode="Opaque" backcolor="#FFFFFF">
  22.         <box>
  23.             <pen lineWidth="0.5" lineColor="#000000"/>
  24.         </box>
  25.     </style>
  26.     <subDataset name="Table Dataset 1" uuid="a5605169-4977-49d9-8303-c0b70115e646"/>
  27.     <parameter name="partner_name" class="java.lang.String"/>
  28.     <parameter name="doc_no" class="java.lang.String"/>
  29.     <parameter name="partner_cp_phone1" class="java.lang.String"/>
  30.     <parameter name="partner_cp_fax1" class="java.lang.String"/>
  31.     <parameter name="partner_cp_email" class="java.lang.String"/>
  32.     <parameter name="tax_amount" class="java.math.BigDecimal"/>
  33.     <parameter name="base_amount" class="java.math.BigDecimal"/>
  34.     <parameter name="signature" class="java.lang.String"/>
  35.     <parameter name="term_condition" class="java.lang.String"/>
  36.     <parameter name="curr_code" class="java.lang.String"/>
  37.     <parameter name="grand_total" class="java.math.BigDecimal"/>
  38.     <parameter name="address1_ou" class="java.lang.String"/>
  39.     <parameter name="address2_ou" class="java.lang.String"/>
  40.     <parameter name="city_ou" class="java.lang.String"/>
  41.     <parameter name="zip_code_ou" class="java.lang.String"/>
  42.     <parameter name="phone1_ou" class="java.lang.String"/>
  43.     <parameter name="fax1_ou" class="java.lang.String"/>
  44.     <parameter name="doc_date" class="java.lang.String"/>
  45.     <parameter name="path_logo_ou" class="java.lang.String"/>
  46.     <parameter name="partner_cp_name" class="java.lang.String"/>
  47.     <queryString>
  48.         <![CDATA[SELECT ROW_NUMBER() OVER(ORDER BY A.line_no) AS num, A.product_code, A.product_desc AS product_name, B.curr_code, A.remark,
  49.            COALESCE(SUM(A.qty)) AS qty, COALESCE(SUM(A.sell_price)) AS sell_price, COALESCE(SUM(A.amount)) AS total_amount
  50.        FROM sl_quotation_item A
  51.        INNER JOIN sl_quotation B ON A.quotation_id = B.quotation_id
  52.        WHERE B.quotation_id = 18
  53.        GROUP BY A.product_code, A.product_desc, B.curr_code, A.remark, A.line_no
  54.        ORDER BY A.line_no;]]>
  55.     </queryString>
  56.     <field name="num" class="java.lang.Long"/>
  57.     <field name="product_code" class="java.lang.String"/>
  58.     <field name="product_name" class="java.lang.String"/>
  59.     <field name="curr_code" class="java.lang.String"/>
  60.     <field name="remark" class="java.lang.String"/>
  61.     <field name="qty" class="java.math.BigDecimal"/>
  62.     <field name="sell_price" class="java.math.BigDecimal"/>
  63.     <field name="total_amount" class="java.math.BigDecimal"/>
  64.     <variable name="number" class="java.lang.Long" calculation="Sum">
  65.         <variableExpression><![CDATA[1]]></variableExpression>
  66.         <initialValueExpression><![CDATA[1]]></initialValueExpression>
  67.     </variable>
  68.     <pageHeader>
  69.         <band height="231" splitType="Stretch">
  70.             <textField isStretchWithOverflow="true">
  71.                 <reportElement x="400" y="88" width="172" height="10" uuid="fa29e30c-cde2-49be-9b3e-3de425277367"/>
  72.                 <textElement>
  73.                     <font fontName="DejaVu Sans" size="8" isPdfEmbedded="true"/>
  74.                 </textElement>
  75.                 <textFieldExpression><![CDATA[$P{doc_no}]]></textFieldExpression>
  76.             </textField>
  77.             <textField isStretchWithOverflow="true">
  78.                 <reportElement x="400" y="102" width="172" height="10" uuid="8c1a7e98-42b9-48dd-abc3-acc5300f85c9"/>
  79.                 <textElement>
  80.                     <font fontName="DejaVu Sans" size="8" isPdfEmbedded="true"/>
  81.                 </textElement>
  82.                 <textFieldExpression><![CDATA[$P{partner_name}]]></textFieldExpression>
  83.             </textField>
  84.             <textField isStretchWithOverflow="true">
  85.                 <reportElement stretchType="RelativeToTallestObject" x="400" y="115" width="172" height="10" uuid="ece11bca-976e-4ddf-9e84-695dee7f41ed"/>
  86.                 <textElement>
  87.                     <font fontName="DejaVu Sans" size="8" isPdfEmbedded="true"/>
  88.                 </textElement>
  89.                 <textFieldExpression><![CDATA[$P{partner_cp_name}]]></textFieldExpression>
  90.             </textField>
  91.             <staticText>
  92.                 <reportElement x="386" y="88" width="14" height="10" uuid="4ebe99b2-55a5-439a-b194-75f575717079"/>
  93.                 <textElement>
  94.                     <font fontName="DejaVu Sans" size="8" isPdfEmbedded="true"/>
  95.                 </textElement>
  96.                 <text><![CDATA[:]]></text>
  97.             </staticText>
  98.             <staticText>
  99.                 <reportElement x="386" y="115" width="14" height="10" uuid="8b9a2ab6-1f0e-4d57-82ea-bf94583f3c4e"/>
  100.                 <textElement>
  101.                     <font fontName="DejaVu Sans" size="8" isPdfEmbedded="true"/>
  102.                 </textElement>
  103.                 <text><![CDATA[:]]></text>
  104.             </staticText>
  105.             <staticText>
  106.                 <reportElement x="386" y="101" width="14" height="10" uuid="ddbfec6f-8465-4815-a1b9-efb7ebf64e58"/>
  107.                 <textElement>
  108.                     <font fontName="DejaVu Sans" size="8" isPdfEmbedded="true"/>
  109.                 </textElement>
  110.                 <text><![CDATA[:]]></text>
  111.             </staticText>
  112.             <staticText>
  113.                 <reportElement x="386" y="130" width="14" height="10" uuid="ff7e6426-c1a3-44af-befa-046602c22f0c"/>
  114.                 <textElement>
  115.                     <font fontName="DejaVu Sans" size="8" isPdfEmbedded="true"/>
  116.                 </textElement>
  117.                 <text><![CDATA[:]]></text>
  118.             </staticText>
  119.             <staticText>
  120.                 <reportElement x="316" y="130" width="70" height="10" uuid="604943c0-f260-41e9-9c11-897173a1ce8b"/>
  121.                 <textElement>
  122.                     <font fontName="DejaVu Sans" size="8" isPdfEmbedded="true"/>
  123.                 </textElement>
  124.                 <text><![CDATA[Phone]]></text>
  125.             </staticText>
  126.             <staticText>
  127.                 <reportElement x="316" y="102" width="70" height="10" uuid="6b04f5be-92af-4438-b7b2-450013e0d5bb"/>
  128.                 <textElement>
  129.                     <font fontName="DejaVu Sans" size="8" isPdfEmbedded="true"/>
  130.                 </textElement>
  131.                 <text><![CDATA[Company]]></text>
  132.             </staticText>
  133.             <staticText>
  134.                 <reportElement x="316" y="115" width="70" height="10" uuid="2941b0ee-267f-4e6f-9b7b-9508e5651fd4"/>
  135.                 <textElement>
  136.                     <font fontName="DejaVu Sans" size="8" isPdfEmbedded="true"/>
  137.                 </textElement>
  138.                 <text><![CDATA[Person]]></text>
  139.             </staticText>
  140.             <staticText>
  141.                 <reportElement x="316" y="88" width="70" height="10" uuid="1eece6ca-e086-4711-995c-42e8746533c0"/>
  142.                 <textElement>
  143.                     <font fontName="DejaVu Sans" size="8" isPdfEmbedded="true"/>
  144.                 </textElement>
  145.                 <text><![CDATA[No. Quotation]]></text>
  146.             </staticText>
  147.             <staticText>
  148.                 <reportElement x="386" y="142" width="14" height="10" uuid="7ed74c79-fdc2-413b-bf9a-b1e0995ae607"/>
  149.                 <textElement>
  150.                     <font fontName="DejaVu Sans" size="8" isPdfEmbedded="true"/>
  151.                 </textElement>
  152.                 <text><![CDATA[:]]></text>
  153.             </staticText>
  154.             <staticText>
  155.                 <reportElement x="316" y="142" width="70" height="10" uuid="3d8040c1-fda2-4600-9215-48bf8697dd2c"/>
  156.                 <textElement>
  157.                     <font fontName="DejaVu Sans" size="8" isPdfEmbedded="true"/>
  158.                 </textElement>
  159.                 <text><![CDATA[Fax]]></text>
  160.             </staticText>
  161.             <rectangle>
  162.                 <reportElement x="0" y="179" width="33" height="20" uuid="1e29e53e-3966-47c4-8568-8185a580e69d"/>
  163.             </rectangle>
  164.             <rectangle>
  165.                 <reportElement x="33" y="179" width="316" height="20" uuid="afbb874c-c3c3-417a-9ac4-8db49533c583"/>
  166.             </rectangle>
  167.             <rectangle>
  168.                 <reportElement x="349" y="179" width="223" height="20" uuid="14fbf2b9-d704-4b34-91e9-d8d8ded9cd1f"/>
  169.             </rectangle>
  170.             <staticText>
  171.                 <reportElement x="33" y="182" width="316" height="15" uuid="b823f519-d4ce-4620-9a21-680bec009b20"/>
  172.                 <textElement textAlignment="Center">
  173.                     <font size="8" isBold="true"/>
  174.                 </textElement>
  175.                 <text><![CDATA[YOUR CONFIGURATION]]></text>
  176.             </staticText>
  177.             <staticText>
  178.                 <reportElement x="351" y="182" width="221" height="15" uuid="a44c705f-a8e9-4c93-8e09-d46fdc684a33"/>
  179.                 <textElement textAlignment="Center">
  180.                     <font size="8" isBold="true"/>
  181.                 </textElement>
  182.                 <text><![CDATA[TOTAL]]></text>
  183.             </staticText>
  184.             <rectangle>
  185.                 <reportElement x="0" y="199" width="33" height="20" uuid="5381d0ff-7ac4-4c60-b406-31719f7e3d4e"/>
  186.             </rectangle>
  187.             <rectangle>
  188.                 <reportElement x="33" y="199" width="91" height="20" uuid="316d266c-aa74-4e35-9050-3daf4b509bb0"/>
  189.             </rectangle>
  190.             <rectangle>
  191.                 <reportElement x="124" y="199" width="144" height="20" uuid="c104a6c5-7757-4cab-afde-da953587251f"/>
  192.             </rectangle>
  193.             <rectangle>
  194.                 <reportElement x="268" y="199" width="58" height="20" uuid="fa1cb6f3-7ca9-47cd-b279-7056e3f85dd5"/>
  195.             </rectangle>
  196.             <rectangle>
  197.                 <reportElement x="326" y="199" width="74" height="20" uuid="a209996c-32f2-4084-a6da-c0b6145be48e"/>
  198.             </rectangle>
  199.             <rectangle>
  200.                 <reportElement x="449" y="199" width="123" height="20" uuid="9f054437-26e1-45f0-990b-b203d26c0d4a"/>
  201.             </rectangle>
  202.             <staticText>
  203.                 <reportElement x="0" y="202" width="33" height="15" uuid="5025f4b6-88d2-4fcd-b22d-3c91ee51d486"/>
  204.                 <textElement textAlignment="Center">
  205.                     <font size="8" isBold="true"/>
  206.                 </textElement>
  207.                 <text><![CDATA[No]]></text>
  208.             </staticText>
  209.             <staticText>
  210.                 <reportElement x="34" y="202" width="90" height="15" uuid="5a915555-c743-4824-b40e-da67eae4c505"/>
  211.                 <textElement textAlignment="Center">
  212.                     <font size="8" isBold="true"/>
  213.                 </textElement>
  214.                 <text><![CDATA[Part No #]]></text>
  215.             </staticText>
  216.             <staticText>
  217.                 <reportElement x="124" y="202" width="144" height="15" uuid="b813ce8c-e733-4187-9645-6e11e87c9c0b"/>
  218.                 <textElement textAlignment="Center">
  219.                     <font size="8" isBold="true"/>
  220.                 </textElement>
  221.                 <text><![CDATA[Description]]></text>
  222.             </staticText>
  223.             <staticText>
  224.                 <reportElement x="268" y="202" width="58" height="15" uuid="2af23dc9-d246-44a7-a5a1-496dc0f111ed"/>
  225.                 <textElement textAlignment="Center">
  226.                     <font size="8" isBold="true"/>
  227.                 </textElement>
  228.                 <text><![CDATA[Qty]]></text>
  229.             </staticText>
  230.             <staticText>
  231.                 <reportElement x="328" y="202" width="72" height="15" uuid="0149b395-7439-47e8-8449-43440e897c73"/>
  232.                 <textElement textAlignment="Center">
  233.                     <font size="8" isBold="true"/>
  234.                 </textElement>
  235.                 <text><![CDATA[Price / Unit]]></text>
  236.             </staticText>
  237.             <staticText>
  238.                 <reportElement x="449" y="202" width="123" height="15" uuid="8718f1e5-40f2-4b2d-b124-e8c8661cb43d"/>
  239.                 <textElement textAlignment="Center">
  240.                     <font size="8" isBold="true"/>
  241.                 </textElement>
  242.                 <text><![CDATA[Price / Total]]></text>
  243.             </staticText>
  244.             <line>
  245.                 <reportElement x="0" y="171" width="572" height="1" uuid="d2abf54c-0e5b-43b8-b541-5273688031db"/>
  246.             </line>
  247.             <rectangle>
  248.                 <reportElement x="315" y="61" width="71" height="20" uuid="e2c79958-c9ef-479f-bf30-b794c9351b6b"/>
  249.             </rectangle>
  250.             <rectangle>
  251.                 <reportElement x="386" y="61" width="186" height="20" uuid="aa88ea77-5ec9-47c5-8ff6-326d22d5ba92"/>
  252.             </rectangle>
  253.             <staticText>
  254.                 <reportElement x="321" y="66" width="65" height="15" uuid="43db5268-fd14-4363-a23e-7d9faa83cd72"/>
  255.                 <textElement>
  256.                     <font isBold="true"/>
  257.                 </textElement>
  258.                 <text><![CDATA[Date]]></text>
  259.             </staticText>
  260.             <staticText>
  261.                 <reportElement x="386" y="156" width="14" height="10" uuid="cbc448a9-704c-4716-b873-922cbff07e0f"/>
  262.                 <textElement>
  263.                     <font fontName="DejaVu Sans" size="8" isPdfEmbedded="true"/>
  264.                 </textElement>
  265.                 <text><![CDATA[:]]></text>
  266.             </staticText>
  267.             <staticText>
  268.                 <reportElement x="315" y="156" width="71" height="10" uuid="8795d923-3cc3-45f2-b2ee-10110120f628"/>
  269.                 <textElement>
  270.                     <font fontName="DejaVu Sans" size="8" isPdfEmbedded="true"/>
  271.                 </textElement>
  272.                 <text><![CDATA[E-mail]]></text>
  273.             </staticText>
  274.             <textField isStretchWithOverflow="true">
  275.                 <reportElement stretchType="RelativeToTallestObject" x="400" y="156" width="172" height="10" uuid="1a2b043b-4d99-4ac1-8292-5d035983cb51"/>
  276.                 <textElement>
  277.                     <font fontName="DejaVu Sans" size="8" isPdfEmbedded="true"/>
  278.                 </textElement>
  279.                 <textFieldExpression><![CDATA[$P{partner_cp_email}]]></textFieldExpression>
  280.             </textField>
  281.             <textField isStretchWithOverflow="true">
  282.                 <reportElement stretchType="RelativeToTallestObject" x="400" y="130" width="172" height="10" uuid="14e6115b-67b9-4625-a14a-4ef35d2b9929"/>
  283.                 <textElement>
  284.                     <font fontName="DejaVu Sans" size="8" isPdfEmbedded="true"/>
  285.                 </textElement>
  286.                 <textFieldExpression><![CDATA[$P{partner_cp_phone1}]]></textFieldExpression>
  287.             </textField>
  288.             <textField isStretchWithOverflow="true">
  289.                 <reportElement stretchType="RelativeToTallestObject" x="400" y="142" width="172" height="10" uuid="5caacf15-aa23-47ba-b6fa-5efec8ae7aa8"/>
  290.                 <textElement>
  291.                     <font fontName="DejaVu Sans" size="8" isPdfEmbedded="true"/>
  292.                 </textElement>
  293.                 <textFieldExpression><![CDATA[$P{partner_cp_fax1}]]></textFieldExpression>
  294.             </textField>
  295.             <textField isStretchWithOverflow="true">
  296.                 <reportElement stretchType="RelativeToTallestObject" x="0" y="61" width="231" height="20" uuid="8471c30a-48a4-49c5-bc48-d9d9c91150fc"/>
  297.                 <textElement>
  298.                     <font size="8"/>
  299.                 </textElement>
  300.                 <textFieldExpression><![CDATA[$P{address1_ou} + " - " +$P{address2_ou} + "  " +$P{city_ou}  + " " + $P{zip_code_ou}]]></textFieldExpression>
  301.             </textField>
  302.             <staticText>
  303.                 <reportElement x="0" y="84" width="12" height="13" uuid="e10f37d7-4f9a-45e7-9dfe-6496f7f4a063"/>
  304.                 <textElement>
  305.                     <font size="8"/>
  306.                 </textElement>
  307.                 <text><![CDATA[T]]></text>
  308.             </staticText>
  309.             <staticText>
  310.                 <reportElement x="12" y="84" width="8" height="13" uuid="5e4d2d7f-5767-407f-b481-47af1b480bff"/>
  311.                 <textElement>
  312.                     <font size="8"/>
  313.                 </textElement>
  314.                 <text><![CDATA[:]]></text>
  315.             </staticText>
  316.             <textField>
  317.                 <reportElement x="20" y="84" width="211" height="13" uuid="4042a8c4-f208-4ad3-b5f2-5fa5bc358410"/>
  318.                 <textElement>
  319.                     <font size="8"/>
  320.                 </textElement>
  321.                 <textFieldExpression><![CDATA[$P{phone1_ou}]]></textFieldExpression>
  322.             </textField>
  323.             <staticText>
  324.                 <reportElement x="12" y="99" width="8" height="13" uuid="3389413f-5084-4986-8a90-679282bac24c"/>
  325.                 <textElement>
  326.                     <font size="8"/>
  327.                 </textElement>
  328.                 <text><![CDATA[:]]></text>
  329.             </staticText>
  330.             <textField>
  331.                 <reportElement x="20" y="99" width="211" height="13" uuid="d9c2755d-8999-4938-89ec-2702ec57a4cc"/>
  332.                 <textElement>
  333.                     <font size="8"/>
  334.                 </textElement>
  335.                 <textFieldExpression><![CDATA[$P{fax1_ou}]]></textFieldExpression>
  336.             </textField>
  337.             <staticText>
  338.                 <reportElement x="0" y="99" width="12" height="13" uuid="87bcefb8-34ce-4c19-9e20-f78fa6845532"/>
  339.                 <textElement>
  340.                     <font size="8"/>
  341.                 </textElement>
  342.                 <text><![CDATA[F]]></text>
  343.             </staticText>
  344.             <textField isStretchWithOverflow="true">
  345.                 <reportElement x="386" y="66" width="186" height="15" uuid="fc2559d4-f1c9-405b-b4f9-00440ee71d04"/>
  346.                 <box leftPadding="10"/>
  347.                 <textElement>
  348.                     <font fontName="DejaVu Sans" size="8" isBold="true" isPdfEmbedded="true"/>
  349.                 </textElement>
  350.                 <textFieldExpression><![CDATA[new java.text.SimpleDateFormat("MMMM dd, yyyy").format(new java.text.SimpleDateFormat("yyyyMMdd").parse($P{doc_date}))]]></textFieldExpression>
  351.             </textField>
  352.             <image>
  353.                 <reportElement x="0" y="3" width="170" height="31" uuid="d07ef674-934b-49e0-aa37-eb3d44ee0e48"/>
  354.                 <imageExpression><![CDATA[new java.net.URI(this.getClass().getResource($P{path_logo_ou}).getPath()).toString()]]></imageExpression>
  355.             </image>
  356.             <rectangle>
  357.                 <reportElement x="400" y="199" width="49" height="20" uuid="f94b034e-2e22-440c-9488-ebaab3ec719c"/>
  358.             </rectangle>
  359.             <staticText>
  360.                 <reportElement x="400" y="202" width="49" height="15" uuid="f1f7960a-843c-4e7d-b99f-4a40fec21593"/>
  361.                 <textElement textAlignment="Center">
  362.                     <font size="8" isBold="true"/>
  363.                 </textElement>
  364.                 <text><![CDATA[Diskon %]]></text>
  365.             </staticText>
  366.         </band>
  367.     </pageHeader>
  368.     <detail>
  369.         <band height="18" splitType="Stretch">
  370.             <textField isStretchWithOverflow="true">
  371.                 <reportElement stretchType="RelativeToTallestObject" x="32" y="0" width="91" height="10" uuid="a56d0274-f9c6-466f-8592-85444559ecbf"/>
  372.                 <box topPadding="0" leftPadding="4" bottomPadding="0" rightPadding="4"/>
  373.                 <textElement>
  374.                     <font fontName="DejaVu Sans" size="8" isPdfEmbedded="true"/>
  375.                 </textElement>
  376.                 <textFieldExpression><![CDATA[$F{product_code}]]></textFieldExpression>
  377.             </textField>
  378.             <textField isStretchWithOverflow="true">
  379.                 <reportElement stretchType="RelativeToTallestObject" x="124" y="0" width="144" height="10" uuid="b584e553-7199-47f3-8cf1-221fa80c6cd2"/>
  380.                 <box topPadding="0" leftPadding="4" bottomPadding="0" rightPadding="4"/>
  381.                 <textElement>
  382.                     <font fontName="DejaVu Sans" size="8" isPdfEmbedded="true"/>
  383.                 </textElement>
  384.                 <textFieldExpression><![CDATA[$F{product_name} +". "+ $F{remark}]]></textFieldExpression>
  385.             </textField>
  386.             <textField pattern="#,##0.00">
  387.                 <reportElement stretchType="RelativeToTallestObject" x="268" y="0" width="60" height="10" uuid="daae3e2c-08cb-44ff-b902-7bea08b2946e"/>
  388.                 <box topPadding="0" leftPadding="4" bottomPadding="0" rightPadding="4"/>
  389.                 <textElement textAlignment="Center">
  390.                     <font fontName="DejaVu Sans" size="8" isPdfEmbedded="true"/>
  391.                 </textElement>
  392.                 <textFieldExpression><![CDATA[$F{qty}]]></textFieldExpression>
  393.             </textField>
  394.             <textField pattern="#,##0.00">
  395.                 <reportElement stretchType="RelativeToTallestObject" x="348" y="0" width="51" height="10" uuid="4da9c168-f69a-45fe-b99c-8ef51a22bd7d"/>
  396.                 <box topPadding="0" leftPadding="4" bottomPadding="0" rightPadding="4"/>
  397.                 <textElement textAlignment="Right">
  398.                     <font fontName="DejaVu Sans" size="8" isPdfEmbedded="true"/>
  399.                 </textElement>
  400.                 <textFieldExpression><![CDATA[$F{curr_code}.equals("IDR")
  401.    ?new java.text.DecimalFormat("#,##0",new java.text.DecimalFormatSymbols(java.util.Locale.UK)).format($F{sell_price})
  402.    :new java.text.DecimalFormat("#,##0.00",new java.text.DecimalFormatSymbols(java.util.Locale.UK)).format($F{sell_price})]]></textFieldExpression>
  403.             </textField>
  404.             <textField pattern="#,##0.00">
  405.                 <reportElement stretchType="RelativeToTallestObject" x="483" y="0" width="89" height="10" uuid="1b9ba3ae-c387-4247-be86-e632673132a9"/>
  406.                 <box topPadding="0" leftPadding="4" bottomPadding="0" rightPadding="0"/>
  407.                 <textElement textAlignment="Right">
  408.                     <font fontName="DejaVu Sans" size="8" isPdfEmbedded="true"/>
  409.                 </textElement>
  410.                 <textFieldExpression><![CDATA[$F{curr_code}.equals("IDR")
  411.    ?new java.text.DecimalFormat("#,##0",new java.text.DecimalFormatSymbols(java.util.Locale.UK)).format($F{total_amount})
  412.    :new java.text.DecimalFormat("#,##0.00",new java.text.DecimalFormatSymbols(java.util.Locale.UK)).format($F{total_amount})]]></textFieldExpression>
  413.             </textField>
  414.             <textField>
  415.                 <reportElement x="0" y="0" width="32" height="10" uuid="b1f1270d-36a0-45b2-bf1f-bed2ac304393"/>
  416.                 <box topPadding="0" leftPadding="4" bottomPadding="0" rightPadding="4"/>
  417.                 <textElement textAlignment="Center">
  418.                     <font fontName="DejaVu Sans" size="8" isPdfEmbedded="true"/>
  419.                 </textElement>
  420.                 <textFieldExpression><![CDATA[$V{number}]]></textFieldExpression>
  421.             </textField>
  422.             <textField>
  423.                 <reportElement x="448" y="0" width="35" height="10" uuid="6e24f4b3-c44e-4c5d-93ff-b813c600fbea"/>
  424.                 <box leftPadding="5"/>
  425.                 <textElement>
  426.                     <font size="8"/>
  427.                 </textElement>
  428.                 <textFieldExpression><![CDATA[$F{curr_code}]]></textFieldExpression>
  429.             </textField>
  430.             <textField>
  431.                 <reportElement x="327" y="0" width="22" height="10" uuid="6667b10a-dd3a-49da-98b9-173d893f1e18"/>
  432.                 <box leftPadding="5"/>
  433.                 <textElement>
  434.                     <font size="8"/>
  435.                 </textElement>
  436.                 <textFieldExpression><![CDATA[$F{curr_code}]]></textFieldExpression>
  437.             </textField>
  438.         </band>
  439.     </detail>
  440.     <columnFooter>
  441.         <band height="161" splitType="Stretch">
  442.             <textField pattern="#,##0.00">
  443.                 <reportElement x="473" y="17" width="94" height="12" uuid="51b57301-efd7-4845-9e11-06ab617aae77"/>
  444.                 <textElement textAlignment="Right">
  445.                     <font fontName="DejaVu Sans" size="8" isPdfEmbedded="true"/>
  446.                 </textElement>
  447.                 <textFieldExpression><![CDATA[$P{curr_code}.equals("IDR")
  448.    ?new java.text.DecimalFormat("#,##0",new java.text.DecimalFormatSymbols(java.util.Locale.UK)).format($P{tax_amount})
  449.    :new java.text.DecimalFormat("#,##0.00",new java.text.DecimalFormatSymbols(java.util.Locale.UK)).format($P{tax_amount})]]></textFieldExpression>
  450.             </textField>
  451.             <textField pattern="#,##0.00">
  452.                 <reportElement x="473" y="30" width="94" height="12" uuid="73de7b3c-5f1f-4f2b-ba91-0fbd75fcc65a"/>
  453.                 <textElement textAlignment="Right">
  454.                     <font fontName="DejaVu Sans" size="8" isPdfEmbedded="true"/>
  455.                 </textElement>
  456.                 <textFieldExpression><![CDATA[$P{curr_code}.equals("IDR")
  457.    ?new java.text.DecimalFormat("#,##0",new java.text.DecimalFormatSymbols(java.util.Locale.UK)).format($P{grand_total})
  458.    :new java.text.DecimalFormat("#,##0.00",new java.text.DecimalFormatSymbols(java.util.Locale.UK)).format($P{grand_total})]]></textFieldExpression>
  459.             </textField>
  460.             <staticText>
  461.                 <reportElement x="0" y="4" width="436" height="12" uuid="d025a8c2-53f5-4295-af7d-02cee839b021"/>
  462.                 <textElement textAlignment="Center">
  463.                     <font fontName="DejaVu Sans" size="8" isBold="true" isPdfEmbedded="true"/>
  464.                 </textElement>
  465.                 <text><![CDATA[Grand Total Before VAT 10%]]></text>
  466.             </staticText>
  467.             <textField isStretchWithOverflow="true">
  468.                 <reportElement positionType="Float" x="365" y="126" width="197" height="10" uuid="52f27a05-137e-429f-9c40-f9a9c7d04b0f"/>
  469.                 <textElement textAlignment="Center">
  470.                     <font fontName="DejaVu Sans" size="8" isBold="true" isPdfEmbedded="true"/>
  471.                 </textElement>
  472.                 <textFieldExpression><![CDATA[$P{signature}]]></textFieldExpression>
  473.             </textField>
  474.             <staticText>
  475.                 <reportElement x="0" y="17" width="436" height="12" uuid="38ff1d87-84df-426d-9311-e09b8599baff"/>
  476.                 <textElement textAlignment="Center">
  477.                     <font fontName="DejaVu Sans" size="8" isBold="true" isPdfEmbedded="true"/>
  478.                 </textElement>
  479.                 <text><![CDATA[VAT 10%]]></text>
  480.             </staticText>
  481.             <staticText>
  482.                 <reportElement positionType="FixRelativeToBottom" x="0" y="30" width="436" height="12" uuid="3309fb33-bc8e-41ba-b8c8-3fbc0957c166"/>
  483.                 <textElement textAlignment="Center">
  484.                     <font fontName="DejaVu Sans" size="8" isBold="true" isPdfEmbedded="true"/>
  485.                 </textElement>
  486.                 <text><![CDATA[Grand Total After VAT 10%]]></text>
  487.             </staticText>
  488.             <staticText>
  489.                 <reportElement positionType="Float" x="365" y="60" width="197" height="17" uuid="babbb2a7-8b76-4583-bd7b-cd7a1a568ccd"/>
  490.                 <textElement textAlignment="Center">
  491.                     <font isBold="true"/>
  492.                 </textElement>
  493.                 <text><![CDATA[Best Regards,]]></text>
  494.             </staticText>
  495.             <line>
  496.                 <reportElement x="0" y="0" width="572" height="1" uuid="7d5a18cb-4fb6-4390-bb7b-d4938e596d4c"/>
  497.             </line>
  498.             <textField isStretchWithOverflow="true">
  499.                 <reportElement style="table" stretchType="RelativeToTallestObject" x="0" y="77" width="316" height="59" isPrintWhenDetailOverflows="true" uuid="5adc49a6-97a7-480d-8799-c854ae7d6835"/>
  500.                 <box topPadding="5" leftPadding="5" bottomPadding="5"/>
  501.                 <textElement>
  502.                     <font size="8"/>
  503.                 </textElement>
  504.                 <textFieldExpression><![CDATA[$P{term_condition}]]></textFieldExpression>
  505.             </textField>
  506.             <rectangle>
  507.                 <reportElement x="0" y="57" width="316" height="20" uuid="0138f729-c20d-4562-85f3-388a003f6282"/>
  508.             </rectangle>
  509.             <staticText>
  510.                 <reportElement x="0" y="57" width="316" height="20" uuid="72be9fd1-ffbc-4c18-9dcb-8cbcce051d14"/>
  511.                 <box topPadding="4"/>
  512.                 <textElement textAlignment="Center">
  513.                     <font isBold="true"/>
  514.                 </textElement>
  515.                 <text><![CDATA[Terms & Conditions:]]></text>
  516.             </staticText>
  517.             <textField>
  518.                 <reportElement x="436" y="4" width="36" height="12" uuid="c6e1265c-c588-4f7f-93c6-7d6a9ec4ba42"/>
  519.                 <box leftPadding="11"/>
  520.                 <textElement textAlignment="Center">
  521.                     <font size="8"/>
  522.                 </textElement>
  523.                 <textFieldExpression><![CDATA[$P{curr_code}]]></textFieldExpression>
  524.             </textField>
  525.             <textField>
  526.                 <reportElement x="436" y="17" width="36" height="12" uuid="013a9354-d63b-4191-aafa-8e67e96a3791"/>
  527.                 <box leftPadding="11"/>
  528.                 <textElement textAlignment="Center">
  529.                     <font size="8"/>
  530.                 </textElement>
  531.                 <textFieldExpression><![CDATA[$P{curr_code}]]></textFieldExpression>
  532.             </textField>
  533.             <textField>
  534.                 <reportElement x="436" y="30" width="36" height="12" uuid="64d0f536-4795-4560-bb13-e52b8fd59f23"/>
  535.                 <box leftPadding="11"/>
  536.                 <textElement textAlignment="Center">
  537.                     <font size="8"/>
  538.                 </textElement>
  539.                 <textFieldExpression><![CDATA[$P{curr_code}]]></textFieldExpression>
  540.             </textField>
  541.             <textField pattern="#,##0.00">
  542.                 <reportElement x="473" y="4" width="94" height="12" uuid="36d4330b-a73b-4847-97e6-6ac76b16c5c5"/>
  543.                 <textElement textAlignment="Right">
  544.                     <font fontName="DejaVu Sans" size="8" isPdfEmbedded="true"/>
  545.                 </textElement>
  546.                 <textFieldExpression><![CDATA[$P{curr_code}.equals("IDR")
  547.    ?new java.text.DecimalFormat("#,##0",new java.text.DecimalFormatSymbols(java.util.Locale.UK)).format($P{base_amount})
  548.    :new java.text.DecimalFormat("#,##0.00",new java.text.DecimalFormatSymbols(java.util.Locale.UK)).format($P{base_amount})]]></textFieldExpression>
  549.             </textField>
  550.         </band>
  551.     </columnFooter>
  552.     <summary>
  553.         <band/>
  554.     </summary>
  555. </jasperReport>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement