<?php include 'header1f.php';


?>    <script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>

<style>
/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox */
input[type=number] {
  -moz-appearance: textfield;
}

 
</style>
<?php include 'connection.php';
date_default_timezone_set('Asia/Calcutta');
$today = date("Y-m-d");
$today1 = date("d/m/Y");

$time = date("h:i A"); 
$currentyear = date("Y");
?>

<? 										   
													   							  
$month1=date("m");
if($month1>'3')
  {
  $currentyear = date("Y");
 $curr_full_year=date("Y");
$curr_short_year=date("y");
$future=$curr_short_year+1;
} else {
$currentyear1 = date("Y");
$currentyear = $currentyear1-1;
$curr_full_year1=date("Y");
 $curr_full_year=$curr_full_year1-1;
 $curr_short_year1=date("y");

$curr_short_year=$curr_short_year1-1;
$future=$curr_short_year+1;
}
?>

<?   $curr_fy=$currentyear .'-'. $future;?>

<?php
$currentmonth = date("m");

if($currentmonth>03) { 
$cuyear = date("y");
$cuyear1 = date("y")+1;

} else { 
$cuyear = date("y")-1;
$cuyear1 =  date("y");
 } 
 $fy_short_year = "$cuyear"."-"."$cuyear1";
?>
<?php 

$query = "select * from users where username = '". $_SESSION["LOGIN_NAME"]."' AND password = '".$_SESSION["EMPLOYEE_PASSWORD"]."'";
//echo $query;
		                 $result = mysql_query($query,$conn);
						 while($row=mysql_fetch_array($result))
	                                              	{
													  $staff_name = $row['full_name'];
													  $full_name = $row['full_name'];
													   $full_name11 = $row['full_name'];
													  $avatar = $row['avatar'];
													  $department_name = $row['department_name'];
													  $staff_id  = $row['id'];
													  $username = $row['username'];
													  $our_company = $row['our_company'];
													  $designation = $row['designation'];
													  $sales_group = $row['sales_group'];
													  $head = $row['head'];
													  $region = $row['region'];
													  $district = $row['district'];
													  $email = $row['email'];
													  $mobile_no = $row['mobile_no'];
													  $staff_id_self  = $row['id'];
													  //echo $Branch;
													  }	
													   ?>			
<?php
$currentmonth = date("m");

if($currentmonth>03) { 
$cuyear = date("y");
$cuyear1 = date("y")+1;

} else { 
$cuyear = date("y")-1;
$cuyear1 =  date("y");
 } 
