<!DOCTYPE HTML PUBLIC "-//W3C//Dtd HTML 4.01//EN" "http://www.w3.org/tr/html4/strict.dtd">
<HTML>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=8">
<title>sales_open_memo</title>
<meta name="generator" content="BCL easyConverter SDK 5.0.152">
<style type="text/css">

body {margin-top: 0px;margin-left: 0px;}

#id1_1 {position:relative; overflow: hidden;margin:10px auto;padding: 0px;border: none;width: 1046px;}
#page_1 #p1dimg1 {position:absolute;top:185px;left:0px;z-index:-1;width:1036px;height:510px;}
#page_1 #p1dimg1 #p1img1 {width:1036px;height:510px;}

.ft0{font: bold 16px 'Arial';line-height: 19px;}
.ft1{font: bold 11px 'Arial';line-height: 12px;}
.ft2{font: 1px 'Arial';line-height: 1px;}
.ft3{font: bold 18px 'Arial';line-height: 21px;}
.ft4{font: 12px 'Arial';line-height: 15px;}
.ft5{font: 1px 'Arial';line-height: 7px;}
.ft6{font: 1px 'Arial';line-height: 9px;}
.ft7{font: 1px 'Arial';line-height: 5px;}
.ft8{font: bold 11px 'Arial';line-height: 11px;}
.ft9{font: 11px 'Arial';line-height: 13px;}
.ft10{font: 9px 'Arial';line-height: 12px;}
.ft11{font: 1px 'Arial';line-height: 10px;}
.ft12{font: 9px 'Arial';color: #808080;line-height: 12px;}
.ft13{font: 10px 'Arial';color: #808080;line-height: 13px;}

.p0{text-align: left;padding-left: 6px;margin-top: 0px;margin-bottom: 0px;}
.p1{text-align: left;padding-left: 6px;margin-top: 0px;margin-bottom: 0px;white-space: nowrap;}
.p2{text-align: left;margin-top: 0px;margin-bottom: 0px;white-space: nowrap;}
.p3{text-align: right;margin-top: 0px;margin-bottom: 0px;white-space: nowrap;}
.p4{text-align: left;padding-left: 54px;margin-top: 0px;margin-bottom: 0px;white-space: nowrap;}
.p5{text-align: right;padding-right: 25px;margin-top: 0px;margin-bottom: 0px;white-space: nowrap;}
.p6{text-align: left;padding-left: 5px;margin-top: 0px;margin-bottom: 0px;white-space: nowrap;}
.p7{text-align: left;padding-left: 23px;margin-top: 0px;margin-bottom: 0px;white-space: nowrap;}
.p8{text-align: right;padding-right: 6px;margin-top: 0px;margin-bottom: 0px;white-space: nowrap;}
.p9{text-align: left;padding-left: 7px;margin-top: 0px;margin-bottom: 0px;white-space: nowrap;}
.p10{text-align: left;padding-left: 25px;margin-top: 0px;margin-bottom: 0px;white-space: nowrap;}
.p11{text-align: left;padding-left: 24px;margin-top: 0px;margin-bottom: 0px;white-space: nowrap;}
.p12{text-align: left;padding-left: 13px;margin-top: 0px;margin-bottom: 0px;white-space: nowrap;}
.p13{text-align: right;padding-right: 7px;margin-top: 0px;margin-bottom: 0px;white-space: nowrap;}
.p14{text-align: center;padding-right: 20px;margin-top: 0px;margin-bottom: 0px;white-space: nowrap;}
.p15{text-align: right;padding-right: 2px;margin-top: 0px;margin-bottom: 0px;white-space: nowrap;}
.p16{text-align: left;padding-left: 4px;margin-top: 0px;margin-bottom: 0px;white-space: nowrap;}
.p17{text-align: left;padding-left: 19px;margin-top: 0px;margin-bottom: 0px;white-space: nowrap;}
.p18{text-align: right;padding-right: 11px;margin-top: 0px;margin-bottom: 0px;white-space: nowrap;}
.p19{text-align: left;padding-left: 26px;margin-top: 0px;margin-bottom: 0px;white-space: nowrap;}
.p20{text-align: left;padding-left: 10px;margin-top: 0px;margin-bottom: 0px;white-space: nowrap;}
.p21{text-align: right;margin-top: 0px;margin-bottom: 0px;white-space: nowrap;}
.p22{text-align: center;padding-right: 19px;margin-top: 0px;margin-bottom: 0px;white-space: nowrap;}
.p23{text-align: right;padding-right: 5px;margin-top: 0px;margin-bottom: 0px;white-space: nowrap;}
.p24{text-align: left;padding-left: 14px;margin-top: 0px;margin-bottom: 0px;white-space: nowrap;}
.p25{text-align: right;padding-right: 115px;margin-top: 0px;margin-bottom: 0px;white-space: nowrap;}
.p26{text-align: right;padding-right: 18px;margin-top: 0px;margin-bottom: 0px;white-space: nowrap;}
.p27{text-align: left;padding-left: 18px;margin-top: 0px;margin-bottom: 0px;white-space: nowrap;}
.p28{text-align: right;margin-top: 0px;margin-bottom: 0px;white-space: nowrap;}

.td0{padding: 0px;margin: 0px;vertical-align: bottom;}
.td1{padding: 0px;margin: 0px;vertical-align: bottom;}
.td2{padding: 0px;margin: 0px;vertical-align: bottom;}
.td3{padding: 0px;margin: 0px;vertical-align: bottom;}
.td4{padding: 0px;margin: 0px;vertical-align: bottom;}
.td5{padding: 0px;margin: 0px;vertical-align: bottom;}
.td6{padding: 0px;margin: 0px;vertical-align: bottom;}
.td7{padding: 0px;margin: 0px;vertical-align: bottom;}
.td8{padding: 0px;margin: 0px;vertical-align: bottom;}
.td9{padding: 0px;margin: 0px;vertical-align: bottom;}
.td10{padding: 0px;margin: 0px;vertical-align: bottom;}
.td11{padding: 0px;margin: 0px;vertical-align: bottom;}
.td12{padding: 0px;margin: 0px;vertical-align: bottom;}
.td13{padding: 0px;margin: 0px;vertical-align: bottom;}
.td14{padding: 0px;margin: 0px;vertical-align: bottom;}
.td15{padding: 0px;margin: 0px;vertical-align: bottom;}
.td16{padding: 0px;margin: 0px;vertical-align: bottom;}
.td17{padding: 0px;margin: 0px;vertical-align: bottom;}
.td18{padding: 0px;margin: 0px;vertical-align: bottom;}
.td19{padding: 0px;margin: 0px;vertical-align: bottom;}
.td20{padding: 0px;margin: 0px;vertical-align: bottom;}
.td21{padding: 0px;margin: 0px;vertical-align: bottom;}
.td22{padding: 0px;margin: 0px;vertical-align: bottom;}
.td23{padding: 0px;margin: 0px;vertical-align: bottom;}
.td24{padding: 0px;margin: 0px;vertical-align: bottom;background: #b1b1b1;border-top:1px solid #000;border-left: 1px solid #000;}
.td25{padding: 0px;margin: 0px;vertical-align: bottom;background: #b1b1b1;border-top:1px solid #000;}
.td26{padding: 0px;margin: 0px;vertical-align: bottom;background: #b1b1b1;border-top:1px solid #000;}
.td27{padding: 0px;margin: 0px;vertical-align: bottom;background: #b1b1b1;border-top:1px solid #000;}
.td28{padding: 0px;margin: 0px;vertical-align: bottom;background: #b1b1b1;border-top:1px solid #000;}
.td29{padding: 0px;margin: 0px;vertical-align: bottom;background: #b1b1b1;border-top:1px solid #000;}
.td30{padding: 0px;margin: 0px;vertical-align: bottom;background: #b1b1b1;border-top:1px solid #000;}
.td31{padding: 0px;margin: 0px;vertical-align: bottom;background: #b1b1b1;border-top:1px solid #000;}
.td32{padding: 0px;margin: 0px;vertical-align: bottom;background: #b1b1b1;border-top:1px solid #000;}
.td33{padding: 0px;margin: 0px;vertical-align: bottom;background: #b1b1b1;border-top:1px solid #000;}
.td34{padding: 0px;margin: 0px;vertical-align: bottom;background: #b1b1b1;border-top:1px solid #000;border-right: 1px solid #000;}
.td35{padding: 0px;margin: 0px;vertical-align: bottom;background: #b1b1b1;border-bottom:1px solid #000;border-left:1px solid #000;}
.td36{padding: 0px;margin: 0px;vertical-align: bottom;background: #b1b1b1;border-bottom:1px solid #000;}
.td37{padding: 0px;margin: 0px;vertical-align: bottom;background: #b1b1b1;border-bottom:1px solid #000;}
.td38{padding: 0px;margin: 0px;vertical-align: bottom;background: #b1b1b1;border-bottom:1px solid #000;}
.td39{padding: 0px;margin: 0px;vertical-align: bottom;background: #b1b1b1;border-bottom:1px solid #000;}
.td40{padding: 0px;margin: 0px;vertical-align: bottom;background: #b1b1b1;border-bottom:1px solid #000;}
.td41{padding: 0px;margin: 0px;vertical-align: bottom;background: #b1b1b1;border-bottom:1px solid #000;}
.td42{padding: 0px;margin: 0px;vertical-align: bottom;background: #b1b1b1;border-bottom:1px solid #000;}
.td43{padding: 0px;margin: 0px;vertical-align: bottom;background: #b1b1b1;border-bottom:1px solid #000;}
.td44{padding: 0px;margin: 0px;vertical-align: bottom;background: #b1b1b1;border-bottom:1px solid #000;}
.td45{padding: 0px;margin: 0px;vertical-align: bottom;background: #b1b1b1;border-bottom:1px solid #000;border-right:1px solid #000;}
.td46{padding: 0px;margin: 0px;vertical-align: bottom;}
.td47{border-bottom: #c0c0c0 1px solid;padding: 0px;margin: 0px;vertical-align: bottom;}
.td48{border-bottom: #c0c0c0 1px solid;padding: 0px;margin: 0px;vertical-align: bottom;}
.td49{border-bottom: #c0c0c0 1px solid;padding: 0px;margin: 0px;vertical-align: bottom;}
.td50{border-bottom: #c0c0c0 1px solid;padding: 0px;margin: 0px;vertical-align: bottom;}
.td51{border-bottom: #c0c0c0 1px solid;padding: 0px;margin: 0px;vertical-align: bottom;}
.td52{border-bottom: #c0c0c0 1px solid;padding: 0px;margin: 0px;vertical-align: bottom;}
.td53{border-bottom: #c0c0c0 1px solid;padding: 0px;margin: 0px;vertical-align: bottom;}
.td54{border-bottom: #c0c0c0 1px solid;padding: 0px;margin: 0px;vertical-align: bottom;}
.td55{border-bottom: #c0c0c0 1px solid;padding: 0px;margin: 0px;vertical-align: bottom;}
.td56{border-bottom: #c0c0c0 1px solid;padding: 0px;margin: 0px;vertical-align: bottom;}
.td57{border-bottom: #c0c0c0 1px solid;padding: 0px;margin: 0px;vertical-align: bottom;}
.td58{border-bottom: #c0c0c0 1px solid;padding: 0px;margin: 0px;vertical-align: bottom;}
.td59{border-bottom: #c0c0c0 1px solid;padding: 0px;margin: 0px;vertical-align: bottom;}
.td60{border-bottom: #c0c0c0 1px solid;padding: 0px;margin: 0px;vertical-align: bottom;}

.tr0{height: 20px;}
.tr1{height: 15px;}
.tr2{height: 22px;}
.tr3{height: 16px;}
.tr4{height: 7px;}
.tr5{height: 9px;}
.tr6{height: 5px;}
.tr7{height: 19px;}
.tr8{height: 20px;padding-bottom: 6px;}
.tr9{height: 21px;padding-bottom: 6px;}
.tr10{height: 10px;}
.tr11{height: 14px;}
.tr12{height: 17px;}

.t0{width: 1036px;font: 10px 'Arial';}
.t1{width: 205px;font: 9px 'Arial';color: #808080;}

</style>
</head>

<body>
<?php 
	$row = $records['0'];  
	$total_cts = 0; 
	$total_net_amount = 0; 
	$total_customer = 0; 
	$old_cust = '';
?>	
<div id="id1_1">
<P class="p0 ft0"><?php echo $row->comp_Add; ?></P>
<table cellpadding=0 cellspacing=0 class="t0">
<tr>
	<td colspan=2 class="tr0 td0" style="vertical-align: middle;"><P class="p1 ft1"><?php echo $row->comp_Add1; ?></P></td>
	<td class="tr0 td1"><P class="p2 ft2">&nbsp;</P></td>
	<td class="tr0 td2"><P class="p2 ft2">&nbsp;</P></td>
	<td class="tr0 td3"><P class="p2 ft2">&nbsp;</P></td>
	<td class="tr0 td4"><P class="p2 ft2">&nbsp;</P></td>
	<td class="tr0 td5"><P class="p2 ft2">&nbsp;</P></td>
	<td colspan=3 class="tr0 td6"><P class="p3 ft3">Sales Open Memo</P></td>
	<td class="tr0 td7"><P class="p2 ft2">&nbsp;</P></td>
</tr>
<tr>
	<td colspan=2 class="tr1 td0"><P class="p1 ft1" style="padding-bottom: 3px;"><?php echo $row->comp_Add2; ?></P></td>
	<td class="tr1 td1"><P class="p2 ft2">&nbsp;</P></td>
	<td class="tr1 td2"><P class="p2 ft2">&nbsp;</P></td>
	<td class="tr1 td3"><P class="p2 ft2">&nbsp;</P></td>
	<td class="tr1 td4"><P class="p2 ft2">&nbsp;</P></td>
	<td class="tr1 td5"><P class="p2 ft2">&nbsp;</P></td>
	<td colspan=3 rowspan=2 class="tr2 td6"><P class="p4 ft4">As On Date : <?php echo date("m/d/Y") ?></P></td>
	<td class="tr1 td7"><P class="p2 ft2">&nbsp;</P></td>
</tr>
<tr>
	<td rowspan=3 class="tr3 td8"><P class="p1 ft1" style="padding-bottom: 5px;"><?php echo $row->comp_Add3; ?></P>
	<P class="p1 ft1" style="padding-bottom: 5px;"><?php echo $row->ACREP_EMAIL; ?></P></td>
	<!-- <td rowspan=2 class="tr3 td9"><P class="p5 ft1">Fax: <NOBR>1-646-843-4966</NOBR></P></td> -->
	<td class="tr4 td1"><P class="p2 ft5">&nbsp;</P></td>
	<td class="tr4 td2"><P class="p2 ft5">&nbsp;</P></td>
	<td class="tr4 td3"><P class="p2 ft5">&nbsp;</P></td>
	<td class="tr4 td4"><P class="p2 ft5">&nbsp;</P></td>
	<td class="tr4 td5"><P class="p2 ft5">&nbsp;</P></td>
	<td class="tr4 td7"><P class="p2 ft5">&nbsp;</P></td>
</tr>

<tr>
	<td class="tr5 td1"><P class="p2 ft6">&nbsp;</P></td>
	<td class="tr5 td2"><P class="p2 ft6">&nbsp;</P></td>
	<td class="tr5 td3"><P class="p2 ft6">&nbsp;</P></td>
	<td class="tr5 td4"><P class="p2 ft6">&nbsp;</P></td>
	<td class="tr5 td5"><P class="p2 ft6">&nbsp;</P></td>
	<td class="tr5 td10"><P class="p2 ft6">&nbsp;</P></td>
	<td class="tr5 td11"><P class="p2 ft6">&nbsp;</P></td>
	<td class="tr5 td12"><P class="p2 ft6">&nbsp;</P></td>
	<td class="tr5 td7"><P class="p2 ft6">&nbsp;</P></td>
</tr>
<tr>
	<td class="tr6 td13"><P class="p2 ft7">&nbsp;</P></td>
	<td class="tr6 td14"><P class="p2 ft7">&nbsp;</P></td>
	<td class="tr6 td15"><P class="p2 ft7">&nbsp;</P></td>
	<td class="tr6 td16"><P class="p2 ft7">&nbsp;</P></td>
	<td class="tr6 td17"><P class="p2 ft7">&nbsp;</P></td>
	<td class="tr6 td18"><P class="p2 ft7">&nbsp;</P></td>
	<td class="tr6 td19"><P class="p2 ft7">&nbsp;</P></td>
	<td class="tr6 td20"><P class="p2 ft7">&nbsp;</P></td>
	<td class="tr6 td21"><P class="p2 ft7">&nbsp;</P></td>
	<td class="tr6 td22"><P class="p2 ft7">&nbsp;</P></td>
	<td class="tr6 td23"><P class="p2 ft7">&nbsp;</P></td>
</tr>
<tr>
	<td class="tr7 td24"><P class="p6 ft8">Customer</P></td>
	<td class="tr7 td25"><P class="p2 ft2">&nbsp;</P></td>
	<td class="tr7 td26"><P class="p2 ft2">&nbsp;</P></td>
	<td class="tr7 td27"><P class="p2 ft2">&nbsp;</P></td>
	<td class="tr7 td28"><P class="p2 ft2">&nbsp;</P></td>
	<td class="tr7 td29"><P class="p2 ft2">&nbsp;</P></td>
	<td class="tr7 td30"><P class="p2 ft2">&nbsp;</P></td>
	<td class="tr7 td31"><P class="p2 ft2">&nbsp;</P></td>
	<td class="tr7 td32"><P class="p2 ft2">&nbsp;</P></td>
	<td class="tr7 td33"><P class="p2 ft2">&nbsp;</P></td>
	<td class="tr7 td34"><P class="p2 ft2">&nbsp;</P></td>
</tr>
<tr>
	<td class="tr8 td35"><P class="p7 ft8">Sales Rep.</P></td>
	<td class="tr8 td36"><P class="p8 ft1">Days</P></td>
	<td class="tr8 td37"><P class="p9 ft9">Stock#</P></td>
	<td class="tr8 td38"><P class="p10 ft9">Memo#</P></td>
	<td class="tr8 td39"><P class="p12 ft9">Memo Date</P></td>
	<td class="tr8 td40"><P class="p12 ft9">Answer Date </P></td>
	<td class="tr8 td41"><P class="p2 ft9"> Description</P></td>
	<td class="tr8 td42"><P class="p3 ft9">Cts.</P></td>
	<td class="tr8 td43"><P class="p13 ft9">Rap Price</P></td>
	<td class="tr8 td44"><P class="p14 ft9">Disc%</P></td>
	<td class="tr8 td45"><P class="p15 ft9">Net Amount</P></td>
</tr>
<?php foreach ($records as $valarr): ?>	
	<?php if ($old_cust != $valarr->NM_AC): ?>		
		<tr>
			<td colspan="4" class="tr3 td0"><P class="p16 ft9"><?php echo $old_cust = $valarr->NM_AC; $total_customer++; ?></P></td>
			<!-- <td class="tr3 td1"><P class="p2 ft2">&nbsp;</P></td>
			<td class="tr3 td2"><P class="p2 ft2">&nbsp;</P></td> -->
			<td class="tr3 td3"><P class="p2 ft2">&nbsp;</P></td>
			<td class="tr3 td4"><P class="p2 ft2">&nbsp;</P></td>
			<td class="tr3 td5"><P class="p2 ft2">&nbsp;</P></td>
			<td class="tr3 td10"><P class="p2 ft2">&nbsp;</P></td>
			<td class="tr3 td11"><P class="p2 ft2">&nbsp;</P></td>
			<td class="tr3 td12"><P class="p2 ft2">&nbsp;</P></td>
			<td class="tr3 td7"><P class="p2 ft2">&nbsp;</P></td>
		</tr>
	<?php endif ?>
	<tr>
		<td class="tr7 td8"><P class="p17 ft9"><?php echo $valarr->SN_ACREP; ?></P></td>
		<td class="tr7 td9"><P class="p18 ft9"><?php echo $valarr->Days; ?></P></td>
		<td class="tr7 td1"><P class="p9 ft9"><?php echo $valarr->SN_ITEM; ?></P></td>
		<td class="tr7 td2"><P class="p19 ft9"><?php echo $valarr->SN_DOCUMENT; ?></P></td>
		<td class="tr7 td3"><P class="p20 ft9"><?php echo $valarr->DT_DOC; ?></P></td>
		<td class="tr7 td4"><P class="p24 ft9"><?php echo $valarr->DT_DUE; ?></P></td>
		<td class="tr7 td5"><P class="p2 ft9"><NOBR><?php echo $valarr->NM_REMARK; ?></NOBR></P></td>
		<td class="tr7 td10"><P class="p21 ft9"><?php echo $valarr->CTS; ?></P></td>
		<td class="tr7 td11"><P class="p13 ft9"><?php echo $valarr->RapPrice; ?></P></td>
		<td class="tr7 td12"><P class="p22 ft9"><?php echo $valarr->Discount; ?></P></td>
		<td class="tr7 td7"><P class="p23 ft9"><?php echo $valarr->AM_NET; ?></P></td>
	</tr>
	<?php 
		$total_cts += $valarr->CTS; 
		$total_net_amount += $valarr->AM_NET; 
	?>
<?php endforeach ?>
<tr>
	<td class="tr10 td47"><P class="p2 ft11">&nbsp;</P></td>
	<td class="tr10 td48"><P class="p2 ft11">&nbsp;</P></td>
	<td class="tr10 td49"><P class="p2 ft11">&nbsp;</P></td>
	<td class="tr10 td50"><P class="p2 ft11">&nbsp;</P></td>
	<td class="tr10 td51"><P class="p2 ft11">&nbsp;</P></td>
	<td class="tr10 td52"><P class="p2 ft11">&nbsp;</P></td>
	<td class="tr10 td53"><P class="p2 ft11">&nbsp;</P></td>
	<td class="tr10 td54"><P class="p2 ft11">&nbsp;</P></td>
	<td class="tr10 td55"><P class="p2 ft11">&nbsp;</P></td>
	<td class="tr10 td56"><P class="p2 ft11">&nbsp;</P></td>
	<td class="tr10 td57"><P class="p2 ft11">&nbsp;</P></td>
</tr>
<tr>
	<td class="tr7 td8"><P class="p6 ft8">Total Customer : <?php echo $total_customer; ?></P></td>
	<td class="tr7 td9"><P class="p18 ft8">&nbsp;</P></td>
	<td class="tr7 td1"><P class="p9 ft9">&nbsp;</P></td>
	<td class="tr7 td2"><P class="p19 ft9">&nbsp;</P></td>
	<td class="tr7 td3"><P class="p20 ft10">&nbsp;</P></td>
	<td class="tr7 td4"><P class="p24 ft9">&nbsp;</P></td>
	<td class="tr7 td5"><P class="p2 ft9">&nbsp;</P></td>
	<td class="tr7 td10"><P class="p21 ft9"><?php echo $total_cts; ?></P></td>
	<td class="tr7 td11"><P class="p13 ft9">&nbsp;</P></td>
	<td class="tr7 td12"><P class="p22 ft10">&nbsp;</P></td>
	<td class="tr7 td7"><P class="p23 ft9"><?php echo $total_net_amount ?></P></td>
</tr>
</table>
</div>
</body>
</HTML>
