function loadAlterdJobCard(json) {
	// console.log("Complete", 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>`;;
			// let row = [(index + 1), ob.internal_order_id, date[0], ob.product_name, ob.quantity, actionHtml];

			let row = [(index + 1), date, ob.order_id, ob.internal_order_id, ob.title, ob.quantity, ob.remark, actionHtml];
			return row;
		})
		// console.log(rows);
		table = $('#dataTable').DataTable();
		table.destroy();
		$('#dataTable').DataTable({
			data: rows,
		});
	}
}
// common functon to load records into the table from database in all complete job cards
common functon to load records into the table from database in all complete job cards
common functon to load records into the table from database in all complete job cards
function loadAlterdJobCard(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>`;;
			let row = [(index + 1), date, ob.order_id, ob.internal_order_id, ob.title, ob.quantity, ob.remark, actionHtml];
			return row;
		})
		table = $('#dataTable').DataTable();
		table.destroy();
		$('#dataTable').DataTable({
			data: rows,
		});
	}
}
function loadAlterdJobCard ( json ) { if ( json != '' ) { let rows = json . map ( ( ob , index ) => { let date = format_Date ( ob . jc_created_date ) ; let actionHtml = ` ${ ob . internal_order_id } ` ; ; let row = [ ( index + 1 ) , date , ob . order_id , ob . internal_order_id , ob . title , ob . quantity , ob . remark , actionHtml ] ; return row ; } ) table = $ ( '#dataTable' ) . DataTable ( ) ; table . destroy ( ) ; $ ( '#dataTable' ) . DataTable ( { data : rows , } ) ; } }
common functon to load records into the table from database in all complete job cards
common functon to load records into the table from database in all complete job cards
// console.log("Complete", json); // let row = [(index + 1), ob.internal_order_id, date[0], ob.product_name, ob.quantity, actionHtml]; // console.log(rows);