$fy_short_year = "$cuyear"."-"."$cuyear1";
?>
	
  <div class="content-page">
    <div class="content">
      <div class="container">
        <div class="row">
          <div class="col-sm-12">
            <div class="page-header-title"><div class="clearfix"></div>
            </div>
          </div>
        </div>
								
													
       <form name="deptdetail" id="deptdetail" action="insert_direct_invoice_AI.php" method="post" enctype="multipart/form-data">
			<input  type="hidden" name="customer_id" value="<?php echo $_REQUEST['customer_id'];?>" />
			<input  type="hidden" name="inv_type" value="<?php echo $_REQUEST['inv_type'];?>" />
			<input  type="hidden" name="our_company_name" value="Threestar" />
			<input  type="hidden" name="f_year" value="<?php  if($currentmonth>03) { echo date("Y");?>-<?php echo date("y")+1; } else { echo date("Y")-1;?>-<?php echo date("y"); } ?>" />
				

		

		<div class="row">
                        <div class="col-sm-12">
                            <div class="panel panel-primary">
                                <div class="panel-heading">
                                    <h3 class="panel-title">INVOICE</h3>
									
									
									</h3></div>
									
									
									
									
                                <div class="panel-body">
                                    <div class="row">
                                      
												
														 
														 <div class="col-sm-3 col-xs-12">
                                           
                                            <div class="m-t-20">
                                               
                                                    <div class="form-group">
															 <label><b>Customer Name</b></label>
														<input type="hidden" value="NEW" name="id"> 
												
												<input type="text" name="NEW" class="form-control" value="CRESCENT SHIPPING AGENCY"  placeholder="Customer Name"  />
												
														 
														 
											  </div></div></div>
											  
											  
											   <div class="col-sm-2 col-xs-12">
                                           
                                            <div class="m-t-20">
                                               
                                                    <div class="form-group">
															 <label><b>City</b></label>
														<input type="hidden" value="NEW" name="id"> 
												
												<input type="text" name="city" class="form-control"  placeholder="City Name" value="Thane"  />
												</div>	</div></div>										   <div class="col-sm-2 col-xs-12">

																													 <label><b>Pincode</b></label>
 												<input type="text" name="pincode" class="form-control"  placeholder="City Name" value="400604"  />

														 
											  </div>
											  
											  	  <div class="clearfix"></div>
											   <div class="col-sm-3 col-xs-12">
                                           
                                            <div class="m-t-20">
                                               
                                                    <div class="form-group">
															 <label><b>Inv Nos.</b></label>
														
												             <input name="inv_no_c" type="text" class="form-control" value="">
														 
											  </div></div></div>
														 <div class="col-sm-3 col-xs-12">
                                           
                                            <div class="m-t-20">
                                               
                                                    <div class="form-group">
															 <label><b>Invoice Value.</b></label>
														
												             <input name="inv_value" type="text" class="form-control" value="">
														 
											  </div></div></div>
											  <div class="col-sm-3 col-xs-12">
                                           
                                            <div class="m-t-20">
                                               
                                                    <div class="form-group">
															 <label><b>Duty.</b></label>
														
												             <input name="duty" type="text" class="form-control" value="">
														 
											  </div></div></div>
														 
														 <div class="col-sm-3 col-xs-12">
                                           
                                            <div class="m-t-20">
                                               
                                                    <div class="form-group">
                                                         <label><b>No of Pkg :</b></label>
														<input type="text" name="no_of_pkg" class="form-control">
											  </div></div></div>
														 
														 
														 <div class="col-sm-3 col-xs-12">
                                            <div class="m-t-20">
                                                    <div class="form-group">
                                                         <label><b>Gross wt :</b></label>
														<input type="text" name="gross_wt" class="form-control">
											  </div></div></div>
											  
											   <div class="col-sm-3 col-xs-12">
                                            <div class="m-t-20">
                                                    <div class="form-group">
                                                         <label><b>B/E No :</b></label>
														<input type="text" name="b_e_no" class="form-control">
											  </div></div></div>
											   <div class="col-sm-3 col-xs-12">
                                            <div class="m-t-20">
                                                    <div class="form-group">
                                                         <label><b>B/E Date :</b></label>
														<input type="date" name="b_e_dt" class="form-control">
											  </div></div></div>
											    <div class="col-sm-3 col-xs-12">
                                            <div class="m-t-20">
                                                    <div class="form-group">
                                                         <label><b>MBL/HBL No :</b></label>
														<input type="text" name="mbl_no" class="form-control">
											  </div></div></div>
											   <div class="col-sm-3 col-xs-12">
                                            <div class="m-t-20">
                                                    <div class="form-group">
                                                         <label><b>MBL/HBL  Date :</b></label>
														<input type="date" name="mbl_dt" class="form-control">
											  </div></div></div>
											  
											  <div class="col-sm-3 col-xs-12">
                                            <div class="m-t-20">
                                                    <div class="form-group">
                                                         <label><b>Assess Value  :</b></label>
														<input type="text" name="ass_value" class="form-control">
											  </div></div></div>
											  
											 <div class="col-sm-3 col-xs-12">
                                            <div class="m-t-20">
                                                    <div class="form-group">
                                                         <label><b>Vessel No  :</b></label>
														<input type="text" name="vessel_no" class="form-control">
											  </div></div></div>
											  <div class="col-sm-3 col-xs-12">
                                            <div class="m-t-20">
                                                    <div class="form-group">
                                                         <label><b>Country  :</b></label>
														<input type="text" name="country" class="form-control">
											  </div></div></div>
														   
											  
											   <div class="col-sm-3 col-xs-12">
                                           
                                            <div class="m-t-20">
                                               
                                                    <div class="form-group">
                                                         <label><b>Aashrirvad Invoice No. :</b></label>
														 <? 
		$inv_type=$_REQUEST['inv_type'];
		?>
