<?xml version="1.0" encoding="UTF-8"?>
<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="report3" pageWidth="612" pageHeight="792" columnWidth="555" leftMargin="20" rightMargin="20" topMargin="10" bottomMargin="10">
	<property name="ireport.zoom" value="1.0"/>
	<property name="ireport.x" value="108"/>
	<property name="ireport.y" value="0"/>
	<parameter name="DESP_ID_FIRST" class="java.lang.String"/>
	<parameter name="DESP_ID_LAST" class="java.lang.String"/>
	<queryString>
		<![CDATA[SELECT distinct

	CASE WHEN shp.shipment_id IS NULL THEN ' ' ELSE shp.shipment_id END AS SHIPMENT_ID,
	CASE WHEN shp.lr_no IS NULL THEN ' ' ELSE shp.lr_no END AS SHIPMENT_LR_NO,
	CASE WHEN S.SITE_CODE IS NULL THEN ' ' ELSE S.descr END AS SITE_CODE,
        CASE WHEN D.DESP_ID IS NULL THEN ' ' ELSE D.DESP_ID END AS BOL_DESP_ID,
        CASE WHEN S.ADD1 IS NULL THEN ' ' ELSE S.ADD1 END AS ADD1,
        CASE WHEN S.ADD2 IS NULL THEN ' ' ELSE S.ADD2 END AS ADD2,
        CASE WHEN S.ADD3 IS NULL THEN ' ' ELSE S.ADD2 END AS ADD3,
        CASE WHEN S.CITY IS NULL THEN ' ' ELSE S.CITY END AS CITY,
        CASE WHEN S.STATE_CODE IS NULL THEN ' ' ELSE S.STATE_CODE END AS STATE_CODE,
        CASE WHEN S.PIN IS NULL THEN ' ' ELSE S.PIN END AS PIN,
        CASE WHEN D.CUST_CODE__DLV IS NULL THEN ' ' ELSE	D.CUST_CODE__DLV END AS CUST_CODE__DLV,
        CASE WHEN O.DLV_ADD1 IS NULL THEN ' ' ELSE D.DLV_ADD1 END AS DLV_ADD1,
        CASE WHEN O.DLV_ADD2 IS NULL THEN ' ' ELSE D.DLV_ADD2 END AS DLV_ADD2,
        CASE WHEN O.DLV_ADD3 IS NULL THEN ' ' ELSE D.DLV_ADD3 END AS DLV_ADD3,
        CASE WHEN O.DLV_CITY IS NULL THEN ' ' ELSE D.DLV_CITY END AS DLV_CITY,
        CASE WHEN O.STATE_CODE__DLV IS NULL THEN ' ' ELSE D.STATE_CODE__DLV END AS STATE_CODE_DLV,
        CASE WHEN O.DLV_PIN IS NULL THEN ' ' ELSE D.DLV_PIN END AS DLV_PIN,
        CASE WHEN D.CUST_CODE IS NULL THEN ' ' ELSE D.CUST_CODE END AS CUST_CODE,
        CASE WHEN O.REMARKS2 IS NULL THEN ' ' ELSE O.REMARKS2 END AS REMARKS2,
        CASE WHEN shp.lr_no IS NULL THEN ' ' ELSE shp.lr_no END AS BOL_NO,
        CASE WHEN T.TRAN_NAME IS NULL THEN ' ' ELSE T.TRAN_NAME END AS TRAN_NAME,
        CASE WHEN T.SUFFIX IS NULL THEN ' ' ELSE T.SUFFIX END AS SUFFIX,
        CASE WHEN T.PREFIX IS NULL THEN ' ' ELSE T.PREFIX END AS PREFIX,
        CASE WHEN t.SCAC_code IS NULL THEN ' ' ELSE t.SCAC_code END AS SCAC,
        CASE WHEN shp.PRO_NO IS NULL THEN ' ' ELSE shp.PRO_NO END AS PRO_NO,
        CASE WHEN O.FRT_TERM IS NULL THEN ' ' ELSE O.FRT_TERM END AS FRT_TERM,
                     D.DESP_DATE AS SHIP_DATE,
cust.cust_name CUST_NAME, custdlv.cust_name CUST_NAME_DLV,
CASE WHEN shp.remarks IS NULL THEN ' ' ELSE shp.remarks END AS SHIPMENT_REMARKS

FROM
		shipment shp,ship_docs sd,DESPATCH D, SITE S, SORDER O, TRANSPORTER T,  customer cust, customer custdlv
WHERE
	(shp.shipment_id between '$P!{DESP_ID_FIRST}' and '$P!{DESP_ID_LAST}')
	AND sd.shipment_id = shp.shipment_id and
	D.DESP_ID = sd.ref_id
    AND D.SITE_CODE = S.SITE_CODE
    AND D.SORD_NO = O.SALE_ORDER
and cust.cust_code = d.cust_code and custdlv.cust_code = O.cust_code__dlv
    AND shp.TRAN_CODE = T.TRAN_CODE
AND shp.CONFIRMED = 'Y'
AND (select count(ref_ser) from wave_task_det where ptcn in (
select ptcn from ship_docs) and ref_ser NOT IN ('M-PICK','M-PACK'))<>0]]>
	</queryString>
	<field name="SITE_CODE" class="java.lang.String"/>
	<field name="BOL_DESP_ID" class="java.lang.String"/>
	<field name="ADD1" class="java.lang.String"/>
	<field name="ADD2" class="java.lang.String"/>
	<field name="CITY" class="java.lang.String"/>
	<field name="STATE_CODE" class="java.lang.String"/>
	<field name="PIN" class="java.lang.String"/>
	<field name="CUST_CODE__DLV" class="java.lang.String"/>
	<field name="DLV_ADD1" class="java.lang.String"/>
	<field name="DLV_ADD2" class="java.lang.String"/>
	<field name="DLV_ADD3" class="java.lang.String"/>
	<field name="DLV_CITY" class="java.lang.String"/>
	<field name="STATE_CODE_DLV" class="java.lang.String"/>
	<field name="DLV_PIN" class="java.lang.String"/>
	<field name="CUST_CODE" class="java.lang.String"/>
	<field name="REMARKS2" class="java.lang.String"/>
	<field name="BOL_NO" class="java.lang.String"/>
	<field name="TRAN_NAME" class="java.lang.String"/>
	<field name="SCAC" class="java.lang.String"/>
	<field name="PRO_NO" class="java.lang.String"/>
	<field name="FRT_TERM" class="java.lang.String"/>
	<field name="SHIP_DATE" class="java.util.Date"/>
	<field name="CUST_NAME" class="java.lang.String"/>
	<field name="CUST_NAME_DLV" class="java.lang.String"/>
	<field name="SHIPMENT_ID" class="java.lang.String"/>
	<field name="SHIPMENT_LR_NO" class="java.lang.String"/>
	<field name="PREFIX" class="java.lang.String"/>
	<field name="SUFFIX" class="java.lang.String"/>
	<field name="ADD3" class="java.lang.String"/>
	<field name="SHIPMENT_REMARKS" class="java.lang.String"/>
	<variable name="compute_1" class="java.lang.String" resetType="None">
		<variableExpression><![CDATA[new java.lang.String(ibase.webitm.reports.sun.BaseReportGFMethods.gf_bar_code("9012k"+ibase.webitm.reports.utility.BaseReportMethods.trim( $F{SCAC}) +""+ibase.webitm.reports.utility.BaseReportMethods.trim( $F{PREFIX})+ibase.webitm.reports.utility.BaseReportMethods.trim( $F{PRO_NO})+ibase.webitm.reports.utility.BaseReportMethods.trim( $F{SUFFIX}) ) )]]></variableExpression>
	</variable>
	<variable name="compute_2" class="java.lang.String" resetType="None">
		<variableExpression><![CDATA[new java.lang.String($F{CITY}.trim()+" / "+$F{STATE_CODE}.trim()+" / "+$F{PIN}.trim())]]></variableExpression>
	</variable>
	<variable name="compute_3" class="java.lang.String" resetType="None">
		<variableExpression><![CDATA[new java.lang.String($F{DLV_CITY}.trim()+" / "+$F{STATE_CODE_DLV}.trim()+" / "+$F{DLV_PIN}.trim())]]></variableExpression>
	</variable>
	<variable name="compute_4" class="java.lang.String" resetType="None">
		<variableExpression><![CDATA[new java.lang.String(ibase.webitm.reports.sun.BaseReportGFMethods.gf_bar_code("402"+ibase.webitm.reports.utility.BaseReportMethods.trim($F{SHIPMENT_LR_NO})))]]></variableExpression>
	</variable>
	<variable name="compute_4_1" class="java.lang.String" resetType="None">
		<variableExpression><![CDATA[new java.lang.String("(402)   "+(ibase.webitm.reports.utility.BaseReportMethods.trim($F{SHIPMENT_LR_NO})))]]></variableExpression>
	</variable>
	<variable name="compute_1_1" class="java.lang.String" resetType="None">
		<variableExpression><![CDATA[new java.lang.String(ibase.webitm.reports.utility.BaseReportMethods.trim( $F{PRO_NO}))]]></variableExpression>
	</variable>
	<group name="shipment_id" isStartNewPage="true" isResetPageNumber="true">
		<groupExpression><![CDATA[$F{SHIPMENT_ID}]]></groupExpression>
		<groupHeader>
			<band height="504">
				<staticText>
					<reportElement x="411" y="265" width="73" height="15"/>
					<textElement>
						<font fontName="Arial" isBold="true"/>
					</textElement>
					<text><![CDATA[Collect ______]]></text>
				</staticText>
				<textField isBlankWhenNull="true">
					<reportElement x="9" y="64" width="180" height="15"/>
					<textElement>
						<font fontName="Courier New"/>
					</textElement>
					<textFieldExpression class="java.lang.String"><![CDATA[$F{ADD2}]]></textFieldExpression>
				</textField>
				<staticText>
					<reportElement x="334" y="239" width="227" height="23"/>
					<textElement>
						<font fontName="Arial" size="8" isBold="true"/>
					</textElement>
					<text><![CDATA[Freight Charge Terms: (freight charges are prepaid unless marked otherwise)]]></text>
				</staticText>
				<textField isBlankWhenNull="true">
					<reportElement x="398" y="179" width="148" height="13"/>
					<textElement>
						<font fontName="Arial"/>
					</textElement>
					<textFieldExpression class="java.lang.String"><![CDATA[$F{PRO_NO}]]></textFieldExpression>
				</textField>
				<line>
					<reportElement x="6" y="273" width="320" height="1"/>
				</line>
				<line direction="BottomUp">
					<reportElement x="565" y="20" width="1" height="292"/>
				</line>
				<line>
					<reportElement x="6" y="25" width="1" height="286"/>
				</line>
				<staticText>
					<reportElement x="482" y="264" width="80" height="15"/>
					<textElement>
						<font fontName="Arial" isBold="true"/>
					</textElement>
					<text><![CDATA[3rd Party ______]]></text>
				</staticText>
				<staticText>
					<reportElement x="507" y="1" width="30" height="15"/>
					<textElement>
						<font fontName="Arial" size="12" isBold="true"/>
					</textElement>
					<text><![CDATA[Page]]></text>
				</staticText>
				<staticText>
					<reportElement mode="Opaque" x="6" y="19" width="320" height="15" forecolor="#FEFEFE" backcolor="#010101"/>
					<textElement textAlignment="Center" verticalAlignment="Middle">
						<font fontName="Arial" size="8" isBold="true"/>
					</textElement>
					<text><![CDATA[SHIP FORM]]></text>
				</staticText>
				<staticText>
					<reportElement x="334" y="20" width="111" height="15"/>
					<textElement>
						<font fontName="Arial" isBold="true"/>
					</textElement>
					<text><![CDATA[Bill of Lading Number:]]></text>
				</staticText>
				<textField isBlankWhenNull="true">
					<reportElement x="537" y="1" width="30" height="15"/>
					<textElement>
						<font fontName="Courier New" size="12"/>
					</textElement>
					<textFieldExpression class="java.lang.Integer"><![CDATA[$V{PAGE_NUMBER}]]></textFieldExpression>
				</textField>
				<textField isBlankWhenNull="true">
					<reportElement x="372" y="165" width="174" height="13"/>
					<textElement>
						<font fontName="Arial"/>
					</textElement>
					<textFieldExpression class="java.lang.String"><![CDATA[$F{SCAC}]]></textFieldExpression>
				</textField>
				<rectangle>
					<reportElement x="293" y="183" width="15" height="12"/>
					<graphicElement>
						<pen lineWidth="2.0"/>
					</graphicElement>
				</rectangle>
				<staticText>
					<reportElement x="391" y="281" width="170" height="30"/>
					<textElement>
						<font fontName="Arial"/>
					</textElement>
					<text><![CDATA[Master Bill of Lading: with attached underlying Bills of Lading]]></text>
				</staticText>
				<line>
					<reportElement x="326" y="279" width="239" height="1"/>
				</line>
				<staticText>
					<reportElement x="263" y="183" width="40" height="12"/>
					<textElement>
						<font fontName="Courier New"/>
					</textElement>
					<text><![CDATA[FOB:]]></text>
				</staticText>
				<textField pattern="">
					<reportElement x="7" y="3" width="150" height="15"/>
					<textElement>
						<font fontName="Courier New"/>
					</textElement>
					<textFieldExpression class="java.lang.String"><![CDATA[$F{SHIP_DATE}.equals(null)?"":(new SimpleDateFormat("MM/dd/yy").format($F{SHIP_DATE}))]]></textFieldExpression>
				</textField>
				<textField isBlankWhenNull="true">
					<reportElement x="135" y="276" width="188" height="25"/>
					<textElement>
						<font fontName="Arial"/>
					</textElement>
					<textFieldExpression class="java.lang.String"><![CDATA[$F{SHIPMENT_REMARKS}]]></textFieldExpression>
				</textField>
				<staticText>
					<reportElement x="334" y="166" width="50" height="15"/>
					<textElement>
						<font fontName="Arial" isBold="true"/>
					</textElement>
					<text><![CDATA[SCAC:]]></text>
				</staticText>
				<textField isBlankWhenNull="true">
					<reportElement x="9" y="52" width="276" height="15"/>
					<textElement>
						<font fontName="Courier New"/>
					</textElement>
					<textFieldExpression class="java.lang.String"><![CDATA[$F{ADD1}]]></textFieldExpression>
				</textField>
				<line>
					<reportElement x="327" y="164" width="239" height="1"/>
				</line>
				<staticText>
					<reportElement x="334" y="265" width="80" height="15"/>
					<textElement>
						<font fontName="Arial" isBold="true"/>
					</textElement>
					<text><![CDATA[Prepaid ______]]></text>
				</staticText>
				<textField isBlankWhenNull="true">
					<reportElement x="445" y="20" width="113" height="12"/>
					<textElement textAlignment="Left">
						<font fontName="Arial" size="10" isUnderline="true"/>
					</textElement>
					<textFieldExpression class="java.lang.String"><![CDATA[$F{SHIPMENT_LR_NO}.trim()]]></textFieldExpression>
				</textField>
				<staticText>
					<reportElement x="263" y="92" width="40" height="12"/>
					<textElement>
						<font fontName="Courier New"/>
					</textElement>
					<text><![CDATA[FOB:]]></text>
				</staticText>
				<rectangle>
					<reportElement x="354" y="283" width="15" height="12"/>
					<graphicElement>
						<pen lineWidth="2.0"/>
					</graphicElement>
				</rectangle>
				<textField isBlankWhenNull="true">
					<reportElement x="9" y="140" width="268" height="12"/>
					<textElement>
						<font fontName="Courier New"/>
					</textElement>
					<textFieldExpression class="java.lang.String"><![CDATA[$F{DLV_ADD1}]]></textFieldExpression>
				</textField>
				<textField isBlankWhenNull="true">
					<reportElement x="52" y="183" width="174" height="12"/>
					<textElement>
						<font fontName="Courier New"/>
					</textElement>
					<textFieldExpression class="java.lang.String"><![CDATA[$F{CUST_CODE__DLV}]]></textFieldExpression>
				</textField>
				<textField isBlankWhenNull="true">
					<reportElement x="9" y="152" width="165" height="12"/>
					<textElement>
						<font fontName="Courier New"/>
					</textElement>
					<textFieldExpression class="java.lang.String"><![CDATA[$F{DLV_ADD2}]]></textFieldExpression>
				</textField>
				<staticText>
					<reportElement mode="Opaque" x="6" y="107" width="320" height="15" forecolor="#FEFEFE" backcolor="#010101"/>
					<textElement textAlignment="Center" verticalAlignment="Middle">
						<font fontName="Arial" size="8" isBold="true"/>
					</textElement>
					<text><![CDATA[SHIP TO]]></text>
				</staticText>
				<staticText>
					<reportElement x="334" y="110" width="100" height="17"/>
					<textElement>
						<font fontName="Arial" isBold="true"/>
					</textElement>
					<text><![CDATA[CARRIER NAME:]]></text>
				</staticText>
				<line direction="BottomUp">
					<reportElement x="326" y="20" width="1" height="291"/>
				</line>
				<staticText>
					<reportElement x="334" y="130" width="80" height="15"/>
					<textElement>
						<font fontName="Arial"/>
					</textElement>
					<text><![CDATA[Trailer Number:]]></text>
				</staticText>
				<line>
					<reportElement x="326" y="19" width="239" height="1"/>
				</line>
				<staticText>
					<reportElement x="334" y="179" width="70" height="15"/>
					<textElement>
						<font fontName="Arial" isBold="true"/>
					</textElement>
					<text><![CDATA[Pro number:]]></text>
				</staticText>
				<rectangle>
					<reportElement x="293" y="92" width="15" height="12"/>
					<graphicElement>
						<pen lineWidth="2.0"/>
					</graphicElement>
				</rectangle>
				<staticText>
					<reportElement x="216" y="0" width="141" height="20"/>
					<textElement>
						<font fontName="Arial" size="16" isBold="true"/>
					</textElement>
					<text><![CDATA[BILL OF LADING]]></text>
				</staticText>
				<staticText>
					<reportElement x="11" y="91" width="45" height="12"/>
					<textElement>
						<font fontName="Courier New"/>
					</textElement>
					<text><![CDATA[SID#:]]></text>
				</staticText>
				<staticText>
					<reportElement x="8" y="274" width="130" height="15"/>
					<textElement>
						<font fontName="Arial"/>
					</textElement>
					<text><![CDATA[SPECIAL INSTRUCTIONS:]]></text>
				</staticText>
				<staticText>
					<reportElement x="8" y="183" width="45" height="12"/>
					<textElement>
						<font fontName="Courier New"/>
					</textElement>
					<text><![CDATA[CID#:]]></text>
				</staticText>
				<staticText>
					<reportElement x="334" y="144" width="90" height="15"/>
					<textElement>
						<font fontName="Arial"/>
					</textElement>
					<text><![CDATA[Seal Number (s):]]></text>
				</staticText>
				<textField isBlankWhenNull="true">
					<reportElement x="420" y="111" width="133" height="15"/>
					<textElement>
						<font fontName="Arial" isUnderline="true"/>
					</textElement>
					<textFieldExpression class="java.lang.String"><![CDATA[$F{TRAN_NAME}.trim()]]></textFieldExpression>
				</textField>
				<staticText>
					<reportElement mode="Opaque" x="6" y="198" width="320" height="15" forecolor="#FEFEFE" backcolor="#010101"/>
					<textElement textAlignment="Center" verticalAlignment="Middle">
						<font fontName="Arial" size="8" isBold="true"/>
					</textElement>
					<text><![CDATA[THIRD PARTY FREIGHT CHARGES BILL TO:]]></text>
				</staticText>
				<line>
					<reportElement x="326" y="108" width="239" height="1"/>
				</line>
				<line>
					<reportElement x="326" y="236" width="239" height="1"/>
				</line>
				<textField isBlankWhenNull="true">
					<reportElement x="9" y="37" width="278" height="12"/>
					<textElement>
						<font fontName="Courier New"/>
					</textElement>
					<textFieldExpression class="java.lang.String"><![CDATA[$F{SITE_CODE}]]></textFieldExpression>
				</textField>
				<textField isBlankWhenNull="true">
					<reportElement x="9" y="125" width="268" height="12"/>
					<textElement>
						<font fontName="Courier New"/>
					</textElement>
					<textFieldExpression class="java.lang.String"><![CDATA[$F{CUST_NAME_DLV}]]></textFieldExpression>
				</textField>
				<textField isBlankWhenNull="true">
					<reportElement x="334" y="197" width="203" height="31"/>
					<textElement>
						<font fontName="Code 128AB" size="40"/>
					</textElement>
					<textFieldExpression class="java.lang.String"><![CDATA[$V{compute_1}]]></textFieldExpression>
				</textField>
				<textField isStretchWithOverflow="true" isBlankWhenNull="true">
					<reportElement x="9" y="75" width="243" height="15"/>
					<textElement>
						<font fontName="Courier New"/>
					</textElement>
					<textFieldExpression class="java.lang.String"><![CDATA[$V{compute_2}]]></textFieldExpression>
				</textField>
				<textField isStretchWithOverflow="true" isBlankWhenNull="true">
					<reportElement x="9" y="162" width="243" height="15"/>
					<textElement>
						<font fontName="Courier New"/>
					</textElement>
					<textFieldExpression class="java.lang.String"><![CDATA[$V{compute_3}]]></textFieldExpression>
				</textField>
				<textField isBlankWhenNull="true">
					<reportElement x="355" y="46" width="203" height="38"/>
					<textElement>
						<font fontName="Code 128AB" size="40"/>
					</textElement>
					<textFieldExpression class="java.lang.String"><![CDATA[$V{compute_4}]]></textFieldExpression>
				</textField>
				<textField isBlankWhenNull="true">
					<reportElement x="355" y="83" width="179" height="16"/>
					<textElement/>
					<textFieldExpression class="java.lang.String"><![CDATA[$V{compute_4_1}]]></textFieldExpression>
				</textField>
				<textField isBlankWhenNull="true">
					<reportElement x="334" y="223" width="179" height="16"/>
					<textElement/>
					<textFieldExpression class="java.lang.String"><![CDATA[$V{compute_1_1}]]></textFieldExpression>
				</textField>
				<staticText>
					<reportElement x="340" y="299" width="51" height="12"/>
					<textElement>
						<font fontName="Arial" size="8" isBold="true"/>
					</textElement>
					<text><![CDATA[(check box)]]></text>
				</staticText>
				<staticText>
					<reportElement x="10" y="213" width="33" height="15">
						<printWhenExpression><![CDATA[new Boolean(false)]]></printWhenExpression>
					</reportElement>
					<textElement>
						<font fontName="Arial"/>
					</textElement>
					<text><![CDATA[Name:]]></text>
				</staticText>
				<staticText>
					<reportElement x="10" y="228" width="40" height="15">
						<printWhenExpression><![CDATA[new Boolean(false)]]></printWhenExpression>
					</reportElement>
					<textElement>
						<font fontName="Arial"/>
					</textElement>
					<text><![CDATA[Address:]]></text>
				</staticText>
				<staticText>
					<reportElement x="8" y="254" width="69" height="15">
						<printWhenExpression><![CDATA[new Boolean(false)]]></printWhenExpression>
					</reportElement>
					<textElement>
						<font fontName="Arial"/>
					</textElement>
					<text><![CDATA[City/State/Zip:]]></text>
				</staticText>
				<subreport>
					<reportElement positionType="Float" isPrintRepeatedValues="false" x="0" y="412" width="572" height="92" isRemoveLineWhenBlank="true"/>
					<parametersMapExpression><![CDATA[$P{REPORT_PARAMETERS_MAP}]]></parametersMapExpression>
					<subreportParameter name="DESP_DESP_ID">
						<subreportParameterExpression><![CDATA[$F{SHIPMENT_ID}]]></subreportParameterExpression>
					</subreportParameter>
					<connectionExpression><![CDATA[$P{REPORT_CONNECTION}]]></connectionExpression>
					<subreportExpression class="java.io.InputStream"><![CDATA[new FileInputStream("/data/jboss-5.1.0.GA/server/default/deploy/ibase.ear/ibase.war/webitm/reports/jrxml/bill_of_lading_subreport2.jasper")]]></subreportExpression>
				</subreport>
				<subreport>
					<reportElement positionType="Float" isPrintRepeatedValues="false" x="0" y="311" width="572" height="101" isRemoveLineWhenBlank="true"/>
					<parametersMapExpression><![CDATA[$P{REPORT_PARAMETERS_MAP}]]></parametersMapExpression>
					<subreportParameter name="DESP_DESP_ID">
						<subreportParameterExpression><![CDATA[$F{SHIPMENT_ID}]]></subreportParameterExpression>
					</subreportParameter>
					<connectionExpression><![CDATA[$P{REPORT_CONNECTION}]]></connectionExpression>
					<subreportExpression class="java.io.InputStream"><![CDATA[new FileInputStream("/data/jboss-5.1.0.GA/server/default/deploy/ibase.ear/ibase.war/webitm/reports/jrxml/bill_of_lading_subreport1.jasper")]]></subreportExpression>
				</subreport>
				<textField isBlankWhenNull="true">
					<reportElement x="58" y="91" width="159" height="12"/>
					<textElement>
						<font fontName="Courier New"/>
					</textElement>
					<textFieldExpression class="java.lang.String"><![CDATA[$F{SHIPMENT_ID}]]></textFieldExpression>
				</textField>
				<textField isBlankWhenNull="true">
					<reportElement x="175" y="152" width="146" height="12"/>
					<textElement>
						<font fontName="Courier New"/>
					</textElement>
					<textFieldExpression class="java.lang.String"><![CDATA[$F{DLV_ADD3}]]></textFieldExpression>
				</textField>
				<textField isBlankWhenNull="true">
					<reportElement x="188" y="64" width="134" height="15"/>
					<textElement>
						<font fontName="Courier New"/>
					</textElement>
					<textFieldExpression class="java.lang.String"><![CDATA[$F{ADD3}]]></textFieldExpression>
				</textField>
			</band>
		</groupHeader>
		<groupFooter>
			<band height="148">
				<staticText>
					<reportElement x="10" y="95" width="134" height="11"/>
					<textElement textAlignment="Left">
						<font fontName="Arial" size="9" isBold="true"/>
					</textElement>
					<text><![CDATA[SHIPPER SIGNATURE / DATE]]></text>
				</staticText>
				<line>
					<reportElement x="6" y="36" width="558" height="1"/>
				</line>
				<staticText>
					<reportElement x="361" y="95" width="179" height="11"/>
					<textElement textAlignment="Left">
						<font fontName="Arial" size="9" isBold="true"/>
					</textElement>
					<text><![CDATA[CARRIER SIGNATURE / PICKUP DATE]]></text>
				</staticText>
				<rectangle>
					<reportElement x="278" y="137" width="8" height="8"/>
				</rectangle>
				<staticText>
					<reportElement x="11" y="28" width="149" height="10"/>
					<textElement>
						<font fontName="Arial" size="6"/>
					</textElement>
					<text><![CDATA[Shipper:________________ By: _________________]]></text>
				</staticText>
				<staticText>
					<reportElement x="289" y="117" width="55" height="17"/>
					<textElement>
						<font fontName="Arial" size="7"/>
					</textElement>
					<text><![CDATA[By Driver/Pallets said to contain]]></text>
				</staticText>
				<staticText>
					<reportElement x="317" y="57" width="240" height="15"/>
					<textElement>
						<font fontName="Arial" size="6"/>
					</textElement>
					<text><![CDATA[The carrier shall not make delivery of this shipment without payment of freight and all other lawful charges.]]></text>
				</staticText>
				<staticText>
					<reportElement x="215" y="94" width="60" height="10"/>
					<textElement>
						<font fontName="Arial" size="8" isUnderline="true"/>
					</textElement>
					<text><![CDATA[Trailer Loaded:]]></text>
				</staticText>
				<staticText>
					<reportElement x="167" y="15" width="130" height="15"/>
					<textElement>
						<font fontName="Arial" size="6"/>
					</textElement>
					<text><![CDATA[$ ________________ per lb
$ ________________ per shipment (truckload)]]></text>
				</staticText>
				<staticText>
					<reportElement x="10" y="56" width="300" height="30"/>
					<textElement>
						<font fontName="Arial" size="6"/>
					</textElement>
					<text><![CDATA[RECEIVED, subject to the written transportation contract between shipper and carrier, if applicable, otherwise
subject to the terms and conditions of the shipper's standard transportation contract in the effect on the date of
shipment, which is available to the carrier on request. This shipment is not subject to any classification or
tariffs which may be established by the carrier.]]></text>
				</staticText>
				<staticText>
					<reportElement mode="Transparent" x="321" y="69" width="240" height="20" forecolor="#000000" backcolor="#010101"/>
					<textElement textAlignment="Left" verticalAlignment="Middle">
						<font fontName="Arial" size="8" isBold="false"/>
					</textElement>
					<text><![CDATA[_______________________________________Shipper Signature]]></text>
				</staticText>
				<line>
					<reportElement x="352" y="91" width="1" height="57"/>
				</line>
				<staticText>
					<reportElement x="227" y="108" width="35" height="10"/>
					<textElement>
						<font fontName="Arial" size="7"/>
					</textElement>
					<text><![CDATA[By Shipper]]></text>
				</staticText>
				<line>
					<reportElement x="563" y="91" width="1" height="57"/>
				</line>
				<staticText>
					<reportElement x="289" y="136" width="55" height="10"/>
					<textElement>
						<font fontName="Arial" size="7"/>
					</textElement>
					<text><![CDATA[By Driver/Pieces]]></text>
				</staticText>
				<staticText>
					<reportElement x="361" y="107" width="190" height="30"/>
					<textElement textAlignment="Left">
						<font fontName="Arial" size="6"/>
					</textElement>
					<text><![CDATA[Carrier acknowledges receipt of packages and required placards.  Carrier certifies emergency response information was made available and/or carrier has the DOT emergency response guidebook or equivalent documentation in the vehicle.]]></text>
				</staticText>
				<rectangle>
					<reportElement x="487" y="23" width="8" height="8"/>
				</rectangle>
				<staticText>
					<reportElement x="10" y="3" width="300" height="10"/>
					<textElement>
						<font fontName="Arial" size="6"/>
					</textElement>
					<text><![CDATA[Carriers liability for loss, damage or delay is limited to:]]></text>
				</staticText>
				<line>
					<reportElement x="312" y="54" width="1" height="38"/>
				</line>
				<rectangle>
					<reportElement x="500" y="13" width="8" height="8"/>
				</rectangle>
				<rectangle>
					<reportElement x="278" y="107" width="8" height="8"/>
				</rectangle>
				<staticText>
					<reportElement mode="Transparent" x="348" y="1" width="154" height="33" forecolor="#000000" backcolor="#010101"/>
					<textElement textAlignment="Center" verticalAlignment="Top">
						<font fontName="Arial" size="9" isBold="true"/>
					</textElement>
					<text><![CDATA[COD Amount:  $ ________________ Fee Terms:     Collect:         Prepaid:      Customer check acceptable:]]></text>
				</staticText>
				<staticText>
					<reportElement x="10" y="107" width="190" height="25"/>
					<textElement textAlignment="Left">
						<font fontName="Arial" size="6"/>
					</textElement>
					<text><![CDATA[This is to certify that the above named materials are properly classified, packaged, marked and labeled, and are in proper condition for transportation according to the applicable regulations of the DOT.]]></text>
				</staticText>
				<rectangle>
					<reportElement x="217" y="121" width="8" height="8"/>
				</rectangle>
				<staticText>
					<reportElement x="227" y="120" width="35" height="10"/>
					<textElement>
						<font fontName="Arial" size="7"/>
					</textElement>
					<text><![CDATA[By Driver]]></text>
				</staticText>
				<line>
					<reportElement x="205" y="91" width="1" height="56"/>
				</line>
				<line>
					<reportElement x="5" y="91" width="559" height="1"/>
				</line>
				<line>
					<reportElement x="6" y="54" width="558" height="1"/>
				</line>
				<line>
					<reportElement x="6" y="147" width="558" height="1"/>
				</line>
				<line>
					<reportElement x="5" y="91" width="1" height="57"/>
				</line>
				<staticText>
					<reportElement mode="Transparent" x="11" y="38" width="560" height="15" forecolor="#000000" backcolor="#010101"/>
					<textElement textAlignment="Left" verticalAlignment="Middle">
						<font fontName="Arial" size="9" isBold="true"/>
					</textElement>
					<text><![CDATA[NOTE Carrier's liability is for the actual loss unless otherwise agreed in contract, or stated above and signed by Shipper.]]></text>
				</staticText>
				<staticText>
					<reportElement x="281" y="94" width="60" height="10"/>
					<textElement>
						<font fontName="Arial" size="8" isUnderline="true"/>
					</textElement>
					<text><![CDATA[Freight Counted:]]></text>
				</staticText>
				<line>
					<reportElement x="5" y="0" width="1" height="92"/>
				</line>
				<staticText>
					<reportElement x="289" y="107" width="35" height="10"/>
					<textElement>
						<font fontName="Arial" size="7"/>
					</textElement>
					<text><![CDATA[By Shipper]]></text>
				</staticText>
				<rectangle>
					<reportElement x="278" y="117" width="8" height="8"/>
				</rectangle>
				<rectangle>
					<reportElement x="444" y="13" width="8" height="8"/>
				</rectangle>
				<rectangle>
					<reportElement x="217" y="109" width="8" height="8"/>
				</rectangle>
				<line>
					<reportElement x="563" y="0" width="1" height="92"/>
				</line>
				<break>
					<reportElement x="0" y="147" width="1" height="1"/>
				</break>
				<line>
					<reportElement x="312" y="-1" width="1" height="38"/>
				</line>
				<line>
					<reportElement x="5" y="0" width="560" height="1"/>
				</line>
			</band>
		</groupFooter>
	</group>
	<background>
		<band splitType="Stretch"/>
	</background>
	<title>
		<band splitType="Stretch"/>
	</title>
	<pageHeader>
		<band splitType="Stretch"/>
	</pageHeader>
	<columnHeader>
		<band splitType="Stretch"/>
	</columnHeader>
	<columnFooter>
		<band splitType="Stretch"/>
	</columnFooter>
	<pageFooter>
		<band splitType="Stretch"/>
	</pageFooter>
	<summary>
		<band splitType="Stretch"/>
	</summary>
</jasperReport>
