<?php
	include('common/header.php');
?>
<style>
	.text-color-label{
		color: #212020;
		font-weight: bold;
	}
	.text-color-value{
		color: #30397d;
	}
	.table .table-bordered{
		border: 1px solid #212020 !important;
	}
</style>
		<div class="">
			<div class="col-xm-12">
				<div class="widget-box light-border">
					<div class="widget-header header-color-grey">
						<h4 class="smaller">
							<?php echo ucfirst($purpose);?> Invoice
						</h4>
					</div>

					<div class="widget-body">
						<div class="widget-main">
							<div class="row">
								<div class="col-sm-12 table-responsive">
									<table  cellspacing="0" width="100%" class="table table-bordered dataTable no-footer" style="">
										<thead>
											<tr>
												<th colspan="4" class="text-color-label">GSTIN NO : 27AARPP7036L1ZY</th>
												<th colspan="6" class="text-right text-color-label"> ORIGINAL FOR RECEIPIENT<br>DUPLICATE FOR TRANSPORTER<br>TRIPLICATE FOR SUPPLIER</th>
											</tr>	
										
											<tr>
												<th colspan="9" class="text-center text-color-label">BILL TO PARTY</th>
											</tr>
										</thead>	
										<tbody>
											<tr>
												<td class="text-color-label">Name :</td>
												<td colspan="3" class="text-color-value">Kritika Corporation</td>
												<td class="text-color-label">Invoice No :</td>
												<td colspan="4" class="text-color-value">9501</td>
											</tr>
											<tr>
												<td rowspan="4" valign="top" class="text-color-label">Address :</td>
												<td rowspan="4" valign="top" colspan="3" class="text-color-value">JSD Road Mulund</td>
												<td class="text-color-label">Invoice Date :</td>
												<td colspan="4" class="text-color-value">24/07/2017</td>
											</tr>
											<tr>
												<td class="text-color-label">Dispatched From :</td>
												<td colspan="4" class="text-color-value">Mulund</td>
											</tr>
											<tr>
												<td class="text-color-label">Dispatched To :</td>
												<td colspan="4" class="text-color-value">Thane</td>
											</tr>
											<tr>
												<td class="text-color-label">Vehicle No :</td>
												<td colspan="4" class="text-color-value">MH - 123123</td>
											</tr>
											<tr>
												<td class="text-color-label">Party GSTIN NO. :</td>
												<td colspan="3" class="text-color-value">27ADHFS8855P2ZY</td>
												<td class="text-color-label">State :</td>
												<td colspan="2" class="text-color-value">Maharashtra</td>
												<td class="text-color-label">State Code :</td>
												<td class="text-color-value">02</td>
											</tr>
											<tr>
												<td colspan="9">&nbsp;</td>
											</tr>
										</tbody>	
										<thead>		
											<tr>
												<th class="text-color-label">Sr No</th>
												<th class="text-color-label">Item Description</th>
												<th class="text-color-label">HSN Code</th>
												<th class="text-color-label">Qty Pieces</th>
												<th class="text-color-label">Volumn</th>
												<th class="text-color-label">CBM/CFT</th>
												<th class="text-color-label">Rate</th>
												<th class="text-color-label">Payment Received</th>
												<th class="text-color-label">Amount (IN INR)</th>
											</tr>	
										</thead>
										<tbody>	
											<tr>
												<td class="text-color-value">1</td>
												<td class="text-color-value">Teak Round Logs 1</td>
												<td class="text-color-value">4403</td>
												<td class="text-color-value">1000</td>
												<td class="text-color-value">10</td>
												<td class="text-color-value">CBM</td>
												<td class="text-color-value">100.000</td>
												<td class="text-color-value">No</td>
												<td class="text-color-value amt">100000.000</td>
											</tr>
											<tr>
												<td class="text-color-value">2</td>
												<td class="text-color-value">Teak Round Logs 2</td>
												<td class="text-color-value">4404</td>
												<td class="text-color-value">1360</td>
												<td class="text-color-value">10</td>
												<td class="text-color-value">CBM</td>
												<td class="text-color-value">100.000</td>
												<td class="text-color-value">No</td>
												<td class="text-color-value amt">136000.000</td>
											</tr>
											<tr>
												<td rowspan="2" class="text-color-label"><b>Amount in Words</b></td>
												<td colspan="3" rowspan="2" class="text-color-value">Two Lakh Thirty Six Thousand Only</td>
												<td colspan="4" class="text-center text-color-label"><b>TOTAL SALE VALUE</b></td>
												<td class="total_sale_val text-color-value">236000.000</td>
											</tr>
											<tr>
												<td colspan="3" class="text-center text-color-label"><b>Add CGST @</b></td>
												<td class="text-color-label mgst"><b>9%</b></td>
												<td class="text-color-value cgst">21240.000</td>
											</tr>
											<tr>
												<td rowspan="2" colspan="4">Payment Condition : 25% of total bill amount <b>Rs. 59000</b> <p>&nbsp;</p>to be paid within 5 days from date of invoice <b>24/07/2017</b></td>
												<td colspan="3" class="text-center text-color-label"><b>Add SGST @</b></td>
												<td class="text-color-label mgst"><b>9%</b></td>
												<td class="text-color-value sgst">21240.000</td>												
											</tr>
											<tr>
												<td colspan="3" class="text-center text-color-label"><b>Add IGST @</b></td>
												<td class="text-color-label igst"><b>18%</b></td>
												<td class="text-color-value igst">0.000</td>
											</tr>
											<tr>
												<td colspan="4" class="text-center text-color-label"><b>Terms & Conditions : - </b></td>
												<td colspan="4" class="text-right text-color-label"><b>TOTAL SALE VALUE WITH GST</b></td>
												<td class="text-color-value total_sale_gst_val">278480.000</td>
											</tr>
											<tr>
												<td colspan="4" class="text-color-label"><b>Balance 75% Payment Immediately Due On :- </b></td>
												<td colspan="6" rowspan="4"><b><p class="text-right text-color-label"> For Gurudev Corporation</p><p>&nbsp;</p><p>&nbsp;</p><p>&nbsp;</p><p>&nbsp;</p><p class="text-right text-color-label"> Authorised Signatory</p></b></td>
											</tr>
											<tr>
												<td colspan="4" class="text-color-label"><b>24% Interest will be charged on this invoice not paid on due date </b></td>
											</tr>
											<tr>
												<td colspan="4" class="text-color-label"><b>Our Responsibility Ceases as soon as goods leave our premises. </b></td>
											</tr>
											<tr>
												<td colspan="4" class="text-color-label"><b>No Quality or Measurement shortage claim shall be entertained thereafter </b></td>
											</tr>
										</tbody>
									</table>
								</div>
							</div>
					   </div>	
					</div>
				</div>
				<div class="space-4"></div>

				</div>
			</div>
      	<!-- /.col -->
		</div>
		<div class="clearfix form-actions">
			<div class="col-md-offset-5 col-md-5">
				<button class="btn btn-info" type="button" onclick="javascript:history.go(-1);">
					Back
				</button>
				<?php if($purpose=='view'){ ?>
				<button class="btn btn-info" type="button">
					Print
				</button>
				<?php } ?>
				<?php if($purpose=='confirm'){ ?>
				<button class="btn btn-info" type="button">
					Confirm Invoice
				</button>
				<?php } ?>
			</div>
		</div>
		<div class="space-4"></div>
		<!-- /.page-row -->
        <!-- /.page-content --> 
      </div>
      <!-- /.main-content --> 
      
    </div>
    <!-- /#ace-settings-container --> 
  </div>
  
  <!-- /.main-container-inner --> 
 <script type="text/javascript">
$(document).ready(function() {
    $('form:first *:input[type!=hidden]:first').focus();
	get_cal();
});
function get_cal(){
	
}
</script>	

<?php
	include('common/footer.php');
?>