Bug 4199: Adds ability to print routing slip from serials-collection.

Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
This commit is contained in:
Garry Collum 2010-05-22 14:54:46 -04:00 committed by Chris Cormack
parent 329de1163d
commit f9385016d1

View file

@ -4,6 +4,10 @@
<script type="text/javascript"> <script type="text/javascript">
//<![CDATA[ //<![CDATA[
function print_slip(subscriptionid,issue){
var myurl = 'routing-preview.pl?ok=1&subscriptionid='+subscriptionid+'&issue='+issue;
window.open(myurl,'PrintSlip','width=500,height=500,toolbar=no,scrollbars=yes');
}
function addsubscriptionid() function addsubscriptionid()
{ {
var tab=new Array(); var tab=new Array();
@ -192,6 +196,8 @@ $(document).ready(function() {
</th> </th>
<th>Branch <th>Branch
</th> </th>
<th>Routing
</th>
<th>Edit <th>Edit
</th> </th>
</tr> </tr>
@ -218,6 +224,9 @@ $(document).ready(function() {
<td> <td>
<!-- TMPL_VAR Name="branchcode" --> <!-- TMPL_VAR Name="branchcode" -->
</td> </td>
<td>
<a href="" onclick="print_slip(<!-- TMPL_VAR NAME="subscriptionid" ESCAPE="HTML" -->, '<!-- TMPL_VAR NAME="serialseq" ESCAPE="HTML" -->'); return false" />Print list</a>
</td>
<td> <td>
<!--TMPL_IF Name="cannotedit"--> <!--TMPL_IF Name="cannotedit"-->
disabled disabled