<input class="form-control" id="inv_no" name="inv_no" value="<?php echo $inv_no?>"  type="text" required>
<input name="inv_auto_no_new" value="<? echo $inv_auto_no_new?>" type="hidden">
<input name="fy_short_year" value="<? echo $fy_short_year?>" type="hidden">
														 
														
											  </div></div></div>
											  <div class="col-sm-3 col-xs-12">
                                           
                                            <div class="m-t-20">
                                               
                                                    <div class="form-group">
                                                         <label><b>INV Date</b></label>
													<input type="text" class="datepicker1 form-control"  name="inv_date" value="" required>
														 
														 
											  </div></div></div>
											  <div class="col-sm-3 col-xs-12">
                                           
                                            <div class="m-t-20">
                                               
                                                    <div class="form-group">
                                                         <label><b>JOB NO</b></label>
													<input type="text" class="form-control"  name="job_no" value="">
														 
														 
											  </div></div></div>
											
														     <div class="col-sm-3 col-xs-12">
                                           
                                            <div class="m-t-20">
                                               
                                                    <div class="form-group">
                                                         <label><b>GST No.</b></label>
														<input type="text" class="form-control"  name="gst_no" value="27AARPT5817F1Z6" required>
														 
														 
											  </div></div></div>
														
													
														
														 <div class="col-sm-3 col-xs-12">
                                           
                                            <div class="m-t-20">
                                               
                                                    <div class="form-group"> <label><b>State Code</b></label>
                                                        <input type="text" class="form-control"  name="state_code" value="27" required>
											  </div></div></div>
											  
											   <div class="col-sm-3 col-xs-12">
                                           
                                            <div class="m-t-20">
                                               
                                                    <div class="form-group"> <label><b>Container No</b></label>
                                                        <input type="text" class="form-control"  name="container_no">
											  </div></div></div>
											  
											  <div class="clearfix"></div>
											  
											  <div class="col-sm-6 col-xs-12">
                                           
                                            <div class="m-t-20">
                                               
                                                    <div class="form-group">
                                                         <label><b>Shipper</b></label>
														 <textarea name="shhiper" class="form-control" ></textarea>
														 
														 
											  </div></div></div>
											  
											  
											   <div class="col-sm-6 col-xs-12">
                                            <div class="m-t-20">
                                                    <div class="form-group">
													
													
												 <label><b>Address</b></label>
                                                 <textarea name="address" class="form-control">12TH FLOOR, UNIT NO. 1207, PLOT NO. C-1, OPAL SQUARE,
THANE, Thane, Thane, Maharashtra, 400604</textarea>
													      
                                                    </div>
                                                 </div></div>
													
											  
											  
											  
											  
											  
					<div class="col-sm-12 col-xs-12">
                                           			 <div class="m-t-20">
                                                    <div class="form-group"> <label><b>Description</b></label>
													
													 <textarea name="description" class="form-control" ></textarea></div></div></div>
											
											
											
									<div class="col-sm-12 col-xs-12">
                                           			 <div class="m-t-20">
                                                    <div class="form-group">
												 <table>	<tr>
    <td> <a class="btn btn-sm btn-primary add-more" onClick="callAddContact2();" title="Click to add Contacts">
									<span class="glyphicon glyphicon-plus"></span>&nbsp;Add Services
								</a>&nbsp;&nbsp;&nbsp;&nbsp;<a class="btn btn-sm btn-danger add-more" onClick="delRow();" title="Click to remove">
								  <span class="glyphicon glyphicon-remove"></span>&nbsp;Del							</a>	</td>
  </tr>
