<?php
	require('../config/dbcon.php');//connect
	if(isset($_POST['add'])){
		$partno=$_POST['partno'];
		$description_one=$_POST['description_one'];		
		$description_two=$_POST['description_two'];
		$hsn_code=$_POST['hsn_code'];
		$qty=$_POST['qty'];
		$list=$_POST['list'];
		$segment=$_POST['segment'];
		$disc_per=$_POST['disc_per'];
		$disc_amt=$_POST['disc_amt'];
		$list_value=$_POST['list_value'];
		$rate_one=$_POST['rate_one'];
		$sales_val=$_POST['sales_val'];
		$sgst_per=$_POST['sgst_per'];
		$sgst_amt=$_POST['sgst_amt'];
		$cgst_per=$_POST['cgst_per'];
		$cgst_amt=$_POST['cgst_amt'];
		$igst_per=$_POST['igst_per'];
		$igst_amt=$_POST['igst_amt'];
		$inv_val=$_POST['inv_val'];
		$cost=$_POST['cost'];
		$cost_val=$_POST['cost_val'];
		mysqli_query($connect,"insert into pinvtemp_mst(partno, description_one,description_two,hsn_code,qty,list,segment,disc_per,disc_amt,list_value,rate_one,sales_val,sgst_per,sgst_amt,cgst_per,cgst_amt,igst_per,igst_amt,inv_val,cost,cost_val) values ('$partno', '$description_one', '$description_two', '$hsn_code', '$qty', '$list', '$segment', '$disc_per', '$disc_amt', '$list_value', '$rate_one', '$sales_val', '$sgst_per', '$sgst_amt', '$cgst_per', '$cgst_amt', '$igst_per', '$igst_amt', '$inv_val', '$cost', '$cost_val')");
	}
?>