function create_PA_CompleteJobCard(json) {
	// console.log("Complete", json);
	if (json != '') {
		let rows = json.map((ob, index) => {
			let date = ob.created_date.split(" ");
			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="view_PA_JobCard('${ob.card_id}')"></i>`;;
			let row = [ob.pa_no, ob.card_id, date[0], ob.m_sku, ob.title, ob.quantity, ob.size, ob.colour, ob.remark, actionHtml];
			return row;
		})
		// console.log(rows);
		table = $('#dataTable_PA').DataTable();
		table.destroy();
		$('#dataTable_PA').DataTable({
			data: rows,
		});
	}
}
// common functon to load records into the table from database in all PA complete job cards
common functon to load records into the table from database in all PA complete job cards
common functon to load records into the table from database in all PA complete job cards
function create_PA_CompleteJobCard(json) {
	if (json != '') {
		let rows = json.map((ob, index) => {
			let date = ob.created_date.split(" ");
			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="view_PA_JobCard('${ob.card_id}')"></i>`;;
			let row = [ob.pa_no, ob.card_id, date[0], ob.m_sku, ob.title, ob.quantity, ob.size, ob.colour, ob.remark, actionHtml];
			return row;
		})
		table = $('#dataTable_PA').DataTable();
		table.destroy();
		$('#dataTable_PA').DataTable({
			data: rows,
		});
	}
}
function create_PA_CompleteJobCard ( json ) { if ( json != '' ) { let rows = json . map ( ( ob , index ) => { let date = ob . created_date . split ( " " ) ; let actionHtml = ` ${ ob . card_id } ` ; ; let row = [ ob . pa_no , ob . card_id , date [ 0 ] , ob . m_sku , ob . title , ob . quantity , ob . size , ob . colour , ob . remark , actionHtml ] ; return row ; } ) table = $ ( '#dataTable_PA' ) . DataTable ( ) ; table . destroy ( ) ; $ ( '#dataTable_PA' ) . DataTable ( { data : rows , } ) ; } }
common functon to load records into the table from database in all PA complete job cards
common functon to load records into the table from database in all PA complete job cards
// console.log("Complete", json); // console.log(rows);