function backend_job_card(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 text-success" aria-hidden="true"  title="Pass" onclick="update('${ob.internal_order_id}')"></i>
	   						  <i class="fa fa-ban" aria-hidden="true" title=" Send back to seller" style="color:red;" onclick="rejectbyqc1('${ob.internal_order_id}')" data-toggle="modal" data-target="#rejctModal"></i>`;
			let row = [(index + 1), date, ob.internal_order_id, ob.title, ob.quantity, ob.remark, ob.sp_remark, actionHtml];
			return row;
		})
		table = $('#dataTable1').DataTable();
		table.destroy();
		$('#dataTable1').DataTable({
			data: rows,
		});
	}

}
// loading job card in backend process
loading job card in backend process
loading job card in backend process
function backend_job_card(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 text-success" aria-hidden="true"  title="Pass" onclick="update('${ob.internal_order_id}')"></i>
	   						  <i class="fa fa-ban" aria-hidden="true" title=" Send back to seller" style="color:red;" onclick="rejectbyqc1('${ob.internal_order_id}')" data-toggle="modal" data-target="#rejctModal"></i>`;
			let row = [(index + 1), date, ob.internal_order_id, ob.title, ob.quantity, ob.remark, ob.sp_remark, actionHtml];
			return row;
		})
		table = $('#dataTable1').DataTable();
		table.destroy();
		$('#dataTable1').DataTable({
			data: rows,
		});
	}
}
function backend_job_card ( 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 ) , date , ob . internal_order_id , ob . title , ob . quantity , ob . remark , ob . sp_remark , actionHtml ] ; return row ; } ) table = $ ( '#dataTable1' ) . DataTable ( ) ; table . destroy ( ) ; $ ( '#dataTable1' ) . DataTable ( { data : rows , } ) ; } }
loading job card in backend process
loading job card in backend process