<div style="height:20px;">
	
</div>
<input type="hidden" id="hdnidinv_bl_summary" value="<?php echo $nobl; ?>"/>
<input type="hidden" id="hdntginv_bl_summary" value="<?php echo $tgbl; ?>"/>
<input type="hidden" id="hdnq" value="<?php echo $q; ?>"/>
<table id="tblinv_draft_dtl_summary"></table> <div id="ptblinv_draft_dtl_summary"></div>
<br />
Apabila data unknown silahkan tambahkan part pada part hs. Bisa juga dilakukan setelah di proses.
<script type="text/javascript">
    
    $(document).ready(function(){
		var form_dt ={'q':$("#hdnq").val(), 'nobl':$("#hdnidinv_bl_summary").val(), 'tgbl':$("#hdntginv_bl_summary").val()} 
		jQuery("#tblinv_draft_dtl_summary").jqGrid({
			url:'<?php echo base_url().'exim/ct_inv_detil_draft/loaddatasummary'; ?>',
			mtype : "post",
			postData:form_dt,
			datatype: "json",
			colNames:['ID','kode barang' ,'Part Name','Sum Of Qty', 'Unit', 'Sum of Price','Sum Amount and Qty','Sum of Box'],
			colModel:[
				{name:'id',index:'id', width:60, hidden:true},
				{name:'kode_barang',index:'kode_barang', width:50, hidden:false},
				{name:'part_name',index:'part_name', width:108},
				{name:'sumqty',index:'sumqty', width:75, hidden:false, hidden:false, align:'right', formatter:'number'},
				{name:'r7',index:'r7', width:50, hidden:false},
				{name:'sumamount',index:'sumamount', width:95, hidden:false, hidden:false, align:'right', formatter:'number'},
				{name:'sumprice',index:'sumprice', width:115, hidden:false, hidden:false, align:'right', formatter:'number'},
				{name:'sumbox',index:'sumbox', width:67, hidden:false, hidden:false, align:'right', formatter:'number'},
				
				
				
			],
			rowNum:15,
			rowList:[15,30,40],
			pager: '#ptblinv_draft_dtl_summary',
			sortname: 'part_name',
			viewrecords: true,
			sortorder: "asc",
			width: 570,
			height:320,
			jsonReader: { repeatitems : false },
			caption:"INVOICE ITEMS DATA SUMMARY",
			rownumbers: true,
			shrinkToFit: false,
			afterInsertRow: function(){
				
				
			}
		}); 
			
                        
		jQuery("#tblinv_draft_dtl_summary").jqGrid('navGrid','#ptblinv_draft_dtl_summary',{del:false,add:false,edit:false},{},{},{},{multipleSearch:false});

	});
		  	
</script>


	
	