</table><br>
	
				  <input  type="hidden" name="Job_Dt" value="<?php echo $Job_Dt?>" />
				<input  type="hidden" name="Job_No" value="<?php echo $Job_No?>" />
				<input  type="hidden" name="job_regautono" value="<?php echo $_REQUEST['Job_No'];?>" />
				


			  <table class="table table-bordered" id="cntTable2">
							
								<tr bgcolor="#C5DFFA" >
								
								
									<td width="100px" height="28"valign="middle" nowrap="nowrap" ><div align="left" style="padding-left:5px;"><strong>Sr.No.</strong></div></td>
									<td  height="28"valign="middle" nowrap="nowrap" ><div align="left" style="padding-left:5px;"><strong>Expenses for</strong></div></td>
									<td  height="28"valign="middle" nowrap="nowrap" ><div align="left" style="padding-left:5px;"><strong>Exp. details if any</strong></div></td>
									<td  height="28"valign="middle" nowrap="nowrap" ><div align="left" style="padding-left:5px;"><strong>Paid by Party</strong></div> </td>
									<td  height="28"valign="middle" nowrap="nowrap" ><div align="left" style="padding-left:5px;"><strong>Non Taxable</strong></div> </td>
									<td  height="28"valign="middle" nowrap="nowrap" ><div align="left" style="padding-left:5px;"><strong>Taxable</strong></div> </td>
									

									
			                      
									 
							</tr>
							</thead>
							<tbody> <input id="allcontypes" name="allcontypes" value="Decision Maker~^~Influencer~^~Recommender~^~User~^~Purchase Officer" type="hidden">
						<input name="cntlnos" id="cntlnos" value="" type="hidden">
						<input name="cntcount2" id="cntcount2" value="" type="hidden">
						<input name="cntdelids" id="cntdelids" value="" type="hidden">

							</tbody>
						</table>
													 </div></div></div>						  
													
											
