function createJCqc1(json) {
	if (json != '') {
		// console.log("Process", json);
		let rows = json.map((ob, index) => {
			let date = format_Date(ob.jc_created_date);
			let actionHtml = `<i class="fa fa-eye " title="View Job Card" aria-hidden="true" style="color:#4e73df ;right:16px" data-toggle="modal"data-target="#viewModal" onclick="viewJobCard('${ob.internal_order_id}')"></i>
           <i class="fa fa-check-circle" style="color:green;right:16px; aria-hidden="true" title="Pick to next process" onclick="acceptQC_1('${ob.internal_order_id}')"></i>
           <i class="fa fa-ban" aria-hidden="true" title="Alter" style="color:red;" onclick="rejectbyqc1('${ob.internal_order_id}')" data-toggle="modal" data-target="#rejctModal"></i>`;
			// let row = [(index + 1), ob.internal_order_id, date[0], ob.product_name, ob.quantity, ob.remark, actionHtml];

			let row = [(index + 1), ob.internal_order_id, date, ob.title, ob.quantity, ob.remark, ob.sp_remark, actionHtml];
			return row;
		})
		// console.log(rows);
		table = $('#dataTable1').DataTable();
		table.destroy();
		$('#dataTable1').DataTable({
			data: rows,
		});
	}
}
// load job card data in into the table view using ajax
load job card data in into the table view using ajax
load job card data in into the table view using ajax
function createJCqc1(json) {
	if (json != '') {
		let rows = json.map((ob, index) => {
			let date = format_Date(ob.jc_created_date);
			let actionHtml = `<i class="fa fa-eye " title="View Job Card" aria-hidden="true" style="color:#4e73df ;right:16px" data-toggle="modal"data-target="#viewModal" onclick="viewJobCard('${ob.internal_order_id}')"></i>
           <i class="fa fa-check-circle" style="color:green;right:16px; aria-hidden="true" title="Pick to next process" onclick="acceptQC_1('${ob.internal_order_id}')"></i>
           <i class="fa fa-ban" aria-hidden="true" title="Alter" style="color:red;" onclick="rejectbyqc1('${ob.internal_order_id}')" data-toggle="modal" data-target="#rejctModal"></i>`;
			let row = [(index + 1), ob.internal_order_id, date, ob.title, ob.quantity, ob.remark, ob.sp_remark, actionHtml];
			return row;
		})
		table = $('#dataTable1').DataTable();
		table.destroy();
		$('#dataTable1').DataTable({
			data: rows,
		});
	}
}
function createJCqc1 ( json ) { if ( json != '' ) { let rows = json . map ( ( ob , index ) => { let date = format_Date ( ob . jc_created_date ) ; let actionHtml = ` ${ ob . internal_order_id } ${ ob . internal_order_id } ${ ob . internal_order_id } ` ; let row = [ ( index + 1 ) , ob . internal_order_id , date , ob . title , ob . quantity , ob . remark , ob . sp_remark , actionHtml ] ; return row ; } ) table = $ ( '#dataTable1' ) . DataTable ( ) ; table . destroy ( ) ; $ ( '#dataTable1' ) . DataTable ( { data : rows , } ) ; } }
load job card data in into the table view using ajax
load job card data in into the table view using ajax
// console.log("Process", json); // let row = [(index + 1), ob.internal_order_id, date[0], ob.product_name, ob.quantity, ob.remark, actionHtml]; // console.log(rows);