%{#
    Copyright (c) 2015 Chintalagiri Shashank
    Released under the MIT license
%#}
\documentclass[fontsize=8pt, DIV=14, twoside, titlepage=false]{scrartcl}
\usepackage[hmarginratio=1:1]{geometry}
\usepackage[utf8]{inputenc}
\usepackage{}
\usepackage{graphicx}
\usepackage{tabularx}
\usepackage{ltablex}
\usepackage{array}
\usepackage{multicol}
\usepackage{colortbl}
\usepackage{tfrupee}
\pdfmapfile{=tfrupee.map}
\usepackage{lastpage}

\newcommand{\sno}{%{{stage.sno%}}}
\newcommand{\invno}{%{{stage.inv_no%}}}

\usepackage[%
  automark,
  headsepline,                %% Separation line below the header
  footsepline,               %% Separation line above the footer
  markuppercase
]{scrpage2}

\lehead{\includegraphics[width=0.12in]{%{{stage.logo%}}}\hspace{0.01in} \tt %{{stage.company%}}}    %% Top left on odd pages
\rohead{\tt %{{stage.company%}}\hspace{0.1in}\includegraphics[width=0.12in]{%{{stage.logo%}}}}      %% Top right on even pages
\lohead{{\small HS Section Verification } \sno}    %% Top left on odd pages
\rehead{{\small HS Section Verification } \sno}    %% Top right on even pages
\chead{}                       %% Top center
\cfoot{Page \thepage\ of \pageref{LastPage}}

\title{HS Section Verification}
\subtitle{for %{{stage.given_data.supplier_name%}} Invoice No \invno, generated on \today}
\author{}
\date{}

\makeatletter
\renewcommand{\@maketitle}{
\begin{center}
  \ifx\@subject\@empty \else
    {\subject@font \@subject \par}
  \fi
  \titlefont\huge \@title\par
  \ifx\@subtitle\@empty \else
    {\normalsize \@subtitle \par}
  \fi
\end{center}
}
\makeatother

%opening
\begin{document}
\pagestyle{scrheadings}
\maketitle
\thispagestyle{scrheadings}
\begin{center}

\keepXColumns
\small

\renewcommand{\arraystretch}{1.25}
\begin{tabularx}{1.0\textwidth}{|>{\centering\arraybackslash}p{0.03\textwidth}|>{\raggedright\arraybackslash}p{0.18\textwidth}|>{\centering\arraybackslash}p{0.28\textwidth}|>{\raggedleft\arraybackslash}p{0.18\textwidth}|>{\centering\arraybackslash}X|}
  \hline
  \rowcolor[gray]{0.9}\centering\textbf{IDX} & \centering\textbf{Ident} & \centering\textbf{Description} &\centering\textbf{HS Section} & \centering\textbf{Remarks}\tabularnewline\hline  
    %{ for line in stage.lines %}
      %{{line.idx%}} & {\smaller %{{line.ident|escape_latex%}}} & {\smaller %{{line.desc|escape_latex%}}} &  %{{line.hs_section.code%}}\newline {\small %{{line.hs_section.name%}}} &  \tabularnewline\hline
    %{ endfor %} 

\end{tabularx}

\end{center}

\begin{tabularx}{1.0\textwidth}{|>{\centering\arraybackslash}p{0.44\textwidth}|>{\centering\arraybackslash}p{0.44\textwidth}|}
\hline
  \small Verified & \small Scripts Updated (if errors)\\
  & \\
  & \\
  & \\
  & \\
  \small Date & \small Date \\
\hline
\end{tabularx}

\end{document}


