A couple of changes towards fixing Bug 1165 (GST in PROG templates)
authorOwen Leonard <oleonard@myacpl.org>
Mon, 26 Nov 2007 20:59:11 +0000 (14:59 -0600)
committerJoshua Ferraro <jmf@liblime.com>
Tue, 27 Nov 2007 01:49:17 +0000 (19:49 -0600)
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
acqui/parcels.pl
koha-tmpl/intranet-tmpl/prog/en/modules/acqui/parcels.tmpl
koha-tmpl/intranet-tmpl/prog/en/modules/acqui/supplier.tmpl

index 14e4013..bdf82f6 100755 (executable)
@@ -162,6 +162,7 @@ $template->param(orderby=>$order, filter=>$code, datefrom=>$datefrom,dateto=>$da
 $template->param(
         name => $booksellers[0]->{'name'},
         supplierid => $supplierid,
+           GST => C4::Context->preference("gist"),
         );
 
 output_html_with_http_headers $input, $cookie, $template->output;
index 01d4cd3..80e0203 100644 (file)
             <label for="gst">GST:</label>
             <input type="text" size="20" id="gst" name="gst" />
         </li>
-               <!-- /TMPL_IF -->
+               <!--/TMPL_IF-->
         <li>
             <label for="freight">Freight:</label>
             <input type="text" size="20" id="freight" name="freight" />
index 7de2441..44aa598 100644 (file)
@@ -184,12 +184,12 @@ function confirm_deletion() {
                 <!-- TMPL_VAR NAME="specialty" --></p>
             <p><strong>List Prices are: </strong><!--TMPL_VAR Name="listprice"--></p>
             <p><strong>Invoice Prices are: </strong><!--TMPL_VAR Name="invoiceprice"--></p>
-            <p><strong>GST Registered: </strong>
+            <!-- TMPL_IF NAME="GST" --><p><strong>GST Registered: </strong>
                     <!-- TMPL_IF name="gstreg" -->Yes<!--TMPL_ELSE-->No<!-- /TMPL_IF --></p>
             <p><strong>List Item Price Includes GST: </strong>
                     <!-- TMPL_IF name="listincgst" -->Yes<!--TMPL_ELSE-->No<!-- /TMPL_IF --></p>
             <p><strong>Invoice Item Price Includes GST: </strong>
-                    <!-- TMPL_IF name= "invoiceincgst" -->Yes<!--TMPL_ELSE-->No<!-- /TMPL_IF --></p>
+                    <!-- TMPL_IF name= "invoiceincgst" -->Yes<!--TMPL_ELSE-->No<!-- /TMPL_IF --></p><!-- /TMPL_IF -->
             <p><strong>Discount: </strong>
                 <!-- TMPL_VAR NAME="discount" --> %</p>
             <!-- TMPL_IF NAME="notes" --><p><strong>Notes: </strong>