<div class="col-sm-12 col-xs-12"><div class="m-t-20">
                                                    <div class="form-group">
													
													
													<input type="submit" name="PRO_ADD" value="SAVE" class="btn btn-sm btn-primary add-more"   id="prod_check"/>
                                                    </div>
                                                    </div></div>	
				</div>

										
		
				
										
														
														 
										              
                                                    
                                        
                              </div>
                                </div>
                            </div>
                        </div></div>
                    </form>
   
		  <script type="text/Javascript">
	function callAddContact2()
	{
	
   var tbl = document.getElementById('cntTable2');
	 var lastRow = tbl.rows.length;
	 // if there's no header row in the table, then iteration = lastRow + 1
	 var iteration = lastRow;
	 var row = tbl.insertRow(lastRow);
	 var node1;
	 var lineno = lastRow;
	 // cell 0
	 var cellLeft = row.insertCell(0);
	 cellLeft.className = "center";
		var node = document.createElement('span');
		node.className = "glyphicon glyphicon-remove";
		node.title="Delete line";
		var link = document.createElement("a");
		link.className = "btn bg-btn-delete";
		link.style.padding = "0px 2px";
		link.href="javascript:callRemoveContact("+lineno+");";
		link.appendChild(node);
		//cellLeft.appendChild(link);
	 
	 node = document.createElement("input");
	 node.type = 'hidden';
	 node.name = 'cid'+lineno;
	 node.value = '';
	 node.id = 'cid'+lineno;
	 cellLeft.appendChild(node);
	 node = document.createElement("input");
	 node.type = 'text';
	 node.style.width = "50px";
	
	 node.name = 'clinenum'+lineno;
	 node.value = lineno;
	 node.readOnly = true;
	 node.id = 'clinenum'+lineno;
	 cellLeft.appendChild(node);
	 
	 
	 
	 var cell1 = row.insertCell(1); 
    var nodegend = document.createElement('select');
    nodegend.className = 'form-control';
 nodegend.name = "HSN_code"+lineno;
 nodegend.id = "HSN_code"+lineno;
 nodegend.required='true';
 var opt = nodegend.options;
 opt[opt.length] = new Option('Select','');
 <?php $query21 = "select * from HSN_code_master order by HSN_code";
      // echo $query21;
       $result21 = mysql_query($query21,$conn);
       $total = mysql_num_rows($result21);
        while($row=mysql_fetch_array($result21))
           {
$services_name = $row['services_name'];
$HSN_code = $row['HSN_code'];
 ?>
opt[opt.length] = new Option('<? echo $HSN_code ?>','<? echo $HSN_code ?>');
<? } ?>
cell1.appendChild(nodegend);
	  var linebreak = document.createElement("br");
	 cell1.appendChild(linebreak);  
	 
    var node = document.createElement('textarea');
	node.id = '';
	node.className = 'form-control';
	node.name = 'services_name'+lineno;
	node.value = "";
	node.type = 'text';
	 node.required='true';

	node.placeholder='Services Details';
	cell1.appendChild(node);

	 
	
	 var cell2 = row.insertCell(2); 
    var node = document.createElement('input');
    node.className = 'form-control';
	 node.type = 'text';	
	 node.name = 'rcpt_no'+lineno;
	 node.placeholder='Rcpt No';
	 node.value = "";
	 node.id = '';
	 cell2.appendChild(node);
	 var linebreak = document.createElement("br");
	 cell2.appendChild(linebreak);  
	 
    var node = document.createElement('input');
	node.id = '';
	node.className = 'form-control datepicker1';
	node.name = 'rcpt_date'+lineno;
	node.value = "";
	node.type = 'text';
	node.placeholder='Rcpt Date';
	cell2.appendChild(node);

 var linebreak = document.createElement("br");
	 cell2.appendChild(linebreak);
	 
	  
    var node = document.createElement('input');
    node.className = 'form-control';
	 node.type = 'text';	
	 node.name = 'rcpt_amt'+lineno;
	 node.placeholder='Rcpt Amt';
	 node.value = "";
	 node.id = '';
	 cell2.appendChild(node);
	
	
	
	 
	  var cell3 = row.insertCell(3);
	  
	 node = document.createElement("input");
	 node.className = 'form-control';
	 node.type = 'text';	
	 node.name = 'paid_by_party'+lineno;
	 node.placeholder='Paid by Party';
	 node.value = "";
	 node.id = '';
	 cell3.appendChild(node);
	 
	 
	 
	  var cell4 = row.insertCell(4);
	  
	 node = document.createElement("input");
	 node.className = 'form-control';
	 node.type = 'text';	
	 node.name = 'non_taxable'+lineno;
	 node.placeholder='Non Taxable';
	 node.value = "";
	 node.id = '';
	 cell4.appendChild(node);
	 
	  var node = document.createElement('input');
   
	 node.type = 'checkbox';	
	 node.name = 'pure_agent'+lineno;
	 node.value='YES';
	 
	
	var t = document.createTextNode("Pure agent");       // Create a text node
	cell4.appendChild(t);  
	var strs=document.createTextNode('\u00A0\u00A0\u00A0')    // Create a text node
	cell4.appendChild(strs);  
	cell4.appendChild(node);
	
	var linebreak = document.createElement("br");
	cell4.appendChild(linebreak);  
	 
	  var cell5 = row.insertCell(5);
	  
	 node = document.createElement("input");
	 node.className = 'form-control';
	 node.type = 'text';	
	 node.name = 'taxable'+lineno;
	 node.placeholder='Taxable';
	 node.value = "";
	 node.id = '';
	 cell5.appendChild(node);
	
	
		
		
	document.getElementById('cntcount2').value = lineno;
	document.getElementById('sigthseeing').style.visibility='visible';
	
}function delRow()
{

    var tableName = document.getElementById('cntTable2');

    var prev = tableName.rows.length;

    if(prev > 1)

{
    

/////////////////////////////////////////////////////////////////////////////////////
   
	 // if there's no header row in the table, then iteration = lastRow + 1
	
	 var row = document.getElementById('cntTable2').deleteRow(prev-1);
	 
	 }
	 var node1;
	  var iteration = lastRow;
	 var lastRow = tableName.rows.length;
	 var lineno = lastRow;
document.getElementById('cntcount2').value = lineno-1;




}
</script>
		
		
        
      </div>
    </div>
	
 <script src="vendors/bower_components/bootstrap/dist/js/bootstrap.min.js"></script>
        <script type="text/javascript" src="vendors/bower_components/moment/min/moment-with-locales.min.js"></script>
        <script src="vendors/bower_components/mjolnic-bootstrap-colorpicker/dist/js/bootstrap-colorpicker.min.js"></script>
        <script src="vendors/bower_components/switchery/dist/switchery.min.js"></script>
        <script src="vendors/bower_components/select2/dist/js/select2.full.min.js"></script>
        <script src="vendors/bower_components/bootstrap-select/dist/js/bootstrap-select.min.js"></script>
        
        <!-- Bootstrap Tagsinput JavaScript -->
        <script src="vendors/bower_components/bootstrap-tagsinput/dist/bootstrap-tagsinput.min.js"></script>
        
        <!-- Bootstrap Touchspin JavaScript -->
        <script src="vendors/bower_components/bootstrap-touchspin/dist/jquery.bootstrap-touchspin.min.js"></script>
        
        <!-- Multiselect JavaScript -->
        <script src="vendors/bower_components/multiselect/js/jquery.multi-select.js"></script>
        
         
        <!-- Bootstrap Switch JavaScript -->
        <script src="vendors/bower_components/bootstrap-switch/dist/js/bootstrap-switch.min.js"></script>
        
        <!-- Bootstrap Datetimepicker JavaScript -->
        <script type="text/javascript" src="vendors/bower_components/eonasdan-bootstrap-datetimepicker/build/js/bootstrap-datetimepicker.min.js"></script>

        
        <!-- Form Advance Init JavaScript -->
        <script src="dist/js/form-advance-data.js"></script>
        
        <!-- Slimscroll JavaScript -->
        <script src="dist/js/jquery.slimscroll.js"></script>
    
        <!-- Fancy Dropdown JS -->
        <script src="dist/js/dropdown-bootstrap-extended.js"></script>
        
        <!-- Owl JavaScript -->
        <script src="vendors/bower_components/owl.carousel/dist/owl.carousel.min.js"></script>
    
        <!-- Init JavaScript -->
        <script src="dist/js/init.js"></script>   <script src="assets/js/bootstrap.min.js"></script>
	<!-- Select2 JavaScript -->
		<script src="vendors/bower_components/select2/dist/js/select2.full.min.js"></script>
		
		<!-- Bootstrap Select JavaScript -->
		<script src="vendors/bower_components/bootstrap-select/dist/js/bootstrap-select.min.js"></script>
<script src="assets/js/bootstrap.min.js"></script>
<script src="assets/js/modernizr.min.js"></script>
<script src="assets/js/detect.js"></script>
<script src="assets/js/fastclick.js"></script>
<script src="assets/js/jquery.slimscroll.js"></script>
<script src="assets/js/jquery.blockUI.js"></script>
<script src="assets/js/waves.js"></script>
<script src="assets/js/wow.min.js"></script>
<script src="assets/js/jquery.nicescroll.js"></script>
<script src="assets/js/jquery.scrollTo.min.js"></script>
<script src="assets/js/app.js"></script>
</body>
<!-- Mirrored from themesdesign.in/xadmino/form-elements.html by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 03 Feb 2021 12:05:08 GMT -->
</html>